Description
Uncontrolled resource allocation in the mcpack2pb component in Apache bRPC (version < 1.18.0) on all platforms allows remote attackers to make the server allocate a large amount of memory via sending a crafted mcpack request with a huge array item count.

Root Cause:
The bRPC mcpack2pb parser trusts the item count stored in the mcpack array header without validating it against the actual payload size. The code generated by the mcpack2pb protoc plugin uses this count to preallocate memory for repeated protobuf fields via Reserve(). A malformed request declaring item_count = 0x7fffffff can force the server to preallocate about 16GB of virtual memory, which may abort the process (SIGABRT) on memory-constrained hosts.

Affected Scenarios:
Use a bRPC server that wires a NsheadService to UbrpcMcpack2Adaptor (the Baidu ubrpc deployment pattern) and parses requests with code generated by the mcpack2pb protoc plugin. The request body is parsed before authentication.

How to Fix:
(Choose one of the following options)
1. Upgrade bRPC to version 1.18.0, which fixes this issue.
2. Apply this patch: https://github.com/apache/brpc/pull/3451

Note:
No matter which option you choose, you should know that the fix caps the array item count to the remaining bytes of the array payload.
Published: 2026-10-21
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Resource Exhaustion/Denial of Service
Action: Patch Immediately
AI Analysis

Impact

Apache bRPC’s mcpack2pb parser does not validate the item count read from an mcpack array header before using it to preallocate memory for repeated protobuf fields via Reserve(). A malicious request that sets item_count to 0x7fffffff can cause the server to request roughly 16 GB of virtual memory, potentially aborting the process (SIGABRT) on hosts with limited resources. This flaw allows remote attackers to trigger a denial‑of‑service by exhausting memory or terminating the service. The weakness is an example of CWE‑770: Uncontrolled Resource Consumption.

Affected Systems

Versions of Apache bRPC earlier than 1.18.0 that incorporate the mcpack2pb protoc plugin are affected. The vulnerability manifests when a bRPC server wires a NsheadService to UbrpcMcpack2Adaptor, uses the generated code to parse incoming mcpack requests, and performs parsing before authentication. The issue is platform‑agnostic, affecting any system where this deployment pattern is in use.

Risk and Exploitability

Because the flaw can be triggered purely by a crafted mcpack message and does not require authentication, attackers can execute it over the network against exposed bRPC services. The CVSS score of 7.5 indicates a high severity, and the EPSS score of 0.242% indicates a very low but non‑zero likelihood of exploitation, while the flaw is not listed in CISA’s KEV catalog. This vulnerability can cause a server crash and memory exhaustion, leading to denial‑of‑service. The typical exploitation chain involves an attacker sending a malformed mcpack request with an enormous array item count, causing the server to allocate excessive memory and terminate; the lack of rate limiting or input validation exacerbates the risk.

Generated by OpenCVE AI on October 26, 2026 at 16:09 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache bRPC to version 1.18.0 or newer.
  • If an upgrade is infeasible, apply the patch from PR 3451 on the master branch.
  • Implement ingress filtering or rate‑limit mcpack requests to prevent large payloads from reaching the server until the fix is in place.

Generated by OpenCVE AI on October 26, 2026 at 16:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 26 Oct 2026 14: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'}

ssvc

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


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 Uncontrolled resource allocation in the mcpack2pb component in Apache bRPC (version < 1.18.0) on all platforms allows remote attackers to make the server allocate a large amount of memory via sending a crafted mcpack request with a huge array item count. Root Cause: The bRPC mcpack2pb parser trusts the item count stored in the mcpack array header without validating it against the actual payload size. The code generated by the mcpack2pb protoc plugin uses this count to preallocate memory for repeated protobuf fields via Reserve(). A malformed request declaring item_count = 0x7fffffff can force the server to preallocate about 16GB of virtual memory, which may abort the process (SIGABRT) on memory-constrained hosts. Affected Scenarios: Use a bRPC server that wires a NsheadService to UbrpcMcpack2Adaptor (the Baidu ubrpc deployment pattern) and parses requests with code generated by the mcpack2pb protoc plugin. The request body is parsed before authentication. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3451 Note: No matter which option you choose, you should know that the fix caps the array item count to the remaining bytes of the array payload.
Title Apache bRPC: Uncontrolled Memory Allocation via Malicious mcpack Array Item Count
Weaknesses CWE-770
References

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-26T13:40:04.776Z

Reserved: 2026-08-15T07:51:09.501Z

Link: CVE-2026-74757

cve-icon Vulnrichment

Updated: 2026-10-26T13:39:54.461Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-26T20:10:00.160

Link: CVE-2026-74757

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-26T16:15:14Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling