gobgp — security advisory
A security flaw has been discovered in osrg GoBGP up to 4.3.0. This affects the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go of the component BGP OPEN Message Handler. Performing a manipulation of the argument domainNameLen results in improper access controls. The attack may be initiated remotely. A high degree of complexity is needed for the attack. The exploitability is reported as difficult. The patch is named 2b09db390a3d455808363c53e409afe6b1b86d2d. It is suggested to install a patch to address this issue.
- Products
- gobgp
- Affected versions
- 1.15-1, 1.29-1, 1.29-1ubuntu0.1+esm1, 1.29-1ubuntu0.1+esm2, 1.33-1, 2.11.0-1, 2.12.0-1, 2.12.0-1ubuntu0.1~esm1, 2.12.0-1ubuntu0.1~esm2, 2.12.0-1ubuntu0.1~esm3, 2.25.0-2, 2.25.0-3, 2.25.0-3build1, 2.25.0-3ubuntu0.1, 2.25.0-3ubuntu0.1+esm1, 2.25.0-3ubuntu0.1+esm2, 2.25.0-3ubuntu0.1+esm3, 2.25.0-3ubuntu0.1+esm4, 3.16.0-1build1, 3.19.0-1, 3.21.0-1, 3.23.0-1, 3.23.0-1ubuntu0.1, 3.23.0-1ubuntu0.2, 3.23.0-1ubuntu0.2+esm1, 3.23.0-1ubuntu0.3, 3.23.0-1ubuntu0.3+esm1, 3.23.0-1ubuntu0.3+esm2, 3.23.0-1ubuntu0.3+esm3, 3.23.0-1ubuntu0.3+esm4, 3.35.0-1, 3.36.0-2, 3.36.0-2build1, 3.36.0-2ubuntu0.1~esm1, 4.8.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-5122
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:28 UTC · Revision 1
Source evidence
A security flaw has been discovered in osrg GoBGP up to 4.3.0. This affects the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go of the component BGP OPEN Message Handler. Performing a manipulation of the argument domainNameLen results in improper access controls. The attack may be initiated remotely. A high degree of complexity is needed for the attack. The exploitability is reported as difficult. The patch is named 2b09db390a3d455808363c53e409afe6b1b86d2d. It is suggested to install a patch to address this issue.
osv:UBUNTU-CVE-2026-5122
gobgp
Fixed versions: Not specified
gobgp
Fixed versions: Not specified
gobgp
Fixed versions: Not specified
gobgp
Fixed versions: Not specified
gobgp
Fixed versions: Not specified
gobgp
Fixed versions: Not specified
gobgp
Fixed versions: Not specified
Complete source record
{
"id": "e7c74d51d11ded803997f3c0a8d798cb7bd621a1ebbcdffece04cb24c5e6552a",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-5122",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-5122",
"summary": "A security flaw has been discovered in osrg GoBGP up to 4.3.0. This affects the function DecodeFromBytes of the file pkg/packet/bgp/bgp.go of the component BGP OPEN Message Handler. Performing a manipulation of the argument domainNameLen results in improper access controls. The attack may be initiated remotely. A high degree of complexity is needed for the attack. The exploitability is reported as difficult. The patch is named 2b09db390a3d455808363c53e409afe6b1b86d2d. It is suggested to install a patch to address this issue.",
"evidence": "osv:UBUNTU-CVE-2026-5122",
"products": [
{
"name": {
"value": "gobgp",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.15-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.29-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.29-1ubuntu0.1+esm1",
"evidence": "/affected/0/versions"
},
{
"value": "1.29-1ubuntu0.1+esm2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "gobgp",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.33-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.11.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.12.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.12.0-1ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
},
{
"value": "2.12.0-1ubuntu0.1~esm2",
"evidence": "/affected/1/versions"
},
{
"value": "2.12.0-1ubuntu0.1~esm3",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "gobgp",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.25.0-2",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3build1",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3ubuntu0.1",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3ubuntu0.1+esm1",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3ubuntu0.1+esm2",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3ubuntu0.1+esm3",
"evidence": "/affected/2/versions"
},
{
"value": "2.25.0-3ubuntu0.1+esm4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "gobgp",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.16.0-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "3.19.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.21.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.1",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.2",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.2+esm1",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.3",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.3+esm1",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.3+esm2",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.3+esm3",
"evidence": "/affected/3/versions"
},
{
"value": "3.23.0-1ubuntu0.3+esm4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "gobgp",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.35.0-1",
"evidence": "/affected/4/versions"
},
{
"value": "3.36.0-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "gobgp",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.36.0-2build1",
"evidence": "/affected/5/versions"
},
{
"value": "4.8.0-1",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "gobgp",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.36.0-2",
"evidence": "/affected/6/versions"
},
{
"value": "3.36.0-2build1",
"evidence": "/affected/6/versions"
},
{
"value": "3.36.0-2ubuntu0.1~esm1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-5122",
"aliases": [
"UBUNTU-CVE-2026-5122"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"1.15-1",
"1.29-1",
"1.29-1ubuntu0.1+esm1",
"1.29-1ubuntu0.1+esm2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "1.29-1ubuntu0.1+esm2"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "1.29-1ubuntu0.1+esm2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"1.33-1",
"2.11.0-1",
"2.12.0-1",
"2.12.0-1ubuntu0.1~esm1",
"2.12.0-1ubuntu0.1~esm2",
"2.12.0-1ubuntu0.1~esm3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "2.12.0-1ubuntu0.1~esm3"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "2.12.0-1ubuntu0.1~esm3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"2.25.0-2",
"2.25.0-3",
"2.25.0-3build1",
"2.25.0-3ubuntu0.1",
"2.25.0-3ubuntu0.1+esm1",
"2.25.0-3ubuntu0.1+esm2",
"2.25.0-3ubuntu0.1+esm3",
"2.25.0-3ubuntu0.1+esm4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "2.25.0-3ubuntu0.1+esm4"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "2.25.0-3ubuntu0.1+esm4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"3.16.0-1build1",
"3.19.0-1",
"3.21.0-1",
"3.23.0-1",
"3.23.0-1ubuntu0.1",
"3.23.0-1ubuntu0.2",
"3.23.0-1ubuntu0.2+esm1",
"3.23.0-1ubuntu0.3",
"3.23.0-1ubuntu0.3+esm1",
"3.23.0-1ubuntu0.3+esm2",
"3.23.0-1ubuntu0.3+esm3",
"3.23.0-1ubuntu0.3+esm4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "3.23.0-1ubuntu0.3+esm4"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "3.23.0-1ubuntu0.3+esm4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.35.0-1",
"3.36.0-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "3.36.0-2"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "3.36.0-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.36.0-2build1",
"4.8.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "4.8.0-1"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "4.8.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "gobgp",
"purl": "pkg:deb/ubuntu/gobgp?arch=source&distro=esm-apps%2Fresolute",
"ecosystem": "Ubuntu:Pro:26.04:LTS"
},
"versions": [
"3.36.0-2",
"3.36.0-2build1",
"3.36.0-2ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5122.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "gobgpd",
"binary_version": "3.36.0-2ubuntu0.1~esm1"
},
{
"binary_name": "golang-github-osrg-gobgp-dev",
"binary_version": "3.36.0-2ubuntu0.1~esm1"
}
]
}
}
],
"modified": "2026-10-17T12:58:34.509876798Z",
"provider": "osv",
"upstream": [
"CVE-2026-5122"
],
"references": [
"https://ubuntu.com/security/CVE-2026-5122",
"https://www.cve.org/CVERecord?id=CVE-2026-5122",
"https://github.com/osrg/gobgp/pull/3343"
]
},
"related_cves": [
{
"value": "CVE-2026-5122",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 358806,
"published_at": "2026-03-30T15:16:00+00:00"
}