CVE-2025-59152
CVE-2025-59152 — X-Forwarded-For Header Spoofing Bypasses Litestar Rate Limiting
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…
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.5
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.5 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-807
References
3 on the record
- github.com/litestar-org/litestar/security/advisories/GHSA-hm36-ffrh-c77c
x_refsource_CONFIRM
- github.com/litestar-org/litestar/commit/42a89e043e50b515f8548a93954fe143f63cf9fb
x_refsource_MISC
- github.com/litestar-org/litestar/blob/26f20ac6c52de2b4bf81161f7560c8bb4af6f382/litestar/middleware/rate_limit.py#L127
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-21514 Microsoft Word Security Feature Bypass VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-21509 Microsoft Office Security Feature Bypass VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-34486 Apache Tomcat: Fix for CVE-2026-29146 allowed bypass of EncryptInterceptorCVSS 7.5 · CISA KEV
- CVE-2026-59103 MONEO ERP unauthenticated session forging via the public Ping JSON-RPC methodCVSS 9.8
- CVE-2026-13059 Improper Validation of Client-Supplied Command Parameters Allowing Role-Based Access Control BypassCVSS 8.1
- CVE-2026-107561 Contact point test endpoint exposes stored credentials to users without protected-field accessCVSS 7.7
Elsewhere on this site
- Litestar Orgevery CVE for this vendor
- CWE-807other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.