7.5high
OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values
- Severity
- 7.5high CVSS:3.1 by cloudflare
- Exploit likelihood
- 1.22% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- cloudflare
- Also known as
- GHSA-c8xp-8mf3-62h9GO-2022-0246
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Cloudflare octorpki | from unspecified before 1.3.0, before 1.3.0 | CVE List, NVD |
| github.com/cloudflare/cfrpki (Go) | before 1.3.0 | GitHub Advisory Database, Go Vulnerability Database |
| debian debian_linux | 11.0 | NVD |
All scores
| cloudflare | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Any CA issuer in the RPKI can trick OctoRPKI prior to https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422 into emitting an invalid VRP "MaxLength" value, causing RTR sessions to terminate.
Impact
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.
Patches
https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422
https://github.com/cloudflare/cfrpki/releases/tag/v1.3.0
For more information
If you have any questions or comments about this advisory:
- Email us at security@cloudflare.com
Go Vulnerability Database
The ROAEntry.Validate function fails to perform bounds checks on the MaxLength field, allowing invalid values to pass validation.
NVD (es)
Cualquier emisor de CA en la RPKI puede engañar a OctoRPKI anterior a versión 1.3.0 para que emita un valor "MaxLength" de VRP no válido, causando la terminación de las sesiones RTR. Un atacante puede usar esto para deshabilitar la Comprobación de Origen RPKI en una red víctima (por ejemplo AS 13335 - Cloudflare) antes de lanzar un hijack BGP que durante las operaciones normales sería rechazado como "RPKI invalid". Además, en determinados despliegues, la ruptura de la sesión de RTR también podría causar por sí misma la ruptura del enrutamiento BGP, causando problemas de disponibilidad
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3761 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c8xp-8mf3-62h9 changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0246 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-3761 changed 2026-06-17 | Public domain |