CVE-2021-3911: Misconfigured IP address field in ROA leads to OctoRPKI crash in github.com/cloudflare/cfrpki

github.com/cloudflare/cfrpki Updated 02 Oct 2025

Summary

10/11/2021
Yes i
Moderate
4.2

CVE-2021-3911: Misconfigured IP address field in ROA leads to OctoRPKI crash. Affects github.com/cloudflare/cfrpki versions < 1.4.0. Fixed in 1.4.0. How to fix ↓

Also tracked for

The same CVE-2021-3911 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

github.com/cloudflare/cfrpki is a Go package that provides a repository for Resource Public Key Infrastructure (RPKI) data. RPKI is a system that allows Internet Service Providers (ISPs) to verify the legitimacy of IP address allocations. OctoRPKI is a component of cfrpki that handles the validation and verification of RPKI data. It is responsible for processing Route Origin Authorization (ROA) objects, which contain information about IP address prefixes and their associated Autonomous System Numbers (ASNs).

Vulnerability Detail

The vulnerability in OctoRPKI arises when a ROA returned by a repository contains an IP address with too many bits. This misconfiguration causes OctoRPKI to crash. The impact of this vulnerability is that the RPKI validation process will fail, potentially leading to incorrect routing decisions and security issues. The vulnerability has a CVSS score of 4.2, indicating a moderate severity level.

How To Fix

Latest published version: v1.5.10 as of 23 Oct 2026

go get github.com/cloudflare/cfrpki@v1.5.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.0

This is the first release that contains the fix.

go get github.com/cloudflare/cfrpki@v1.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The misconfigured IP address field in ROA vulnerability in github.com/cloudflare/cfrpki can lead to OctoRPKI crashes and RPKI validation failures. It is recommended to update to version 1.4.0 or later to fix this vulnerability. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for github.com/cloudflare/cfrpki →

Share this vulnerability

FAQ

The vulnerability can cause OctoRPKI to crash, leading to RPKI validation failures and potential security issues.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using Gopkg.lock as a data source.

RPKI (Resource Public Key Infrastructure) is a system that allows ISPs to verify the legitimacy of IP address allocations and prevent IP address hijacking.

ROA (Route Origin Authorization) is an object in RPKI that contains information about IP address prefixes and their associated ASNs. It is used for validation and verification of routing information.

The vulnerability has a CVSS score of 4.2, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/cloudflare/cfrpki.

How To Fix

Latest published version: v1.5.10 as of 23 Oct 2026

go get github.com/cloudflare/cfrpki@v1.5.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.4.0

This is the first release that contains the fix.

go get github.com/cloudflare/cfrpki@v1.4.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback