CVE-2026-74757: 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
This Apache advisory covers CVE-2026-74757. Related products: Apache bRPC.
- CVE-2026-74757
Key facts
- Vendor rating
- High, CVSS 7.5
- CISA KEV
- Not listed (catalogue checked )
- Versions named
- Apache bRPC before 1.18.0
- Fixed in
- 1.18.0
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Related products & platforms
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:
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.
Text from the source record.
- Apache bRPC before 1.18.0
Official advisory · high-confidence parse· fetched ·verify at source
How to fix CVE-2026-74757
Upgrade to a fixed release named by Apache:
- 1.18.0
Vendor guidance
- Upgrade bRPC to version 1.18.0, which fixes this issue.
- 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.
More Apache Software Foundation advisories
CVE-2026-90484Oct 21, 2026The MySQL client response parser in Apache bRPC dereferences a null pointerCVE-2026-87849Oct 21, 2026The Discovery naming-service reply parser in Apache bRPC (versions < 1.18.0) callsCVE-2026-86249Oct 21, 2026Apache bRPC: Authentication bypassCVE-2026-86147Oct 21, 2026Apache bRPC: Arbitrary file creation/truncationCVE-2026-86146Oct 21, 2026Apache bRPC: HTTP Request Smuggling and Header InjectionCVE-2026-84748Oct 21, 2026Apache bRPC: Builtin services reachable from the public port
Apache Software Foundation advisories, October 2026All Apache Software Foundation advisories
Get an email when Apache publishes the next one.
See Apache's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).
iPhone and Android apps · New on the App Store
Monitor future Apache Software Foundation CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.