Skip to main content

ciguard CVE-2026-44219

LOW
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-05-05 https://github.com/Jo-Jo98/ciguard GHSA-xw8c-rrvx-f7xq
3.7
CVSS 3.1 · Vendor: https://github.com/Jo-Jo98/ciguard
View

Attack ChainAIDerived

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

  1. Recon
    Attacker compromises DNS or certificate authority
  2. Delivery
    Redirects HTTPS request to malicious server
  3. Exploit
    Serves multi-GB HTTP response
  4. Install
    ciguard's resp.read() buffers entire body
  5. C2
    Process memory exhausted
  6. Execute
    OOM killer terminates ciguard
  7. Impact
    CI 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

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

pypi ciguard fix: 0.8.2

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

Vendor (https://github.com/Jo-Jo98/ciguard) PRIMARY 3.7 LOW
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

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

Lifecycle Timeline

2
Severity Changed
May 12, 2026 - 20:22 NVD
MEDIUM LOW
CVSS changed
May 12, 2026 - 20:22 NVD
3.7 (MEDIUM) 3.7 (LOW)

DescriptionCVE.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 returns None (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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
4 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 LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/ciguard

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