
Fixing Recent Validation Vulnerabilities in OctoRPKI
11/12/2021
This post details the discovery and remediation of several vulnerabilities in OctoRPKI, a component of Cloudflare's RPKI toolkit used for BGP route validation. The vulnerabilities, disclosed by researchers from the University of Twente, included arbitrary file writes (CVE-2021-3907) due to path traversal in URIs, and crashes or uncontrolled resource consumption (CVE-2021-3908, CVE-2021-3909, CVE-2021-3910, CVE-2021-3911, CVE-2021-3912) caused by issues like infinite certificate chain depth, infinite open connections, NUL characters in ROA files, misconfigured IP address fields, and GZIP bombs. Cloudflare released OctoRPKI v1.4.0 with mitigations including URI filtering to prevent directory traversal and bounds checking to handle malformed inputs, ensuring the software fails closed or reports errors gracefully.





