{"schemaVersion":4,"id":"CVE-2026-86147","aliases":[],"status":"published","duplicateOf":null,"title":"Apache bRPC: Arbitrary file creation/truncation via /flags and unbounded profiling duration via /pprof","description":"External control of file name or path and uncontrolled resource consumption in Apache bRPC (version < 1.18.0) on all platforms allows remote attackers who can reach the builtin service port to create directories and truncate/overwrite files with the privileges of the server process, or to hold the process-wide CPU/contention profiler for an arbitrarily long time.\n\nRoot Cause:\n1. The builtin /flags service allows gflags carrying a validator to be modified at runtime via ?setvalue=. The bvar/mbvar dump path gflags (bvar_dump_file, bvar_dump_tabs, mbvar_dump_file) were registered with an accept-anything validator whose only purpose was to wake the dumping thread. A remote attacker could therefore repoint the dump path (e.g. GET /flags/bvar_dump_file?setvalue=/victim/dir/target followed by GET /flags/bvar_dump?setvalue=true, or the equivalent for mbvar_dump_file, which is used verbatim without a forced suffix), making the dumping thread recursively create directories and open/truncate files at attacker-chosen locations. Tab names in bvar_dump_tabs were appended to the path without sanitization, allowing '..' to escape the configured directory.\n2. The /pprof builtin service did not clamp the ?seconds= parameter to FLAGS_max_profiling_seconds (a limit that /hotspots enforced). A single request such as ?seconds=2147483647 made the handler sleep for decades while holding the process-wide gperftools CPU profiler or bthread contention profiler, so /hotspots/cpu and /hotspots/contention returned 503 for everyone else during that time.\n\nAffected Scenarios:\nAny Apache bRPC server exposing the builtin services (enabled by default on the same port as normal RPC traffic) to untrusted networks.\n\nHow to Fix:\n(Choose one of the following options)\n1. Upgrade bRPC to version 1.18.0, which fixes this issue.\n2. Apply this patch:  https://github.com/apache/brpc/pull/3523\n\nNote:\nAfter the fix, bvar_dump_file, bvar_dump_tabs and mbvar_dump_file can no longer be modified at runtime through the /flags builtin service. They can still be changed programmatically via google::SetCommandLineOption(), taking effect on the next dump cycle. The profiling duration of /pprof is now capped by the -max_profiling_seconds gflag (default 300 seconds), which can be adjusted by the server owner.","dates":{"published":"2026-10-21T12:16:22.369Z","modified":"2026-10-30T14:45:54.782Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0055,"percentile":0.47505,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.0055},"history":[{"date":"2026-10-22T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00203,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0055,"percentile":0.47505}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00549,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0055,"percentile":0.47505}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-73","name":"External Control of File Name or Path","description":"The product allows user input to control or influence paths or file names that are used in filesystem operations.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/73.html"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"apache software foundation","product":"apache brpc","name":"Apache bRPC","label":"apache brpc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.18.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.18.0","endInclusive":false}}],"versionsText":"< 1.18.0","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_brpc"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","label":"lists.apache.org/thread/2pf15ojj0vr7rtx95677kgtl1mx3gdgb","hostname":"lists.apache.org","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-21T12:16:22.369Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-30T14:45:54.782Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 1.18.0 (CNA); fix release not confirmed","rank":[0,0,0,0,1,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0055,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-30T14:45:54.782Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-10-30T14:45:54.782Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-10-30T14:45:11.531Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0055,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T03:02:07.274Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T03:02:07.824Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T03:02:08.009Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T03:00:58.365Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T03:02:05.166Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T03:02:04.195Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T03:34:29.996Z","stale":false,"partial":false}}