Skip to main content

Guard Core EUVDEUVD-2026-126618

| CVE-2026-129304 MEDIUM
Improper Input Validation (CWE-20)
2026-11-16 GitHub_M GHSA-gm9r-hvc9-96gv
5.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send request with crafted X-Forwarded-For
  2. Delivery
    Bypass missing IP validation via trusted proxy
  3. Exploit
    Inject glob/separator metacharacters into Redis key
  4. Execution
    Trigger blocking KEYS scan and counter contamination
  5. Impact
    Degrade 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

guard-core 1.0.0, < 3.13.0

Affected Packages

pypi guard-core fix: 3.13.0

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

Vendor (GitHub_M) PRIMARY 5.4 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
vuln.today AI 5.4 MEDIUM

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

1
Patch available
Nov 16, 2026 - 21:02 EUVD

DescriptionCVE.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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche open-source API-security engine for FastAPI/Flask/Django, limited adoption
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy