CVE-2025-59152
HIGHDescription
Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. In version 2.17.0, rate limits can be completely bypassed by manipulating the X-Forwarded-For header. This renders IP-based rate limiting ineffective against determined attackers. Litestar's RateLimitMiddleware uses `cache_key_from_request()` to generate cache keys for rate limiting. When an X-Forwarded-For header is present, the middleware trusts it unconditionally and uses its value as part of the client identifier. Since clients can set arbitrary X-Forwarded-For values, each different spoofed IP creates a separate rate limit bucket. An attacker can rotate through different header values to avoid hitting any single bucket's limit. This affects any Litestar application using RateLimitMiddleware with default settings, which likely includes most applications that implement rate limiting. Version 2.18.0 contains a patch for the vulnerability.
How to fix
No published remediation has been found for this vulnerability's affected products yet.
Mitigation guidance may be in the linked vendor advisories in the References section below.
TridentStack Control tracks known vulnerabilities across your Windows, macOS, and Linux fleet and shows the fix as soon as one is published. See how it works
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Exploit Intelligence
Low risk: more likely to be exploited than 37% of all known CVEs.
References
Related Vulnerabilities
Other CWE-807 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2026-21509 | High | 7.8 | 72% | KEV | Fix |
| CVE-2026-34486 | High | 7.5 | 22% | - | Fix |
| CVE-2024-13974 | High | 8.1 | 6.7% | - | Fix |
| CVE-2021-41129 | High | 8.1 | 1.7% | - | Fix |
| CVE-2026-21514 | High | 7.8 | 1.5% | KEV | - |
| CVE-2025-49827 | Critical | 9.8 | 1.4% | - | Fix |
Embed a live status badge for CVE-2025-59152
Markdown
[](https://tridentstack.com/cve/CVE-2025-59152)HTML
<a href="https://tridentstack.com/cve/CVE-2025-59152"><img src="https://tridentstack.com/cve/badge/CVE-2025-59152.svg" alt="CVE-2025-59152"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-10-08.