CVE-2021-3761 json
OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values
published 2021-09-07 5 y ago modified 2026-07-08 4 mo ago also GHSA-c8xp-8mf3-62h9 , GO-2022-0246 , EUVD-2021-2036
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/cloudflare/cfrpki 1.3.0
- Cloudflare octorpki 1.3.0
- cfrpki Debian 12 1.3.0-1
debian advisories DEBIAN-CVE-2021-3761
Exploit prediction
1.22% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/cloudflare/cfrpki | <1.3.0 |
1.3.0 |
Affected products
- Cloudflare octorpki
Classification
References
-
github.com
/cloudflare/cfrpki/security/advisories/GHSA-c8xp-8mf3-62h9
web, patch, third-party-advisory
-
github.com
/cloudflare/cfrpki/pull/90
web, patch
-
github.com
/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422
web, patch
-
debian.org
/security/2022/dsa-5041
vendor-advisory, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-3761
advisory
-
github.com
/cloudflare/cfrpki/releases/tag/v1.3.0
web
-
pkg.go.dev
/vuln/GO-2022-0246
web
Sources
- CVE List CVE-2021-3761
- GitHub Advisory GHSA-c8xp-8mf3-62h9
- NVD CVE-2021-3761
- OSV GO-2022-0246
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.