CVE-2023-6378: Logback classic Logback Serialization Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-vmq6-5m68-f53m
CVSS 7.1
CWE-502
Published
Advisory Summary

CVE-2023-6378 is a HIGH (CVSS 7.1) logback serialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Logback classic libraries in the Maven ecosystem. The issue involves logback serialization vulnerability. Remediation is available by upgrading affected packages to version 1.3.12, 1.4.12, 1.2.13.

CVE-2023-6378 at a Glance

CVE Identifier CVE-2023-6378
GHSA Identifier GHSA-vmq6-5m68-f53m
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Logback classic
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-6378

To remediate this vulnerability, upgrade all affected Logback classic dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ch.qos.logback:logback-classic fixed: 1.3.12
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.3.12</version>
</dependency>
ch.qos.logback:logback-classic fixed: 1.4.12
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.4.12</version>
</dependency>
ch.qos.logback:logback-core fixed: 1.3.12
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
    <version>1.3.12</version>
</dependency>
ch.qos.logback:logback-core fixed: 1.4.12
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
    <version>1.4.12</version>
</dependency>
ch.qos.logback:logback-core fixed: 1.2.13
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
    <version>1.2.13</version>
</dependency>
ch.qos.logback:logback-classic fixed: 1.2.13
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.2.13</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=ch.qos.logback

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-6378, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=ch.qos.logback

Analyze the terminal output to locate any version of Logback classic in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.12), your application is affected.

Note: The mvn dependency:tree -Dincludes=ch.qos.logback command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Logback classic, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A serialization vulnerability in logback receiver component part of logback allows an attacker to mount a Denial-Of-Service attack by sending poisoned data. This is only exploitable if logback receiver component is deployed. See https://logback.qos.ch/manual/receivers.html

CVE-2023-6378 Affected Logback classic Versions

6 component(s)
Fixed Versions:
1.3.121.4.121.2.13
Product / Package Ecosystem Affected Versions Fixed Version
ch.qos.logback:logback-classic
Maven
≥ 1.3.0
< 1.3.12
1.3.12
ch.qos.logback:logback-classic
Maven
≥ 1.4.0
< 1.4.12
1.4.12
ch.qos.logback:logback-core
Maven
≥ 1.3.0
< 1.3.12
1.3.12
ch.qos.logback:logback-core
Maven
≥ 1.4.0
< 1.4.12
1.4.12
ch.qos.logback:logback-core
Maven
< 1.2.13
1.2.13
ch.qos.logback:logback-classic
Maven
< 1.2.13
1.2.13

References

Frequently Asked Questions

What is CVE-2023-6378?
CVE-2023-6378 is a security vulnerability in Logback classic involving logback serialization vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Logback classic versions are affected?
Affected versions include releases prior to 1.3.12, 1.4.12, 1.2.13 across affected packages: ch.qos.logback:logback-classic, ch.qos.logback:logback-core.
What version fixes CVE-2023-6378?
Upgrading to 1.3.12, 1.4.12, 1.2.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is logback-classic affected?
Yes, ch.qos.logback:logback-classic is affected in releases prior to 1.3.12, 1.4.12, 1.2.13. Upgrade your dependency to 1.3.12, 1.4.12, 1.2.13 or later.
Is logback-core affected?
Yes, ch.qos.logback:logback-core is affected in releases prior to 1.3.12, 1.4.12, 1.2.13. Upgrade your dependency to 1.3.12, 1.4.12, 1.2.13 or later.
What is the CVSS score of CVE-2023-6378?
CVE-2023-6378 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H.
What CWE is associated with CVE-2023-6378?
CVE-2023-6378 is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check Maven dependencies for CVE-2023-6378?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=ch.qos.logback'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vmq6-5m68-f53m",
  "modified" : "2024-11-29T12:31:48Z",
  "published" : "2023-11-29T12:30:16Z",
  "aliases" : [ "CVE-2023-6378" ],
  "summary" : "logback serialization vulnerability",
  "details" : "A serialization vulnerability in logback receiver component part of logback allows an attacker to mount a Denial-Of-Service attack by sending poisoned data.\n\nThis is only exploitable if logback receiver component is deployed. See https://logback.qos.ch/manual/receivers.html",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-classic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "1.3.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-classic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "1.3.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.4.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-classic"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-6378"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/qos-ch/logback/issues/745#issuecomment-1836227158"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/qos-ch/logback/commit/9c782b45be4abdafb7e17481e24e7354c2acd1eb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/qos-ch/logback/commit/b8eac23a9de9e05fb6d51160b3f46acd91af9731"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/qos-ch/logback/commit/bb095154be011267b64e37a1d401546e7cc2b7c3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/qos-ch/logback"
  }, {
    "type" : "WEB",
    "url" : "https://logback.qos.ch/manual/receivers.html"
  }, {
    "type" : "WEB",
    "url" : "https://logback.qos.ch/news.html#1.2.13"
  }, {
    "type" : "WEB",
    "url" : "https://logback.qos.ch/news.html#1.3.12"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20241129-0012"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-29T21:33:01Z",
    "nvd_published_at" : "2023-11-29T12:15:07Z"
  }
}