{"id":"CVE-2026-44219","aliases":["CVE-2026-44219","GHSA-xw8c-rrvx-f7xq","PYSEC-2026-2410"],"related":[],"kind":"vulnerability","state":"published","title":"ciguard: SCA HTTP client reads response body without size cap","summary":"ciguard is a static security auditor for CI/CD pipelines. From 0.6.0 to 0.8.1, 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. This vulnerability is fixed in 0.8.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ciguard is a static security auditor for CI/CD pipelines. From 0.6.0 to 0.8.1, 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. This vulnerability is fixed in 0.8.2.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nBoth 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.\n\n## Threat scenario\n\nciguard 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.\n\n**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.\n\n## Patch\n\n- New `MAX_RESPONSE_BYTES = 5 * 1024 * 1024` (5 MB) constant in both modules.\n- `body = resp.read(MAX_RESPONSE_BYTES + 1)` with overflow check returns `None` (caller falls back to stale cache).\n- 3 regression tests in `tests/test_sca_rules.py::TestSCAResponseSizeCap`.\n\n## Discovery\n\nFound during ciguard's first self-conducted pentest cycle, 2026-04-26.\n\n## CVSS Scoring\n\n- 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)\n- 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.\n\n## Reproduction\n\nMonkey-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.\n\n## References\n\n- Fix released in [v0.8.2](https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.2)\n- CI regression gate added in [v0.8.3](https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.3)\n- https://www.cve.org/CVERecord?id=CVE-2026-44219","format":"markdown","source":"ghsa"},{"lang":"es","text":"ciguard es un auditor de seguridad estático para pipelines de CI/CD. Desde la versión 0.6.0 hasta la 0.8.1, ambos clientes HTTP de SCA (src/ciguard/analyzer/sca/osv.py y src/ciguard/analyzer/sca/endoflife.py) llaman a payload = json.loads(resp.read().decode(’utf-8’)) sin un límite máximo de bytes. Un endoflife.date / OSV.dev hostil o comprometido (o un MitM TLS exitoso) podría devolver una respuesta de varios GB, agotando la memoria del proceso de ciguard. Esta vulnerabilidad se corrige en la versión 0.8.2.","source":"nvd"}],"published":"2026-05-05T22:17:43.000Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","score":3.7,"rating":"LOW"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":">= 0.6.0, < 0.8.2","status":"affected"}],"vendor":"Jo-Jo98","product":"ciguard","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.6.0","status":"affected","fixed":"0.8.2"}],"ecosystem":"PyPI","package":"ciguard","purl":"pkg:pypi/ciguard","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.6.0","status":"affected","fixed":"0.8.2"}],"ecosystem":"PyPI","package":"ciguard","purl":"pkg:pypi/ciguard","source":"pysec"}],"references":[{"url":"https://github.com/Jo-Jo98/ciguard/security/advisories/GHSA-xw8c-rrvx-f7xq","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44219","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Jo-Jo98/ciguard","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.2","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/Jo-Jo98/ciguard/releases/tag/v0.8.3","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ciguard","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-xw8c-rrvx-f7xq","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-13T14:19:45.866Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44219","url":"https://www.cve.org/CVERecord?id=CVE-2026-44219","licence":"CVE Terms of Use","modified":"2026-05-13T14:20:04.224Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xw8c-rrvx-f7xq","url":"https://github.com/advisories/GHSA-xw8c-rrvx-f7xq","licence":"CC-BY-4.0","modified":"2026-07-13T16:42:46.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44219","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44219","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2410","url":"https://osv.dev/vulnerability/PYSEC-2026-2410","licence":"CC-BY-4.0","modified":"2026-07-13T16:32:11.256Z"}],"updatedAt":"2026-11-25T22:59:21.485Z","epss":{"score":0.00301,"percentile":0.24647,"date":"2026-12-01T12:00:22.000Z"}}