{"id":"CVE-2026-48686","aliases":["CVE-2026-48686"],"related":[],"kind":"vulnerability","state":"published","title":"FastNetMon Community Edition through 1.2.9 contains a stack-based buffer overflow in the BGP NLRI (Network Layer Reachability Information)…","summary":"FastNetMon Community Edition through 1.2.9 contains a stack-based buffer overflow in the BGP NLRI (Network Layer Reachability Information) decoder. The function decode_bgp_subnet_encoding_ipv4_raw() in src/bgp_protocol.cpp reads prefix_bit_length directly from the BGP packet (line 99) without validating it is <= 32 for IPv4 prefixes. This value is passed to how_much_bytes_we_need_for_storing_certain_subnet_mask() which computes ceil(prefix_bit_length / 8), returning up to 32 bytes for a prefix_bit_length of 255. The result is used as the length argument to memcpy() (line 106), which copies into a 4-byte uint32_t stack variable (prefix_ipv4). This causes a stack buffer overflow of up to 28 bytes, which can be exploited for arbitrary code execution. Additionally, the unvalidated prefix_bit_length is passed to convert_cidr_to_binary_netmask_local_function_copy() (line 111), where a shift of (32 - cidr) with cidr > 32 causes undefined behavior.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"FastNetMon Community Edition through 1.2.9 contains a stack-based buffer overflow in the BGP NLRI (Network Layer Reachability Information) decoder. The function decode_bgp_subnet_encoding_ipv4_raw() in src/bgp_protocol.cpp reads prefix_bit_length directly from the BGP packet (line 99) without validating it is <= 32 for IPv4 prefixes. This value is passed to how_much_bytes_we_need_for_storing_certain_subnet_mask() which computes ceil(prefix_bit_length / 8), returning up to 32 bytes for a prefix_bit_length of 255. The result is used as the length argument to memcpy() (line 106), which copies into a 4-byte uint32_t stack variable (prefix_ipv4). This causes a stack buffer overflow of up to 28 bytes, which can be exploited for arbitrary code execution. Additionally, the unvalidated prefix_bit_length is passed to convert_cidr_to_binary_netmask_local_function_copy() (line 111), where a shift of (32 - cidr) with cidr > 32 causes undefined behavior.","source":"cvelist"},{"lang":"es","text":"FastNetMon Community Edition hasta la versión 1.2.9 contiene un desbordamiento de búfer basado en pila en el decodificador BGP NLRI (Información de Alcance de Capa de Red). La función decode_bgp_subnet_encoding_ipv4_raw() en src/bgp_protocol.cpp lee prefix_bit_length directamente del paquete BGP (línea 99) sin validar que sea <= 32 para prefijos IPv4. Este valor se pasa a how_much_bytes_we_need_for_storing_certain_subnet_mask() que calcula ceil(prefix_bit_length / 8), devolviendo hasta 32 bytes para un prefix_bit_length de 255. El resultado se utiliza como argumento de longitud para memcpy() (línea 106), que copia en una variable de pila uint32_t de 4 bytes (prefix_ipv4). Esto causa un desbordamiento de búfer basado en pila de hasta 28 bytes, que puede ser explotado para ejecución de código arbitrario. Además, el prefix_bit_length no validado se pasa a convert_cidr_to_binary_netmask_local_function_copy() (línea 111), donde un desplazamiento de (32 - cidr) con cidr > 32 causa un comportamiento indefinido.","source":"nvd"}],"published":"2026-05-26T00:00:00.000Z","modified":"2026-07-24T11:10:00.170Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-120","CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"1.2.9"}],"vendor":"pavel-odintsov","product":"fastnetmon","cpe":"cpe:2.3:a:pavel-odintsov:fastnetmon:*:*:*:*:community:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/pavel-odintsov/fastnetmon","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/pavel-odintsov/fastnetmon/blob/master/src/bgp_protocol.cpp","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://lorikeetsecurity.com/blog/fastnetmon-cve-2026-48686-bgp-nlri-stack-overflow","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-26T20:58:47.062Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48686","url":"https://www.cve.org/CVERecord?id=CVE-2026-48686","licence":"CVE Terms of Use","modified":"2026-05-26T20:59:11.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48686","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48686","licence":"Public domain","modified":"2026-07-24T11:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:22.331Z","epss":{"score":0.00565,"percentile":0.48315,"date":"2026-12-02T12:00:21.000Z"}}