{"id":"CVE-2023-31039","aliases":["CVE-2023-31039"],"related":[],"kind":"vulnerability","state":"published","title":"Apache bRPC: ServerOptions.pid_file may cause arbitrary code execution","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"Vulnerabilidad de seguridad en Apache bRPC anterior a 1.5.0 en todas las plataformas permite a los atacantes ejecutar código arbitrario a través de ServerOptions::pid_file.\nUn atacante que puede influir en el parámetro ServerOptions pid_file con el que se inicia el servidor bRPC puede ejecutar código arbitrario con los permisos del proceso bRPC. Solución:\n1. actualizar a bRPC >= 1.5.0, enlace de descarga: https://dist.apache.org/repos/dist/release/brpc/1.5.0/ https://dist.apache.org/repos/dist/release/brpc/1.5.0/\n2. Si está utilizando una versión antigua de bRPC y es difícil de actualizar, puede aplicar este parche: https://github.com/apache/brpc/pull/2218 https://github.com/apache/brpc/pull/2218","source":"nvd"}],"published":"2023-05-08T08:57:14.714Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"semver","introduced":"0.9.0","fixed":"1.5.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache bRPC","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.9.0","fixed":"1.5.0","status":"affected"}],"vendor":"apache","product":"brpc","cpe":"cpe:2.3:a:apache:brpc:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"0.9.0","fixed":"1.5.0"}],"vendor":"apache","product":"brpc","cpe":"cpe:2.3:a:apache:brpc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/jqpttrqbc38yhckgp67xk399hqxnz7jn","tags":["mailing-list","patch","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2023/05/08/1","tags":["mailing-list","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"apache","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2024-10-15T18:24:41.780Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31039","url":"https://www.cve.org/CVERecord?id=CVE-2023-31039","licence":"CVE Terms of Use","modified":"2025-02-13T16:49:42.005Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31039","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31039","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:58:23.936Z","epss":{"score":0.01522,"percentile":0.75357,"date":"2026-12-01T12:00:22.000Z"}}