Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2025-59152 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-807Reliance on Untrusted Inputs in a Security Decision[email protected]

Affected Products

ProductVersions
litestar
2.17.0 (semver)

CPE

  • cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 2.18.0moderate effort
  • Mitigation:moderate effort

    Deploy Litestar behind a properly configured reverse proxy that strips or overwrites client-controllable headers before they reach Litestar.

Change History

3 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2025-59152
NVD Published Date:
Oct 6, 2025
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2025-59152 Details - Not Deferred