Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend request with crafted X-Forwarded-For
-
DeliveryBypass missing IP validation via trusted proxy
-
ExploitInject glob/separator metacharacters into Redis key
-
ExecutionTrigger blocking KEYS scan and counter contamination
-
ImpactDegrade shared Redis and misattribute behavior events
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires a non-default deployment: SecurityConfig must have trusted_proxies populated (it defaults to empty, so default installs are not reachable), and the proxy topology must let the attacker control the X-Forwarded-For entry that _extract_from_forwarded_header() selects. The Redis-backed BehaviorTracker path must be in use, since the unvalidated client_ip is interpolated into behavior:usage key names and 'behavior_usage:...:*' KEYS glob patterns. No authentication and no user interaction are required (PR:N/UI:N), but the attacker must supply glob metacharacters (e.g. '*'), embedded separators, or rotating identities to achieve counter contamination, key parsing disturbance, unbounded key growth, or an uncaught ValueError on the ban path. Limiting factors: empty-by-default trusted_proxies, the need for attacker-controllable XFF position, and dependence on the shared-Redis behavior-tracking feature being enabled, which together account for the AC:H rating. |
| Impact | This is a genuine but conditional, moderate-severity issue, not a drop-everything emergency. The provided CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L, 5.4 Medium) is internally consistent with the mechanism: network-reachable (AV:N), no authentication (PR:N), but high complexity (AC:H) because exploitation depends on a non-default deployment where trusted_proxies is configured and the attacker controls the selected X-Forwarded-For position; the scope change (S:C) reflects that one client's request can affect other clients' counters and the shared Redis instance. Impact is limited to integrity and availability of the behavioral-analytics subsystem (I:L/A:L) with explicitly no confidentiality impact (C:N). No EPSS score and no KEV status were supplied, so there is no evidence of active exploitation - treat it as no public exploitation confirmed. The advisory contains a public PoC reference demonstrating the unvalidated extraction, so exploitability is well understood even without a weaponized exploit. The vuln.today decision label is this_month (not act_now/emergency), aligning with a schedule-the-patch posture rather than crisis response. Net: the AC:H and non-default-configuration gating keep real-world risk low-to-moderate despite the network attack vector; prioritize for deployments known to run guard-core behind trusted proxies with Redis-backed behavior tracking. |
| Exploit ScenarioDerived | In a deployment that has configured trusted_proxies and sits behind a proxy chain the attacker can influence, the attacker sends HTTP requests carrying a crafted X-Forwarded-For value such as '*'. Because _extract_from_forwarded_header() returns the entry without ipaddress validation, that string becomes client_ip and is interpolated verbatim into a Redis KEYS glob pattern, letting a single request count other clients' behavior events and trip a threshold rule on its first request, or (by rotating arbitrary identities) create unbounded keys while repeatedly running blocking KEYS scans that degrade the shared Redis. A public PoC in the advisory demonstrates that the arbitrary string reaches client_ip. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Improper input validation in Guard Core (the shared API-security engine behind FastAPI-Guard, FlaskAPI Guard and DjAPI Guard) allows a crafted X-Forwarded-For entry to be accepted as a client IP string in versions 1.0.0 through 3.12.0. The flaw is only reachable in non-default deployments where trusted_proxies is populated and the attacker controls the XFF entry that _extract_from_forwarded_header() selects, and where the Redis-backed BehaviorTracker is enabled; in that configuration the arbitrary string is interpolated into Redis key names and KEYS glob patterns, enabling cross-client counter contamination, key-parsing confusion, unbounded key growth with blocking keyspace scans, and an uncaught ValueError on the ban path. No CISA KEV listing is recorded and no verified working exploit is known, though the upstream advisory publishes a PoC reference demonstrating that the unvalidated value is returned verbatim; the CVSS 3.1 score is 5.4 (AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L).
RemediationAI
Vendor-released patch: upgrade guard-core to 3.13.0 (or later) from PyPI, which validates the extracted forwarded-header entry with ipaddress.ip_address() and falls back to the connecting IP on failure; the fix is carried in pull request https://github.com/Guard-Core/guard-core/pull/68 and commit https://github.com/Guard-Core/guard-core/commit/c07239fa1c5aa93e3f179440e79dad652977d3e4, with the advisory at https://github.com/Guard-Core/guard-core/security/advisories/GHSA-gm9r-hvc9-96gv and the release at https://github.com/Guard-Core/guard-core/releases/tag/3.13.0. Because reachability requires a non-default configuration, temporary compensating controls are: leave trusted_proxies empty or restrict it to the exact proxy addresses and header positions whose XFF entries the proxy itself rewrites, accepting that client-IP attribution falls back to the connecting peer; strip or reject X-Forwarded-For values that are not literal IP addresses at the edge proxy, which removes the malicious glob metacharacters and embedded separators before Guard Core parses them but shifts validation responsibility to the proxy layer; or disable the Redis-backed BehaviorTracker feature so the unvalidated client_ip never reaches key construction and KEYS scans, at the cost of losing behavioral-analytics detection. Monitor the shared Redis instance for unbounded growth of behavior_usage:* keys and for repeated KEYS commands as a detection signal. The vendor's recommended complete fix is updating to 3.13.0; remediation should be scheduled rather than treated as an emergency, consistent with the this_month priority and the empty-by-default trusted_proxies prerequisite.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Guard Core is a Python API-security core library consumed by FastAPI-Guard, FlaskAPI Guard and DjAPI Guard. _extract_from_forwarded_header() in guard_core/utils.py returns the selected X-Forwarded-For entry without passing it through Python's ipaddress validation, so an arbitrary string can become client_ip whenever a trusted proxy header position is attacker-controlled. That value reaches BehaviorTracker in guard_core/handlers/behavior_handler.py, where it is concatenated into keys of the form behavior:usage:{endpoint_id}:{client_ip} and into a KEYS glob pattern behavior_usage:{key}:*, and redis_handler.keys() maps to the blocking Redis KEYS command, an O(N) scan over the shared keyspace. This is CWE-20 (Improper Input Validation): the root cause is the missing ip_address() check on the forwarded-header selection, compounded by unescaped glob metacharacters (* ? [ ]) in a pattern-generating path. The advisory documents three escalating consequences: glob metacharacters such as '*' let one request count other clients' behavior events and trip a threshold rule on its first request, embedded ':' separators shift which key segment is parsed as the timestamp, and rotating identities create unbounded distinct keys while repeatedly forcing blocking scans that degrade every guard-core instance sharing the Redis instance. A non-IP identity that reaches a ban action is passed to ip_ban_manager.ban_ip(), whose own ipaddress validation raises an uncaught ValueError and returns a 500 to the request. No data exposure is claimed; the impact is integrity and availability of the behavioral-analytics subsystem and the shared Redis instance.
Know when Guard Core gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
Network-reachable and unauthenticated (AV:N/PR:N) but gated on non-default trusted_proxies and attacker-controlled XFF (AC:H); cross-client/shared-Redis effect is S:C; no confidentiality (C:N), limited integrity and availability (I:L/A:L).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Guard Core is an API security core engine for the FastAPI-Guard, FlaskAPI Guard, and DjAPI Guard adapters. From 1.0.0 until 3.13.0, _extract_from_forwarded_header() in guard_core/utils.py returns the selected X-Forwarded-For entry without validating that it is an IP address. In deployments configured with trusted_proxies where the selected entry is attacker-controlled, the arbitrary client_ip string reaches BehaviorTracker in guard_core/handlers/behavior_handler.py and is interpolated into Redis key names and blocking KEYS glob patterns. Glob metacharacters can cause one request to count other clients' behavior events, embedded separators can disturb key parsing, and rotating identities can create unbounded keys while repeatedly scanning the shared Redis keyspace. A non-IP identity can also reach a ban action and cause an uncaught validation error. This issue is fixed in version 3.13.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Guard Core
View allGuard-core 3.5.0 through 3.12.0 lets a single unauthenticated request freeze every endpoint of an application that embed
Whitespace-collapse preprocessing in Guard Core 1.0.0 through 3.12.0 runs before pattern matching in the default enhance
EUVD-2026-126618
GHSA-gm9r-hvc9-96gv
NVD
CVE.org
EPSS
VulDB
Exploit-DB