{"answers":{"affected":"3 open source packages ship an affected version, including github.com/cloudflare/cfrpki. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-3761 in the wild and no public exploit code.","fix":"Upgrade github.com/cloudflare/cfrpki to 1.3.0 or later.","what":"CVE-2021-3761 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 9 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3761 and fix it if it is affected.\n\nWhat it is: CVE-2021-3761 is a high-severity denial of service vulnerability in Debian Debian Linux, published on 9 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3761 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cloudflare/cfrpki (Go): affected all versions; fixed in 1.3.0\n- github.com/cloudflare/cfrpki (Go): affected all versions; fixed in 1.3.0\n- github.com/cloudflare/cfrpki (Go): affected all versions; fixed in 1.3.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-3761/ (Markdown: https://insights.sbomify.com/CVE-2021-3761/index.md)","id":"CVE-2021-3761","markdown":"https://insights.sbomify.com/CVE-2021-3761/index.md","name":"CVE-2021-3761","record":{"aliases":["DEBIAN-CVE-2021-3761","GHSA-c8xp-8mf3-62h9","GO-2022-0246"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"RPKI validation software","requires_auth":"none","summary":"Attackers can crash RTR sessions by sending invalid RPKI data, disabling origin validation and enabling BGP hijacks.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"cloudflare","cpe":[{"product":"octorpki","vendor":"cloudflare"},{"product":"debian_linux","vendor":"debian"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values","id":"CVE-2021-3761","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"denial_of_service","year":"2021"},"n_packages":3,"n_references":2,"next":{"headline":"Path traversal in claircore","id":"CVE-2021-3762"},"packages":[{"ecosystem":"Go","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudflare/cfrpki","purl":null,"source":"GHSA-c8xp-8mf3-62h9"},{"ecosystem":"Go","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"GHSA-c8xp-8mf3-62h9"},{"ecosystem":"Go","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudflare/cfrpki","purl":"pkg:golang/github.com/cloudflare/cfrpki","source":"GO-2022-0246"}],"prev":{"headline":"Use after free in kernel","id":"CVE-2021-3760"},"products":["octorpki"],"published":"2021-09-09","related":[{"cvss_score":7.5,"headline":"Improper Preservation of Permissions in github.com/cloudflare/cfrpki/cmd/octorpki","id":"CVE-2021-3978","kev_date_added":null,"published":"2025-01-29"},{"cvss_score":7.4,"headline":"Arbitrary filepath traversal via URI injection","id":"CVE-2021-3907","kev_date_added":null,"published":"2021-11-11"},{"cvss_score":5.9,"headline":"Infinite certificate chain depth results in OctoRPKI running forever","id":"CVE-2021-3908","kev_date_added":null,"published":"2021-11-11"},{"cvss_score":5.4,"headline":"OctoRPKI crash when maximum iterations number is reached","id":"CVE-2022-3616","kev_date_added":null,"published":"2022-10-28"},{"cvss_score":4.4,"headline":"Infinite open connection causes OctoRPKI to hang forever","id":"CVE-2021-3909","kev_date_added":null,"published":"2021-11-11"},{"cvss_score":4.4,"headline":"NUL character in ROA causes OctoRPKI to crash","id":"CVE-2021-3910","kev_date_added":null,"published":"2021-11-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Cloudflare"]},"summary":"Attackers can crash RTR sessions by sending invalid RPKI data, disabling origin validation and enabling BGP hijacks.","url":"https://insights.sbomify.com/CVE-2021-3761/"}