# CVE-2025-43970: GoBGP does not properly check the input length

- Severity: Medium 4.3 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-04-21T00:00:00.000Z
- Modified: 2026-09-10T03:50:57.242Z
- Also known as: GHSA-hqhq-hp5x-xp3w, GO-2025-3630
- Related: CGA-jxf8-xr6h-j4wf
- Weaknesses: CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

An issue was discovered in GoBGP before 3.35.0. pkg/packet/mrt/mrt.go does not properly check the input length, e.g., by ensuring that there are 12 bytes or 36 bytes (depending on the address family).

(As written by CVE List.)

## Affected

- GoBGP GoBGP: before 3.35.0
- github.com/osrg/gobgp (Go): all versions
- github.com/osrg/gobgp/v3 (Go): before 3.35.0
- osrg gobgp: before 3.35.0

## Every score

- mitre: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/osrg/gobgp/compare/v3.34.0...v3.35.0> (patch, release-notes, web)
- <https://github.com/osrg/gobgp/commit/5153bafbe8dbe1a2f02a70bbf0365e98b80e47b0> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-43970> (advisory)
- <https://github.com/osrg/gobgp> (package)
- <https://github.com/advisories/GHSA-hqhq-hp5x-xp3w> (advisory)

## Sources

- CVE List: [CVE-2025-43970](https://www.cve.org/CVERecord?id=CVE-2025-43970), CVE Terms of Use, modified 2025-04-21
- GitHub Advisory Database: [GHSA-hqhq-hp5x-xp3w](https://github.com/advisories/GHSA-hqhq-hp5x-xp3w), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3630](https://pkg.go.dev/vuln/GO-2025-3630), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-43970](https://nvd.nist.gov/vuln/detail/CVE-2025-43970), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-43970 · Whole record: https://cve.day/CVE-2025-43970.json · Rebuilt by cve.day 2026-11-25T22:58:56.804Z
