{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:osrg:gobgp:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.4.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "12b4ebaef14f61e1c7c7403c770b67826f0b8cf4"
            },
            {
              "fixed": "67c059413470df64bc20801c46f64058e88f800f"
            }
          ],
          "repo": "https://github.com/osrg/gobgp",
          "type": "GIT"
        }
      ],
      "versions": [
        "4.0",
        "4.1",
        "4.2",
        "4.3.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulDB",
    "cwe_ids": [
      "CWE-189",
      "CWE-193"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5123.json"
  },
  "details": "A weakness has been identified in osrg GoBGP up to 4.3.0. This impacts the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go. Executing a manipulation of the argument data[1] can lead to off-by-one. The attack may be launched remotely. Attacks of this nature are highly complex. The exploitability is said to be difficult. This patch is called 67c059413470df64bc20801c46f64058e88f800f. A patch should be applied to remediate this issue.",
  "id": "CVE-2026-5123",
  "modified": "2026-07-08T05:36:01.497166148Z",
  "published": "2026-03-30T15:15:14.229Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/osrg/gobgp/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5123.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5123"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/submit/780179"
    },
    {
      "type": "ADVISORY",
      "url": "https://vuldb.com/vuln/354155"
    },
    {
      "type": "REPORT",
      "url": "https://vuldb.com/vuln/354155/cti"
    },
    {
      "type": "FIX",
      "url": "https://github.com/osrg/gobgp/commit/67c059413470df64bc20801c46f64058e88f800f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/osrg/gobgp/pull/3342"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X",
      "type": "CVSS_V4"
    }
  ],
  "summary": "osrg GoBGP bgp.go DecodeFromBytes off-by-one"
}