CVE-2023-31039CWE-20

Apache bRPC: ServerOptions.pid_file may cause arbitrary code execution

Critical · published May 8, 2023

CVSS v3.1
9.8
EPSS
2%
Percentile
74.4
In the wild
Unconfirmed
What it is

🔥 An attacker can slip in arbitrary code by manipulating one line of the server's startup options in Apache bRPC versions below 1.5.0! This is like letting someone write on your restaurant's order pad — if they change the instructions, they could make you serve anything, even something dangerous! An attacker with knowledge of the ServerOptions::pid_file parameter could execute code with the same permissions as the bRPC process, compromising your entire server! This kind of vulnerability is absolutely devastating, allowing for unauthorized access and potentially complete control of your system.

Put simply

This is like letting someone write on your restaurant's order pad — if they change the instructions, they could make you serve anything, even something dangerous! This security flaw in Apache bRPC allows for arbitrary code execution through manipulation of the pid_file parameter when starting the server, putting your system at high risk.

What to do

An attacker with knowledge of the ServerOptions::pid_file parameter could execute code with the same permissions as the bRPC process, compromising your entire server! This kind of vulnerability is absolutely devastating, allowing for unauthorized access and potentially complete control of your system. Upgrade bRPC to version 1.5.0 or higher immediately to eliminate this vulnerability. If upgrading is challenging, apply the provided patch from GitHub: https://github.com/apache/brpc/pull/2218 to mitigate the issue. You've got this! Act now to secure your server and maintain your superhero status! 🦸

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01522 · 74.4th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2023-05-08T08:57Z
EPSS history
Timeline
  • 08 MAY 08:57Z
    Apache bRPC: ServerOptions.pid_file may cause arbitrary code execution
    cvelistv5