{"id":"CVE-2023-31039","published":"2023-05-08T08:57:14Z","modified":"2025-02-13T16:49:42Z","title":"Apache bRPC: ServerOptions.pid_file may cause arbitrary code execution","vendor":"Apache","product":"Apache bRPC","tier":"tail","description":{"text":"Security vulnerability in Apache bRPC <1.5.0 on all platforms allows attackers to execute arbitrary code via ServerOptions::pid_file.\nAn 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.\n\nSolution:\n1. 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/ \n2. 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","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01522,"percentile":0.7524,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://lists.apache.org/thread/jqpttrqbc38yhckgp67xk399hqxnz7jn","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/08/1","tags":[]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":15.05},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache bRPC","versions":[">= 0.9.0, < 1.5.0"]}],"workarounds":{"items":["Apply this patch:  https://github.com/apache/brpc/pull/2218 https://github.com/apache/brpc/pull/2218"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-15T18:24:41.780912Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-35376","exploited":false,"provenance":"source"}}