CVE-2021-3761
JSON

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 packageVersionsReported by
Cloudflare octorpkifrom unspecified before 1.3.0, before 1.3.0CVE List, NVD
github.com/cloudflare/cfrpki (Go)before 1.3.0GitHub Advisory Database, Go Vulnerability Database
debian debian_linux11.0NVD

All scores

cloudflare7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-3761 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-c8xp-8mf3-62h9 changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0246 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-3761 changed 2026-06-17Public domain