{"id":"CVE-2026-74755","aliases":["CVE-2026-74755"],"related":[],"kind":"vulnerability","state":"published","title":"Apache bRPC: Integer Underflow in mcpack2pb Parser Leading to Denial of Service","summary":"An integer underflow in the mcpack2pb component of Apache bRPC (version < 1.18.0) on all platforms allows remote attackers to crash a bRPC server by sending a request containing a string field with a zero value_size. The UnparsedValue::as_string() function computes `_size - 1` without validating `_size`; when value_size is 0 the expression underflows to SIZE_MAX, resize() throws std::length_error, and because the exception is not caught on the request parsing path the process aborts (SIGABRT).\n\nRoot Cause:\nIn src/mcpack2pb/parser.cpp, UnparsedValue::as_string() resizes the output string to `_size - 1`, where `_size` is the value_size of a string field taken directly from the network data. A value_size of 0 underflows the unsigned size_t, and the subsequent resize() throws an exception that is not caught.\n\nAffected Scenarios:\nbRPC servers that accept nshead frames wired to the ubrpc mcpack2 adaptor (for example the NsheadService + UbrpcMcpack2Adaptor deployment pattern) can be crashed by a single unauthenticated request. Stock open-source bRPC registers the ubrpc/nshead_mcpack protocols as client-only, so default server configurations are not affected.\n\nHow to Fix:\n1. Upgrade bRPC to a version that includes this fix.\n2. Apply the patch in PR  https://github.com/apache/brpc/pull/3450","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An integer underflow in the mcpack2pb component of Apache bRPC (version < 1.18.0) on all platforms allows remote attackers to crash a bRPC server by sending a request containing a string field with a zero value_size. The UnparsedValue::as_string() function computes `_size - 1` without validating `_size`; when value_size is 0 the expression underflows to SIZE_MAX, resize() throws std::length_error, and because the exception is not caught on the request parsing path the process aborts (SIGABRT).\n\nRoot Cause:\nIn src/mcpack2pb/parser.cpp, UnparsedValue::as_string() resizes the output string to `_size - 1`, where `_size` is the value_size of a string field taken directly from the network data. A value_size of 0 underflows the unsigned size_t, and the subsequent resize() throws an exception that is not caught.\n\nAffected Scenarios:\nbRPC servers that accept nshead frames wired to the ubrpc mcpack2 adaptor (for example the NsheadService + UbrpcMcpack2Adaptor deployment pattern) can be crashed by a single unauthenticated request. Stock open-source bRPC registers the ubrpc/nshead_mcpack protocols as client-only, so default server configurations are not affected.\n\nHow to Fix:\n1. Upgrade bRPC to a version that includes this fix.\n2. Apply the patch in PR  https://github.com/apache/brpc/pull/3450","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad de desbordamiento por entero en el componente mcpack2pb de Apache bRPC (versión anterior a la 1.18.0) en todas las plataformas permite a atacantes remotos bloquear un servidor bRPC enviando una solicitud que contiene un campo de cadena con un value_size igual a cero. La función UnparsedValue::as_string() calcula “_size - 1” sin validar “_size”; cuando value_size es 0 la expresión desborda a SIZE_MAX, resize() lanza std::length_error y, como la excepción no se captura en la ruta de análisis de la solicitud, el proceso aborta (SIGABRT).\\n\\nCausa raíz:\\nEn src/mcpack2pb/parser.cpp, UnparsedValue::as_string() redimensiona la cadena de salida a “_size - 1”, donde “_size” es el value_size de un campo de cadena tomado directamente de los datos de la red. Un value_size de 0 desborda el size_t sin signo, y el posterior resize() lanza una excepción que no se captura.\\n\\nEscenarios afectados:\\nLos servidores bRPC que aceptan tramas nshead conectadas al adaptador ubrpc mcpack2 (por ejemplo, el patrón de despliegue NsheadService + UbrpcMcpack2Adaptor) pueden ser bloqueados por una única solicitud no autenticada. La versión de código abierto de bRPC registra los protocolos ubrpc/nshead_mcpack como solo cliente, por lo que las configuraciones de servidor predeterminadas no se ven afectadas.\\n\\nCómo corregir:\\n1. Actualizar bRPC a una versión que incluya esta corrección.  \\n2. Aplicar el parche en PR https://github.com/apache/brpc/pull/3450","source":"nvd"}],"published":"2026-10-21T11:45:25.658Z","modified":"2026-10-30T18:18:12.603Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-191"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.18.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache bRPC","package":"apache/brpc","source":"cvelist"}],"references":[{"url":"https://lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["Feng Zhijie (Independent security researcher)"],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-30T17:56:37.339Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74755","url":"https://www.cve.org/CVERecord?id=CVE-2026-74755","licence":"CVE Terms of Use","modified":"2026-10-30T17:56:42.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74755","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74755","licence":"Public domain","modified":"2026-10-30T18:18:12.603Z"}],"updatedAt":"2026-11-25T22:59:46.583Z","epss":{"score":0.0057,"percentile":0.48548,"date":"2026-12-01T12:00:22.000Z"}}