Skip to content

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

HighCVSS 7.5 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 4 fixed.

PackageAffectedFixed inStatus
cloudflare github.com/cloudflare/cfrpki(Go) < 1.3.0 1.3.0 Fixed
cloudflare OctoRPKI < 1.3.0 1.3.0 Fixed
debian/cfrpki(Debian 12) < 1.3.0-1 1.3.0-1 Fixed
ubuntu/cfrpki(Ubuntu 22.04) < 1.4.2-1; = 1.2.2-1; = 1.3.0-1; = 1.4.0-1 1.4.2-1 Fixed
debian linux = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cloudflare github.com/cloudflare/cfrpki(Go) < 1.3.0 1.3.0
debian/cfrpki(Debian:12) < 1.3.0-1 1.3.0-1
cloudflare OctoRPKI < 1.3.0 1.3.0
debian linux = 11.0 No fix listed
ubuntu/cfrpki(Ubuntu:22.04) < 1.4.2-1 1.4.2-1
ubuntu/cfrpki(Ubuntu:22.04) = 1.2.2-1 No fix listed
ubuntu/cfrpki(Ubuntu:22.04) = 1.3.0-1 No fix listed
ubuntu/cfrpki(Ubuntu:22.04) = 1.4.0-1 No fix listed

References