7.5high
Apache bRPC: Malformed Thrift T_EXCEPTION reply causes process termination in Thrift client
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.42% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
Description
A Thrift client in Apache bRPC (version < 1.18.0, built with WITH_THRIFT which is off by default) can be crashed by the server peer it talks to. When the server returns a T_EXCEPTION reply whose exception struct is malformed, the client decodes it without catching what Apache Thrift throws (TProtocolException, TTransportException or std::length_error). The exception unwinds out of the bthread task function and the process calls std::terminate(), terminating the whole process along with every other in-flight RPC. This is the client response path, so the adversary is the server peer, which THREAT_MODEL.md treats as untrusted. It requires a WITH_THRIFT build (off by default). How to Fix: 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3500
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| apache/brpc | before 1.18.0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
A Thrift client in Apache bRPC (version < 1.18.0, built with WITH_THRIFT which is off by default) can be crashed by the server peer it talks to. When the server returns a T_EXCEPTION reply whose exception struct is malformed, the client decodes it without catching what Apache Thrift throws (TProtocolException, TTransportException or std::length_error). The exception unwinds out of the bthread task function and the process calls std::terminate(), terminating the whole process along with every other in-flight RPC. This is the client response path, so the adversary is the server peer, which THREAT_MODEL.md treats as untrusted. It requires a WITH_THRIFT build (off by default). How to Fix: 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3500
NVD (es)
Un cliente Thrift en Apache bRPC (versiones anteriores a la 1.18.0, compilado con WITH_THRIFT, que está desactivado por defecto) puede ser bloqueado por el par servidor con el que se comunica. Cuando el servidor devuelve una respuesta T_EXCEPTION cuya estructura de excepción está malformada, el cliente la decodifica sin capturar lo que Apache Thrift lanza (TProtocolException, TTransportException o std::length_error). La excepción se propaga fuera de la función de tarea bthread y el proceso llama a std::terminate(), terminando todo el proceso junto con cualquier otra RPC en curso.\n\nEsta es la ruta de respuesta del cliente, por lo que el adversario es el par servidor, que THREAT_MODEL.md trata como no confiable. Requiere una compilación WITH_THRIFT (desactivada por defecto).\n\nCómo corregir:\n1. Actualizar bRPC a la versión 1.18.0, que soluciona este problema.\n2. Aplicar este parche: https://github.com/apache/brpc/pull/3500
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-82231 changed 2026-10-30 | CVE Terms of Use |
| NVD | CVE-2026-82231 changed 2026-10-30 | Public domain |