CVE-2023-6378: Logback classic Logback Serialization Vulnerability Vulnerability
HIGHCVE-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
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).
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.
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.3.12</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.4.12</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.3.12</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.4.12</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.2.13</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.13</version>
</dependency>
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
CVE-2023-6378 Affected Logback classic Versions
6 component(s)| 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?
Which Logback classic versions are affected?
What version fixes CVE-2023-6378?
Is logback-classic affected?
Is logback-core affected?
What is the CVSS score of CVE-2023-6378?
What CWE is associated with CVE-2023-6378?
How can I check Maven dependencies for CVE-2023-6378?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}