{"answers":{"affected":"3 open source packages ship an affected version, including github.com/osrg/gobgp/v4. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42285 exists.","fix":"Upgrade github.com/osrg/gobgp/v4 to 4.5.0 or later.","what":"CVE-2026-42285 is a high-severity vulnerability in osrg gobgp, published on 7 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-42285 and fix it if it is affected.\n\nWhat it is: CVE-2026-42285 is a high-severity vulnerability in osrg gobgp, published on 7 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42285 exists.\n\nAffected packages and fixed versions:\n- github.com/osrg/gobgp/v4 (Go): affected from 4.4.0; fixed in 4.5.0\n- github.com/osrg/gobgp/v4 (Go): affected from 4.4.0; fixed in 4.5.0\n- github.com/osrg/gobgp/v4 (Go): affected from 4.4.0; fixed in 4.5.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-2026-42285/ (Markdown: https://insights.sbomify.com/CVE-2026-42285/index.md)","id":"CVE-2026-42285","markdown":"https://insights.sbomify.com/CVE-2026-42285/index.md","name":"CVE-2026-42285","record":{"aliases":["DEBIAN-CVE-2026-42285","GHSA-p3w2-64xm-833j","GO-2026-5525"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"BGP routing software","requires_auth":"none","summary":"An unauthenticated remote attacker can crash the GoBGP service by sending a malformed BGP UPDATE message, causing a denial of service.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gobgp","vendor":"osrg"}],"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-476","name":"NULL Pointer Dereference"}],"description":"GoBGP is an open source Border Gateway Protocol (BGP) implementation in the Go Programming Language. In version 4.4.0, an unauthenticated remote BGP peer can trigger a fatal panic in GoBGP by sending a specially crafted BGP UPDATE message. When the server receives a message with inconsistent attribute lengths, it improperly handles the internal state transition to a \"withdraw\" action, leading to a nil pointer dereference in the AdjRib.Update function. This causes the entire GoBGP process to crash, resulting in a complete loss of service availability. This issue has been patched in version 4.5.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"GoBGP: Panic in AdjRib.Update via malformed BGP Update message (Nil Pointer Dereference)","id":"CVE-2026-42285","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"null_dereference","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Emlog: Cross-Site Request Forgery in Admin Functions","id":"CVE-2026-42286"},"packages":[{"ecosystem":"Go","fixed":["4.5.0"],"introduced":["4.4.0"],"last_affected":[],"package":"github.com/osrg/gobgp/v4","purl":null,"source":"GHSA-p3w2-64xm-833j"},{"ecosystem":"Go","fixed":["4.5.0"],"introduced":["4.4.0"],"last_affected":[],"package":"github.com/osrg/gobgp/v4","purl":"pkg:golang/github.com/osrg/gobgp/v4","source":"GHSA-p3w2-64xm-833j"},{"ecosystem":"Go","fixed":["4.5.0"],"introduced":["4.4.0"],"last_affected":[],"package":"github.com/osrg/gobgp/v4","purl":"pkg:golang/github.com/osrg/gobgp/v4","source":"GO-2026-5525"}],"prev":{"headline":"GitPython: Unsafe option check validates multi_options before shlex.split transforms it","id":"CVE-2026-42284"},"products":["gobgp"],"published":"2026-05-07","related":[{"cvss_score":8.6,"headline":"GoBGP panics due to a zero value for softwareVersionLen","id":"CVE-2025-43971","kev_date_added":null,"published":"2025-04-21"},{"cvss_score":7.5,"headline":"GoBGP: Remote Denial of Service (Panic) via Malformed Well-known Path Attribute","id":"CVE-2026-41642","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.5,"headline":"GoBGP: Remote Denial of Service (Panic) in UpdatePathAttrs4ByteAs via Malformed BGP UPDATE","id":"CVE-2026-41643","kev_date_added":null,"published":"2026-05-07"},{"cvss_score":7.5,"headline":"GoBGP has an out-of-bounds read in the ParseIP6Extended function","id":"CVE-2026-37461","kev_date_added":null,"published":"2026-05-04"},{"cvss_score":7.5,"headline":"GoBGP vulnerable to a denial of service via the NEXT_HOP path attribute","id":"CVE-2026-30405","kev_date_added":null,"published":"2026-03-16"},{"cvss_score":6.9,"headline":"osrg GoBGP SRv6 L3 Service prefix_sid.go SRv6L3ServiceAttribute.DecodeFromBytes denial of service","id":"CVE-2026-7734","kev_date_added":null,"published":"2026-05-04"}],"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-07","vendors":["osrg"]},"summary":"An unauthenticated remote attacker can crash the GoBGP service by sending a malformed BGP UPDATE message, causing a denial of service.","url":"https://insights.sbomify.com/CVE-2026-42285/"}