{"id":"CVE-2021-3761","published":"2021-09-09T14:05:09Z","modified":"2024-09-17T02:56:31Z","title":"OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values","vendor":"Cloudflare","product":"octorpki","tier":"tail","description":{"text":"Any CA issuer in the RPKI can trick OctoRPKI prior to 1.3.0 into emitting an invalid VRP \"MaxLength\" value, causing RTR sessions to terminate. An attacker can use this to disable RPKI Origin Validation in a victim network (for example AS 13335 - Cloudflare) prior to launching a BGP hijack which during normal operations would be rejected as \"RPKI invalid\". Additionally, in certain deployments RTR session flapping in and of itself also could cause BGP routing churn, causing availability issues.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01216,"percentile":0.69326,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/cloudflare/cfrpki/security/advisories/GHSA-c8xp-8mf3-62h9","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2022/dsa-5041","tags":["vendor-advisory","x_refsource_DEBIAN"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":13.87},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"cloudflare","affectedVersions":[{"vendor":"Cloudflare","product":"octorpki","versions":[">= unspecified, < 1.3.0"]}],"solutions":{"items":["Upgrade to 1.3.0"],"from":"CVE.org CNA","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cloudflare/cfrpki","vulnerableRanges":["<1.3.0"],"patched":["1.3.0"],"from":["GHSA-c8xp-8mf3-62h9","GO-2022-0246"],"provenance":"source"}],"summary":{"text":"OctoRPKI, Cloudflare's RPKI validator, prior to version 1.3.0 lacks a contextual out-of-bounds check when validating ROA maxLength values. A CA issuer anywhere in the RPKI can craft a ROA that causes OctoRPKI to emit an invalid VRP MaxLength value, which terminates RTR sessions and can disable RPKI origin validation for a victim network, enabling BGP hijacks that would otherwise be rejected as RPKI invalid.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:41Z"},"euvd":{"id":"EUVD-2021-2036","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cloudflare-octorpki-cve-2021-3761","children":[{"from":"CVE-2021-3761","to":"CVE-2021-3911","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["validator/lib/roa.go"],"commits":["https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422","https://github.com/cloudflare/cfrpki/commit/2882307febd66801de97b2a2ce4d93fe58132005"],"basis":"rarely changed file"}]}]}}