ciguard CVE-2026-44219
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker compromises DNS or certificate authority
-
DeliveryRedirects HTTPS request to malicious server
-
ExploitServes multi-GB HTTP response
-
Installciguard's resp.read() buffers entire body
-
C2Process memory exhausted
-
ExecuteOOM killer terminates ciguard
-
ImpactCI build fails
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a hostile or compromised backend (osv.dev or endoflife.date), OR successful TLS MITM attack (DNS hijacking combined with presentation of a trusted certificate, or compromise of a certificate authority trusted by the ciguard host). Because both upstream URLs are hardcoded HTTPS with standard certificate validation, the attacker must either: (1) control a DNS resolver and a trusted CA, or (2) directly compromise the upstream service. This is the limiting factor: ciguard does not implement certificate pinning, and standard TLS validation is the only defense. Exploitation is also constrained by memory availability-a 5 GB response only causes visible denial of service if the ciguard process is already memory-constrained (typical in CI), not in unconstrained servers. No special ciguard configuration is required; vulnerability exists in all default deployments of affected versions. |
| Impact | CVSS v3.1 scores this as 3.7 (Low) with AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L, indicating network attack vector, high complexity, and availability impact only. The AC:H reflects the requirement for TLS compromise or DNS hijacking to redirect traffic to a malicious endpoint-a high-barrier prerequisite. EPSS data not provided in input. The vulnerability is not actively exploited in the wild (no KEV status, no public POC). However, the real-world risk is elevated in constrained CI/CD environments where memory budgets are fixed (4-8 GB typical); a single uncontrolled response could trigger OOM kill and halt an entire pipeline. The vendor's own assessment acknowledges low realism today but correctly identifies this as a structural defense-in-depth gap. For organizations running ciguard in memory-constrained containers or with strict resource limits, impact transitions from low to moderate. The AC:H constraint and TLS-only delivery keep this appropriately scored as Low per CVSS, but defenders in CI environments should not dismiss it based on CVSS alone. |
| Exploit ScenarioDerived | An attacker compromises DNS resolution or obtains a valid TLS certificate for osv.dev or endoflife.date (e.g., via trusted CA compromise or DNS hijacking), then redirects ciguard's HTTP requests to a malicious server. The malicious server responds with a 50 MB JSON stream; ciguard's resp.read() call buffers the entire response into memory, exhausting the CI runner's available RAM and triggering OOM kill, halting the build pipeline. Pre-patch, this requires no user interaction and works against default configurations. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 05, 2026
ciguard SCA HTTP clients in osv.py and endoflife.py exhaust process memory by reading unbounded response bodies from OSV.dev and endoflife.date without enforcing a size cap. A hostile or compromised backend service, or a successful TLS MITM attack, could return multi-gigabyte responses causing denial of service via out-of-memory kill or system swap exhaustion in CI environments. No public exploit identified at time of analysis; vendor released patch in v0.8.2.
RemediationAI
Upgrade ciguard to v0.8.2 or later. The patch introduces a MAX_RESPONSE_BYTES constant set to 5 MB (5242880 bytes) in both osv.py and endoflife.py, enforces resp.read(MAX_RESPONSE_BYTES + 1) with overflow detection, and returns None on oversized responses to allow fallback to stale cached data. No workarounds are available for earlier versions without code modification. As a temporary mitigation if upgrade is delayed, restrict ciguard's process memory limit via container limits (docker --memory), systemd MemoryMax, or CI runner configuration; however, this only converts memory exhaustion into a timeout rather than preventing it. The patch is low-risk: regression tests in tests/test_sca_rules.py::TestSCAResponseSizeCap confirm that legitimate responses (typical end-of-life or OSV records are under 100 KB) pass through unchanged, and oversized responses degrade gracefully to stale cache fallback. See GitHub Advisory GHSA-xw8c-rrvx-f7xq for patched release links.
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
ciguard is a Python supply-chain analysis tool that queries two external JSON APIs (OSV.dev and endoflife.date) via HTTPS to retrieve software vulnerability and end-of-life data. The vulnerable code in src/ciguard/analyzer/sca/osv.py and src/ciguard/analyzer/sca/endoflife.py calls json.loads(resp.read().decode('utf-8')) without constraining the size of resp.read(), allowing the HTTP response stream to be consumed entirely into memory before JSON parsing. The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling), a structural validation weakness in untrusted input handling. Both connections use hardcoded HTTPS URLs, which mitigates but does not eliminate the threat if DNS is hijacked or a trusted certificate authority is compromised.
Know when the next one hits your stack
- 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:U/C:N/I:N/A:L
Primary rating from Vendor (https://github.com/Jo-Jo98/ciguard) · only source for this CVE.
CVSS VectorVendor: https://github.com/Jo-Jo98/ciguard
Lifecycle Timeline
2DescriptionCVE.org
Summary
Both SCA HTTP clients (src/ciguard/analyzer/sca/osv.py and src/ciguard/analyzer/sca/endoflife.py) call payload = json.loads(resp.read().decode('utf-8')) without a maximum-bytes cap. A hostile or compromised endoflife.date / OSV.dev (or a successful TLS MITM) could return a multi-GB response, exhausting the ciguard process's memory.
Threat scenario
ciguard process memory exhaustion → OOM kill or system swap thrash. Realistic when ciguard runs in CI with a limited memory budget (typical: 4-8 GB). No data integrity or confidentiality impact.
Realism caveat: both URLs are hardcoded HTTPS, so this is a low-realism threat (HTTPS prevents MITM unless the attacker controls a trusted CA or hijacks DNS in a way that doesn't trigger cert validation). The unbounded read is structural defence-in-depth, not a directly exploitable bug today.
Patch
- New
MAX_RESPONSE_BYTES = 5 * 1024 * 1024(5 MB) constant in both modules. body = resp.read(MAX_RESPONSE_BYTES + 1)with overflow check returnsNone(caller falls back to stale cache).- 3 regression tests in
tests/test_sca_rules.py::TestSCAResponseSizeCap.
Discovery
Found during ciguard's first self-conducted pentest cycle, 2026-04-26.
CVSS Scoring
- CVSS v3.1:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L- 3.7 (Low) - CVSS v4.0:
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N- first.org calc 3.1 (Low); GitHub's calc 6.3 (Medium). Vector is correct - choosing v3.1 as the structured score keeps the consistent Low rating across consumers.
Reproduction
Monkey-patch urllib.request.urlopen to return a fake 50 MB response; observe memory growth before/after the call. Pre-fix: process memory grows by ~50 MB. Post-fix: _fetch returns None, memory growth bounded to MAX_RESPONSE_BYTES.
Resources
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
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-xw8c-rrvx-f7xq
NVD
CVE.org
EPSS
Exploit-DB