CVE-2026-48691

FastNetMon Community Edition through 1.2.9 contains an integer overflow in the BGP AS_PATH attribute encoder. In src/bgp_protocol.hpp, the IPv4UnicastAnnounce::get_attributes() function computes attribute_length as 'sizeof(bgp_as_path_segment_element_t) + this->as_path_asns.size() * sizeof(uint32_t)' and stores it in a uint8_t field (line 600-605). Since uint8_t can only hold values 0-255, an AS_PATH containing more than 63 ASNs (2 + 64*4 = 258 > 255) causes silent truncation. The truncated length is used for buffer sizing, while the actual data written is the full untruncated amount, resulting in a heap buffer overflow. Similarly, the path_segment_length field at line 621 is also uint8_t, truncating with more than 255 ASNs.
Configurations

Configuration 1 (hide)

cpe:2.3:a:pavel-odintsov:fastnetmon:*:*:*:*:community:*:*:*

History

24 Jul 2026, 11:10

Type Values Removed Values Added
Summary
  • (es) FastNetMon Community Edition hasta la 1.2.9 contiene un desbordamiento de entero en el codificador del atributo BGP AS_PATH. En src/bgp_protocol.hpp, la función IPv4UnicastAnnounce::get_attributes() calcula attribute_length como 'sizeof(bgp_as_path_segment_element_t) + this - as_path_asns.size() * sizeof(uint32_t)' y lo almacena en un campo uint8_t (línea 600-605). Dado que uint8_t solo puede contener valores de 0-255, un AS_PATH que contenga más de 63 ASNs (2 + 644 = 258 > 255) causa una truncación silenciosa. La longitud truncada se utiliza para el dimensionamiento del búfer, mientras que los datos reales escritos son la cantidad completa sin truncar, lo que resulta en un desbordamiento de búfer de pila. De manera similar, el campo path_segment_length en la línea 621 también es uint8_t, truncando con más de 255 ASNs.

27 May 2026, 21:16

Type Values Removed Values Added
CWE CWE-122

27 May 2026, 15:29

Type Values Removed Values Added
First Time Pavel-odintsov fastnetmon
Pavel-odintsov
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 9.8
CPE cpe:2.3:a:pavel-odintsov:fastnetmon:*:*:*:*:community:*:*:*
References () https://github.com/pavel-odintsov/fastnetmon - () https://github.com/pavel-odintsov/fastnetmon - Product
References () https://github.com/pavel-odintsov/fastnetmon/blob/master/src/bgp_protocol.hpp - () https://github.com/pavel-odintsov/fastnetmon/blob/master/src/bgp_protocol.hpp - Product
References () https://lorikeetsecurity.com/blog/fastnetmon-cve-2026-48691-bgp-as-path-overflow - () https://lorikeetsecurity.com/blog/fastnetmon-cve-2026-48691-bgp-as-path-overflow - Third Party Advisory
CWE CWE-190

26 May 2026, 17:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-26 17:16

Updated : 2026-07-24 11:10


NVD link : CVE-2026-48691

Mitre link : CVE-2026-48691

CVE.ORG link : CVE-2026-48691


JSON object : View

Products Affected

pavel-odintsov

  • fastnetmon
CWE
CWE-190

Integer Overflow or Wraparound

CWE-122

Heap-based Buffer Overflow