Guard Core: Unvalidated X-Forwarded-For-derived string used as a Redis key component and interpolated into a KEYS glob pattern
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| pip:guard-core | >= 1.0.0, < 3.13.0 | 3.13.0 |
_extract_from_forwarded_header() (guard_core/utils.py:172-181 in 3.12.0; :179 on master 08780f1) returns the selected X-Forwarded-For entry without any ipaddress validation. When that entry is attacker-controlled, an arbitrary string becomes client_ip and flows into BehaviorTracker (guard_core/handlers/behavior_handler.py:83-102), which interpolates it verbatim into both a Redis key name and a KEYS glob pattern: python key = f"behavior:usage:{endpoint_id}:{client_ip}" await self.redis_handler.s…
2026/11/20 07:50、GitHub Advisory Databaseが「Guard Core: Unvalidated X-Forwarded-For-derived string used as a Redis key component and interpolated into a KEYS glob pattern」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: Python、Redis / Valkey。CVE: CVE-2026-129304。