# CVE-2024-49580: JetBrains Ktor information disclosure

> CVE-2024-49580 (GitHub advisory GHSA-8qv4-773j-c979) is a medium-severity vulnerability with a CVSS 3.1 base score of 5.3, classed as Use of Cache Containing Sensitive Information (CWE-524), in io.ktor:ktor-client-core-jvm (Maven). Affected versions: < 2.3.13. It is fixed in 2.3.13.

Canonical page: https://cveminer.com/vulnerabilities/CVE-2024-49580

| Field | Value |
| --- | --- |
| CVE | CVE-2024-49580 |
| GHSA | GHSA-8qv4-773j-c979 |
| Severity | Medium |
| CVSS 3.1 | 5.3 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N` (GitHub Advisory Database) |
| CWE | CWE-524 Use of Cache Containing Sensitive Information |
| EPSS | 0.35% (higher than 26% of CVEs) |
| CISA KEV | Not listed |
| SSVC | exploitation none, automatable yes, technical impact partial |
| Published | 17 Oct 2024 |
| Modified | 6 Dec 2024 |

## Description

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

## Affected packages

| Package | Ecosystem | PURL | Vulnerable versions | Fixed in |
| --- | --- | --- | --- | --- |
| io.ktor:ktor-client-core-jvm | Maven | `pkg:maven/io.ktor/ktor-client-core-jvm` | < 2.3.13 | 2.3.13 |

## Fix commits

- Patch: https://github.com/ktorio/ktor/commit/0665736fc35c8ab5525241e975f36819b67f9d3e
- Patch: https://github.com/ktorio/ktor/commit/d6c3a51df169c163e8f0b9ce77bbe543c70116ac
- Pull request: https://github.com/ktorio/ktor/pull/4337
- Pull request: https://github.com/ktorio/ktor/pull/4368
- Release: https://github.com/ktorio/ktor/commit/6d55f8b4aa8ac2916056b2a7a83452c0f0f7f5bd (3.0.0)

## Questions

**What is the GHSA ID for CVE-2024-49580?**

GitHub tracks CVE-2024-49580 as GHSA-8qv4-773j-c979.

**What is the CVSS score of CVE-2024-49580?**

CVE-2024-49580 has a CVSS 3.1 base score of 5.3 (Medium), vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.

**Which versions are affected by CVE-2024-49580?**

io.ktor:ktor-client-core-jvm (Maven): < 2.3.13.

**How do I fix CVE-2024-49580?**

Upgrade to 2.3.13 or later. The fix is in commits 0665736 and d6c3a51 and pull requests #4337 and #4368.

**What is the Package URL (PURL) for CVE-2024-49580?**

The affected package's PURL is pkg:maven/io.ktor/ktor-client-core-jvm.

**Is CVE-2024-49580 exploited in the wild?**

CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2024-49580. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. CISA's SSVC assessment rates exploitation as "none". EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 26% of CVEs.

## References

- https://github.com/ktorio/ktor/pull/4337 (fix)
- https://github.com/ktorio/ktor/pull/4368 (fix)
- https://github.com/ktorio/ktor/commit/0665736fc35c8ab5525241e975f36819b67f9d3e (fix)
- https://github.com/ktorio/ktor/commit/d6c3a51df169c163e8f0b9ce77bbe543c70116ac (fix)
- https://nvd.nist.gov/vuln/detail/CVE-2024-49580 (advisory)
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49580.json (advisory)
- https://github.com/advisories/GHSA-8qv4-773j-c979 (advisory)
- https://github.com/ktorio/ktor (package)
- https://github.com/ktorio/ktor/releases/tag/2.3.13
- https://www.jetbrains.com/privacy-security/issues-fixed
- https://youtrack.jetbrains.com/issue/KTOR-7483

---

Source: CVEminer (https://cveminer.com/vulnerabilities/CVE-2024-49580), compiled from OSV (GitHub advisory), GitHub Advisory Database, OSV (CVE record), CVE.org, CISA KEV catalog. OSV and GitHub Advisory Database content is licensed CC BY 4.0.
