Critical severity · published May 8, 2023
CVE-2023-31039
Security vulnerability in Apache bRPC <1.5.0 on all platforms allows attackers to execute arbitrary code via ServerOptions::pid_file
9.8
CVSS
1.5%
EPSS
No
On KEV
Description
Security vulnerability in Apache bRPC <1.5.0 on all platforms allows attackers to execute arbitrary code via ServerOptions::pid_file.
An attacker that can influence the ServerOptions pid_file parameter with which the bRPC server is started can execute arbitrary code with the permissions of the bRPC process.
Solution:
1. upgrade to bRPC >= 1.5.0, download link: https://dist.apache.org/repos/dist/release/brpc/1.5.0/ https://dist.apache.org/repos/dist/release/brpc/1.5.0/
2. If you are using an old version of bRPC and hard to upgrade, you can apply this patch: https://github.com/apache/brpc/pull/2218 https://github.com/apache/brpc/pull/2218
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.5% · higher than 74% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BR
Brpc · Apache
0.9.0 before 1.5.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-31039
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-31039
Mailing List
http://www.openwall.com/lists/oss-security/2023/05/08/1
Mailing List
https://lists.apache.org/thread/jqpttrqbc38yhckgp67xk399hqxnz7jn
More from Brpc
9.8
CVE-2025-60021
Apache bRPC: Remote command injection vulnerability in heap builtin service
7.5
CVE-2025-59789
Apache bRPC: Stack Exhaustion via Unbounded Recursion in JSON Parser
7.5
CVE-2025-54472
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
7.5
CVE-2024-23452
Request smuggling vulnerability in HTTP server in Apache bRPC 0.9.5~1.7.0 on all platforms allows attacker to smuggle request
6.1
CVE-2023-45757
Security vulnerability in Apache bRPC <=1.6.0 on all platforms allows attackers to inject XSS code to the builtin rpcz page
