CVE-2025-54472 Details
Description
Unlimited memory allocation in redis protocol parser in Apache bRPC (all versions < 1.14.1) on all platforms allows attackers to crash the service via network. Root Cause: In the bRPC Redis protocol parser code, memory for arrays or strings of corresponding sizes is allocated based on the integers read from the network. If the integer read from the network is too large, it may cause a bad alloc error and lead to the program crashing. Attackers can exploit this feature by sending special data packets to the bRPC service to carry out a denial-of-service attack on it. The bRPC 1.14.0 version tried to fix this issue by limited the memory allocation size, however, the limitation checking code is not well implemented that may cause integer overflow and evade such limitation. So the 1.14.0 version is also vulnerable, although the integer range that affect version 1.14.0 is different from that affect version < 1.14.0. Affected scenarios: Using bRPC as a Redis server to provide network services to untrusted clients, or using bRPC as a Redis client to call untrusted Redis services. How to Fix: we provide two methods, you can choose one of them: 1. Upgrade bRPC to version 1.14.1. 2. Apply this patch ( https://github.com/apache/brpc/pull/3050 ) manually. No matter you choose which method, you should note that the patch limits the maximum length of memory allocated for each time in the bRPC Redis parser. The default limit is 64M. If some of you redis request or response have a size larger than 64M, you might encounter error after upgrade. For such case, you can modify the gflag redis_max_allocation_size to set a larger limit.
A denial-of-service vulnerability has been identified in the Redis protocol parser of Apache bRPC, affecting all versions prior to 1.14.1. This vulnerability allows attackers to cause the service to crash by sending specially crafted data packets over the network. The issue arises because the parser allocates memory for arrays or strings based on integers received from the network. If these integers are excessively large, they can lead to a bad allocation error, causing the program to crash. Version 1.14.0 attempted to address this problem by imposing limits on memory allocation, but the implementation was flawed, allowing integer overflow and exploitation of the same vulnerability. This issue is present when bRPC is used as a Redis server for untrusted clients or as a Redis client for untrusted services.
Users can upgrade to Apache bRPC version 1.14.1 or apply the patch available on GitHub. After upgrading, it is important to note that the patch restricts the maximum memory allocation in the Redis parser to 64MB. If Redis requests or responses exceed this size, an error may occur. In such cases, the 'redis_max_allocation_size' gflag can be modified to allow a larger limit.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/08/12/2 | CVE | |
| https://lists.apache.org/thread/r3xsy3wvs4kmfhc281173k5b6ll1xt2m | [email protected] | Mailing ListPatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache brpc | < 1.14.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Aug 18, 2025 | Initial Analysis | [email protected] |
| Aug 14, 2025 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | New CVE Received | [email protected] |