CVE-2021-3761
HIGH 7.5CVSS 3.1OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values
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.
- Published
- 9 Sep 2021
- Last modified
- 8 Jul 2026
- Assigned by
- cna@cloudflare.com
- NVD status
- Modified
- Weakness
- CWE-295CWE-787
- Also known as
- GHSA-c8xp-8mf3-62h9GO-2022-0246
- Sources
- NVDJSONOSV GHSA-c8xp-8mf3-62h9JSONOSV GO-2022-0246JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@cloudflare.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cloudflare | octorpkicpe:2.3:a:cloudflare:octorpki:*:*:*:*:*:*:*:* |
< 1.3.0 | 1.3.0 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 | |
| OSV | Go | github.com/cloudflare/cfrpki | < 1.3.0 | 1.3.0 |
References
- https://github.com/cloudflare/cfrpki/security/advisories/GHSA-c8xp-8mf3-62h9 · Patch, Third Party Advisory, WEB
- https://www.debian.org/security/2022/dsa-5041 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3761 · ADVISORY
- https://github.com/cloudflare/cfrpki/pull/90 · WEB, FIX
- https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422 · WEB, FIX
- https://github.com/cloudflare/cfrpki/releases/tag/v1.3.0 · WEB
- https://pkg.go.dev/vuln/GO-2022-0246 · WEB
- github.com/cloudflare/cfrpki · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 9 Sep 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Jul 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 7 Sep 2021)