{"id":"CVE-2021-3912","published":"2021-11-11T21:45:24Z","modified":"2024-09-16T23:41:30Z","title":"OctoRPKI crashes when processing GZIP bomb returned via malicious repository","vendor":"Cloudflare","product":"octorpki","tier":"tail","description":{"text":"OctoRPKI tries to load the entire contents of a repository in memory, and in the case of a GZIP bomb, unzip it in memory, making it possible to create a repository that makes OctoRPKI run out of memory (and thus crash).","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0085,"percentile":0.55584,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-g9wh-3vrx-r7hg","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2022/dsa-5041","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":11.12},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"cloudflare","affectedVersions":[{"vendor":"Cloudflare","product":"octorpki","versions":[">= unspecified, < 1.4.0"]}],"solutions":{"items":["Upgrade to 1.4"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["GHSA-g9wh-3vrx-r7hg","GO-2022-0253"],"provenance":"source"}],"summary":{"text":"OctoRPKI, Cloudflare's RPKI validator, has a flaw in how it handles repository content: it loads the entire contents of a repository into memory and decompresses GZIP data in memory without limits. An attacker who can operate a malicious repository that OctoRPKI fetches from can supply a GZIP bomb to exhaust memory and crash the process, which requires network reachability to the repository and a privileged position that the attacker must hold, with the victim's validator also needing to be triggered to fetch the malicious content.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:50Z"},"euvd":{"id":"EUVD-2021-2346","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cloudflare-octorpki-cve-2021-3907","parents":[{"from":"CVE-2021-3907","to":"CVE-2021-3912","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/octorpki/octorpki.go"],"commits":["https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd","https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284","https://github.com/cloudflare/cfrpki/commit/648658b1b176a747b52645989cfddc73a81eacad"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2021-3912","to":"CVE-2022-3616","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/octorpki/octorpki.go"],"commits":["https://github.com/cloudflare/cfrpki/commit/648658b1b176a747b52645989cfddc73a81eacad","https://github.com/cloudflare/cfrpki/commit/5f64bcd13477b29cd7ddff6fff3c65dfac3423ca"],"basis":"rarely changed file"}]}]}}