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
Published: 2026-10-21
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch Immediately
AI Analysis

Impact

An integer underflow occurs inside the mcpack2pb parser when handling string fields with a zero value_size. The UnparsedValue::as_string() function subtracts one from the provided size without validation, causing an unsigned underflow when the size is zero. The resulting resize() call throws std::length_error which propagates up the request parsing path and terminates the server process with SIGABRT. This allows a remote attacker to send a single unauthenticated request that immediately crashes the bRPC server, rendering it unavailable to legitimate traffic and constituting a denial‑of‑service condition.

Affected Systems

The vulnerability affects Apache bRPC components on all platforms with versions earlier than 1.18.0. bRPC servers that accept nshead frames wired to the ubrpc mcpack adaptor—such as deployments using NsheadService plus UbrpcMcpack2Adaptor—are susceptible. Stock open‑source bRPC defaults register the ubrpc/nshead_mcpack protocols as client‑only, so configurations that do not expose these server endpoints are not impacted by the flaw.

Risk and Exploitability

The flaw can be exploited remotely by crafting a request containing a string field whose size is zero. No authentication is required, and there are no environmental prerequisites beyond the vulnerable protocol being exposed. The CVSS score is 7.5, indicating a high severity denial‑of‑service vector. The EPSS score is <1%, and the issue is not listed in the CISA KEV catalog, suggesting no publicly known exploits yet but the potential for undisclosed use remains. Organizations running affected bRPC instances should assume the risk is significant enough to warrant immediate remedial action.

Generated by OpenCVE AI on October 30, 2026 at 19:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache bRPC to version 1.18.0 or newer, which removes the unchecked subtraction that caused the underflow.
  • If an upgrade cannot be performed immediately, apply the code patch found in pull request 3450 to the mcpack2pb parser.
  • For deployments using the NsheadService + UbrpcMcpack2Adaptor pattern, verify that the ubrpc/nshead_mcpack protocol is not exposed to untrusted clients, or implement network filtering to block malicious frames until the patch or upgrade is applied.

Generated by OpenCVE AI on October 30, 2026 at 19:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 30 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Thu, 22 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache brpc
Vendors & Products Apache
Apache brpc

Wed, 21 Oct 2026 12:00:00 +0000

Type Values Removed Values Added
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
Title Apache bRPC: Integer Underflow in mcpack2pb Parser Leading to Denial of Service
Weaknesses CWE-191
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-30T17:56:42.592Z

Reserved: 2026-08-15T06:31:05.828Z

Link: CVE-2026-74755

cve-icon Vulnrichment

Updated: 2026-10-30T17:56:30.357Z

cve-icon NVD

Status : Deferred

Published: 2026-10-21T12:17:22.550

Modified: 2026-10-30T18:18:12.603

Link: CVE-2026-74755

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T20:00:16Z

Weaknesses
  • CWE-191

    Integer Underflow (Wrap or Wraparound)