Skip to content
OpenAdvisories
High · 7.5 CVE-2021-3761 EUVD-2021-2036GHSA-c8xp-8mf3-62h9GO-2022-0246

OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values

Published Sep 9, 2021 · Updated Sep 17, 2024 · 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.

Affected products

VendorProductAffectedFixed
Cloudflare octorpki unspecified – < 1.3.0 1.3.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 cfrpki 1.3.0-1 —
Debian 11 cfrpki 1.4.2-1~deb11u1 DSA-5041-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/cloudflare/cfrpki < 1.3.0 1.3.0 GHSA-c8xp-8mf3-62h9

Advisories 1

References