SCA: security update for litestar (GHSA-hm36-ffrh-c77c)

high Tenable Self-Hosted Container Security Plugin ID 435517

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2025-59152)

See Also

https://github.com/advisories/GHSA-hm36-ffrh-c77c

Plugin Details

Severity: High

ID: 435517

Version: Revision 1.10

Type: Local

Family: SCA Checks

Published: 10/7/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.92

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2025-59152

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/6/2025

Vulnerability Publication Date: 10/6/2025

Reference Information

CVE: CVE-2025-59152

cwe: CWE-807