CVE-2025-46814

Source
https://cve.org/CVERecord?id=CVE-2025-46814
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46814.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-46814
Aliases
  • GHSA-77q8-qmj7-x7pp
Published
2025-05-06T14:55:48.766Z
Modified
2026-04-02T12:49:05.243120Z
Severity
  • 3.4 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N CVSS Calculator
Summary
FastAPI Guard Remote Header Injection via X-Forwarded-For Manipulation
Details

FastAPI Guard is a security library for FastAPI that provides middleware to control IPs, log requests, and detect penetration attempts. An HTTP header injection vulnerability has been identified in versions prior to 2.0.0. By manipulating the X-Forwarded-For header, an attacker can potentially inject arbitrary IP addresses into the request. This vulnerability can allow attackers to bypass IP-based access controls, mislead logging systems, and impersonate trusted clients. It is especially impactful when the application relies on the X-Forwarded-For header for IP-based authorization or authentication. Users should upgrade to FastAPI Guard version 2.0.0 to receive a fix.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-74"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46814.json"
}
References

Affected packages

Git / github.com/rennf93/fastapi-guard

Affected ranges

Type
GIT
Repo
https://github.com/rennf93/fastapi-guard
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.2.0
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.4.0
1.*
1.0.0
1.1.0
1.2.0
1.2.1
1.2.2
1.3.2
1.4.0
1.5.0
v0.*
v0.1.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46814.json"