CVE-2024-12801: Logback core QOS.CH Logback-core Server-Side Request Forgery Vulnerability

LOW
Advisory Identifier: GHSA-6v67-2wr5-gvf4
CWE-918
Published
Advisory Summary

CVE-2024-12801 is a LOW qos.ch logback-core server-side request forgery vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Logback core libraries in the Maven ecosystem. The issue involves qos.ch logback-core server-side request forgery vulnerability. Remediation is available by upgrading affected packages to version 1.5.13, 1.3.15.

CVE-2024-12801 at a Glance

CVE Identifier CVE-2024-12801
GHSA Identifier GHSA-6v67-2wr5-gvf4
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Logback core
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2024-12801

To remediate this vulnerability, upgrade all affected Logback core 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-core fixed: 1.5.13
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
    <version>1.5.13</version>
</dependency>
ch.qos.logback:logback-core fixed: 1.3.15
<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-core</artifactId>
    <version>1.3.15</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-2024-12801, 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 core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.13), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Logback core, 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

Server-Side Request Forgery (SSRF) in SaxEventRecorder by QOS.CH logback version 1.5.12 on the Java platform, allows an attacker to forge requests by compromising logback configuration files in XML. The attacks involves the modification of DOCTYPE declaration in  XML configuration files.

CVE-2024-12801 Affected Logback core Versions

2 component(s)
Fixed Versions:
1.5.131.3.15
Product / Package Ecosystem Affected Versions Fixed Version
ch.qos.logback:logback-core
Maven
≥ 1.4.0
< 1.5.13
1.5.13
ch.qos.logback:logback-core
Maven
< 1.3.15
1.3.15

References

Frequently Asked Questions

What is CVE-2024-12801?
CVE-2024-12801 is a security vulnerability in Logback core involving QOS.CH logback-core Server-Side Request Forgery vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Logback core versions are affected?
Affected versions include releases prior to 1.5.13, 1.3.15 across affected packages: ch.qos.logback:logback-core.
What version fixes CVE-2024-12801?
Upgrading to 1.5.13, 1.3.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is logback-core affected?
Yes, ch.qos.logback:logback-core is affected in releases prior to 1.5.13, 1.3.15. Upgrade your dependency to 1.5.13, 1.3.15 or later.
What CWE is associated with CVE-2024-12801?
CVE-2024-12801 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Maven dependencies for CVE-2024-12801?
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-6v67-2wr5-gvf4",
  "modified" : "2025-01-03T19:06:48Z",
  "published" : "2024-12-19T18:31:37Z",
  "aliases" : [ "CVE-2024-12801" ],
  "summary" : "QOS.CH logback-core Server-Side Request Forgery vulnerability",
  "details" : "Server-Side Request Forgery (SSRF) in SaxEventRecorder by QOS.CH logback version 1.5.12 on the Java platform, allows an attacker to forge requests by compromising logback configuration files in XML.\n \nThe attacks involves the modification of DOCTYPE declaration in  XML configuration files.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:L/VI:N/VA:L/SC:H/SI:H/SA:H/V:D/U:Clear"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.4.0"
      }, {
        "fixed" : "1.5.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ch.qos.logback:logback-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-12801"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/qos-ch/logback/commit/5f05041cba4c4ac0a62748c5c527a2da48999f2d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/qos-ch/logback"
  }, {
    "type" : "WEB",
    "url" : "https://logback.qos.ch/news.html#1.3.15"
  }, {
    "type" : "WEB",
    "url" : "https://logback.qos.ch/news.html#1.5.13"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-19T22:22:44Z",
    "nvd_published_at" : "2024-12-19T17:15:08Z"
  }
}