CVE-2024-49580: Ktor client core jvm JetBrains Ktor Information Disclosure Vulnerability

MODERATE
Advisory Identifier: GHSA-8qv4-773j-c979
CVSS 5.3
CWE-524
Published
Advisory Summary

CVE-2024-49580 is a MODERATE (CVSS 5.3) jetbrains ktor information disclosure vulnerability (CWE-524: Use of Cache Containing Sensitive Information) affecting Ktor client core jvm libraries in the Maven ecosystem. The issue involves jetbrains ktor information disclosure. Remediation is available by upgrading affected packages to version 2.3.13.

CVE-2024-49580 at a Glance

CVE Identifier CVE-2024-49580
GHSA Identifier GHSA-8qv4-773j-c979
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-524: Use of Cache Containing Sensitive Information
Affected Product Ktor client core jvm
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-49580

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

io.ktor:ktor-client-core-jvm fixed: 2.3.13
<dependency>
    <groupId>io.ktor</groupId>
    <artifactId>ktor-client-core-jvm</artifactId>
    <version>2.3.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=io.ktor

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=io.ktor

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

Note: The mvn dependency:tree -Dincludes=io.ktor 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-524: Use of Cache Containing Sensitive Information, where the code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere. In Ktor client core jvm, 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

Improper caching in JetBrains Ktor before 3.0.0 in the `HttpCache` Plugin could lead to response information disclosure.

CVE-2024-49580 Affected Ktor client core jvm Versions

1 component(s)
Fixed Versions:
2.3.13
Product / Package Ecosystem Affected Versions Fixed Version
io.ktor:ktor-client-core-jvm
Maven
< 2.3.13
2.3.13

References

Frequently Asked Questions

What is CVE-2024-49580?
CVE-2024-49580 is a security vulnerability in Ktor client core jvm involving JetBrains Ktor information disclosure under CWE-524: Use of Cache Containing Sensitive Information.
Which Ktor client core jvm versions are affected?
Affected versions include releases prior to 2.3.13 across affected packages: io.ktor:ktor-client-core-jvm.
What version fixes CVE-2024-49580?
Upgrading to 2.3.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ktor-client-core-jvm affected?
Yes, io.ktor:ktor-client-core-jvm is affected in releases prior to 2.3.13. Upgrade your dependency to 2.3.13 or later.
What is the CVSS score of CVE-2024-49580?
CVE-2024-49580 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-49580?
CVE-2024-49580 is classified under CWE-524: Use of Cache Containing Sensitive Information (The code uses a cache that contains sensitive information, but the cache can be read by an actor outside of the intended control sphere.).
How can I check Maven dependencies for CVE-2024-49580?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.ktor'. 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-8qv4-773j-c979",
  "modified" : "2024-12-06T18:22:23Z",
  "published" : "2024-10-17T15:31:08Z",
  "aliases" : [ "CVE-2024-49580" ],
  "summary" : "JetBrains Ktor information disclosure",
  "details" : "Improper caching in JetBrains Ktor before 3.0.0 in the `HttpCache` Plugin could lead to response information disclosure.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "io.ktor:ktor-client-core-jvm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-49580"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ktorio/ktor/pull/4337"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ktorio/ktor/pull/4368"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ktorio/ktor/commit/0665736fc35c8ab5525241e975f36819b67f9d3e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ktorio/ktor/commit/d6c3a51df169c163e8f0b9ce77bbe543c70116ac"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ktorio/ktor"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ktorio/ktor/releases/tag/2.3.13"
  }, {
    "type" : "WEB",
    "url" : "https://www.jetbrains.com/privacy-security/issues-fixed"
  }, {
    "type" : "WEB",
    "url" : "https://youtrack.jetbrains.com/issue/KTOR-7483"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-524" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-05T17:56:52Z",
    "nvd_published_at" : "2024-10-17T13:15:14Z"
  }
}