# CVE-2021-3761: OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values

- Severity: High 7.5 (CVSS:3.1, scored by cloudflare) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.22%, higher than 69% of CVEs (2026-12-01)
- Published: 2021-09-07T23:02:18.000Z
- Modified: 2026-07-08T06:27:57.548Z
- Also known as: GHSA-c8xp-8mf3-62h9, GO-2022-0246
- Weaknesses: CWE-295, CWE-787
- Assigned by: cloudflare

## Description

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.

(As written by CVE List.)

## Affected

- Cloudflare octorpki: from unspecified before 1.3.0; before 1.3.0
- github.com/cloudflare/cfrpki (Go): before 1.3.0
- debian debian_linux: 11.0

## Every score

- cloudflare: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## 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, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3761> (advisory)
- <https://github.com/cloudflare/cfrpki/pull/90> (fix, web)
- <https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422> (fix, web)
- <https://github.com/cloudflare/cfrpki/releases/tag/v1.3.0> (web)
- <https://pkg.go.dev/vuln/GO-2022-0246> (web)

## Sources

- CVE List: [CVE-2021-3761](https://www.cve.org/CVERecord?id=CVE-2021-3761), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-c8xp-8mf3-62h9](https://github.com/advisories/GHSA-c8xp-8mf3-62h9), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0246](https://pkg.go.dev/vuln/GO-2022-0246), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-3761](https://nvd.nist.gov/vuln/detail/CVE-2021-3761), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3761 · Whole record: https://cve.day/CVE-2021-3761.json · Rebuilt by cve.day 2026-11-25T22:58:03.859Z
