CVE-2025-59152: Litestar - Broken Access Control
- Cve: CVE-2025-59152
- Name: Litestar - Broken Access Control
- Description: 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.
- Impact: Attackers can bypass IP-based rate limits, enabling unlimited requests and potential denial of service or abuse.
- Remediation: Upgrade to version 2.18.0 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: broken_access_control, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00485
- Epss percentile: 0.426
- Assignee: [email protected]
- Published at: 2025-10-06T16:15:34Z
- Age in days: 414
- Modified at: 2026-10-19T16:10:00Z
- References total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-59152
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-807 | Reliance on Untrusted Inputs in a Security Decision |
References
Same in every row:
- Source: nvd
- Tags:
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| litestar-org/litestar | commit, fix, package, security_advisory | yes | /v1/repositories/litestar-org/litestar |
Index
- Repositories: 2
- Repositories high signal: 1
- Checked, none or zero: packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts