# CVE-2023-31039: Apache bRPC: ServerOptions.pid\_file may cause arbitrary code execution

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-05-08 · Modified: 2025-02-13
- Record: https://cvemate.com/vulnerability/CVE-2023-31039 · JSON: https://cvemate.com/vulnerability/CVE-2023-31039/json

## Description

```text
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
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.522%, percentile 75.488%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache brpc: ≥ 0.9.0, \< 1.5.0
- apache brpc: ≥ 0.9.0, \< 1.5.0

## References

- <https://lists.apache.org/thread/jqpttrqbc38yhckgp67xk399hqxnz7jn>
- <http://www.openwall.com/lists/oss-security/2023/05/08/1>

---

Data as of 2026-12-05T04:02:12.279Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
