# CVE-2026-138151: bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling

- Severity: High 8.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-11-28T01:42:59.061Z
- Modified: 2026-11-28T02:17:34.767Z
- Weaknesses: CWE-190
- Assigned by: VulnCheck

## Description

bgpq4 before 1.17 contains an integer overflow vulnerability in expander.c that allows malicious IRR servers to corrupt heap memory by sending crafted A<len> replies. Attackers controlling the IRR server or tampering with the plaintext TCP connection can announce a ULONG_MAX or -1 length, wrapping the allocation to one byte and crashing bgpq4.

(As written by CVE List.)

## Affected

- bgpq4 bgpq4: before 1.17

## Every score

- VulnCheck: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/bgp/bgpq4/pull/141> (issue-tracking, patch)
- <https://github.com/bgp/bgpq4/commit/a232916868d1422edfc7fd5e0a00edd02c80c79a> (patch)
- <https://github.com/bgp/bgpq4/commit/37a3adb76f18a800efa6bb02848fbfd6458512e5> (patch)
- <https://github.com/bgp/bgpq4/releases/tag/1.17> (release-notes)
- <https://github.com/bgp/bgpq4/blob/1.17/CHANGES> (release-notes)
- <https://github.com/bgp/bgpq4/blob/1.16/expander.c#L722-L771> (technical-description)
- <https://github.com/bgp/bgpq4/blob/1.16/expander.c#L918-L958> (technical-description)
- <https://www.vulncheck.com/advisories/bgpq4-before-1.17-heap-buffer-overflow-via-irrd-a-len-reply-handling> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-138151](https://www.cve.org/CVERecord?id=CVE-2026-138151), CVE Terms of Use, modified 2026-11-28
- NVD: [CVE-2026-138151](https://nvd.nist.gov/vuln/detail/CVE-2026-138151), Public domain, modified 2026-11-28

---

Page: https://cve.day/CVE-2026-138151 · Whole record: https://cve.day/CVE-2026-138151.json · Rebuilt by cve.day 2026-11-28T02:32:33.116Z
