# CVE-2026-74755: Apache bRPC: Integer Underflow in mcpack2pb Parser Leading to Denial of Service

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-10-21T11:45:25.658Z
- Modified: 2026-10-30T18:18:12.603Z
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: apache

## Description

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).

Root Cause:
In 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.

Affected Scenarios:
bRPC 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.

How to Fix:
1. Upgrade bRPC to a version that includes this fix.
2. Apply the patch in PR  https://github.com/apache/brpc/pull/3450

(As written by CVE List.)

## Affected

- apache/brpc: before 1.18.0

## References

- <https://lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb> (vendor-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2026-74755 · Whole record: https://cve.day/CVE-2026-74755.json · Rebuilt by cve.day 2026-11-25T22:59:46.583Z
