CVE-2026-5123
NixOS vulnerability analysis and mitigation

Overview

CVE-2026-5123 is an off-by-one error (CWE-193) in osrg GoBGP, an open-source BGP implementation written in Go. The vulnerability affects the CapSoftwareVersion.DecodeFromBytes function in pkg/packet/bgp/bgp.go across all GoBGP versions up to and including 4.3.0. It was published on March 30, 2026, with a fix merged on March 12, 2026 via pull request #3342. The vulnerability carries a CVSS v3.1 base score of 3.7 (Low) and a CVSS v4.0 base score of 6.3 (Medium) (Github Advisory, Feedly).

Technical details

The root cause is an off-by-one error (CWE-193) in the CapSoftwareVersion.DecodeFromBytes function within pkg/packet/bgp/bgp.go. The flawed code used data[1:c.SoftwareVersionLen] to extract the software version string, which incorrectly truncates the last byte because the version string begins at index 1 (not 0); the correct slice is data[1:1+SoftwareVersionLen] (GoBGP PR #3342, GoBGP Commit). An attacker can trigger this condition remotely by sending a crafted BGP OPEN message containing a malformed Software Version capability, though exploitation requires high attack complexity with no privileges or user interaction needed (Github Advisory).

Impact

Successful exploitation of this vulnerability can cause a denial of service condition affecting the availability of the GoBGP service. The impact is limited to low availability disruption — there is no effect on confidentiality or integrity, and no lateral movement or data exposure risk has been identified. Because GoBGP is used as a BGP routing daemon, disruption of the service could affect network routing stability in environments where it is deployed (Github Advisory, Feedly).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time (Github Advisory). The EPSS score is approximately 0.047–0.105%, placing it in the lower percentiles for exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. High attack complexity significantly limits practical exploitation, and no threat actor attribution has been reported (Feedly).

Mitigation and workarounds

The fix is available in commit 67c059413470df64bc20801c46f64058e88f800f, merged into the GoBGP master branch on March 12, 2026, and included in version 4.4.0 and later (GoBGP Commit, GoBGP PR #3342). Operators running GoBGP versions 4.0, 4.1, 4.2, or 4.3.0 should upgrade to version 4.4.0 or later. Given the high attack complexity and limited availability impact, the immediate risk is lower than typical critical vulnerabilities, but patching remains the recommended remediation (Github Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-72898CRITICAL10
  • NixOS logoNixOS
  • metabase
YesYesAug 10, 2026
CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util-sqlite-debuginfo
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util-odbc
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util-mysql
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management