{"schemaVersion":4,"id":"CVE-2026-56387","aliases":[],"status":"published","duplicateOf":null,"title":"Apache bRPC: Remote Memory Exhaustion in RTMP AMF Parser","description":"The RTMP AMF parser in Apache bRPC accepts AMF string lengths and array counts directly from untrusted input. A remote unauthenticated attacker who can reach a bRPC server with RTMP enabled can send a small AMF payload with an excessive declared long string length or array count, causing excessive memory allocation or resource consumption before the parser rejects the incomplete payload.\n\nRoot Cause:\nThe AMF long string parser resized the destination string to the declared 32-bit length before validating that the stream contained that many bytes. ECMA array and strict array parsers also accepted 32-bit element counts without a configurable upper bound.\n\nAffected Scenarios:\nDeployments that enable the bRPC RTMP server component and accept RTMP traffic from untrusted clients. Direct uses of the AMF parser on untrusted data are also affected.\n\nHow to Fix:\n1. Upgrade bRPC to version 1.18.0, which fixes this issue.\n2. Apply this patch:  https://github.com/apache/brpc/pull/3353\n\nNote:\nThe fix introduces configurable AMF parsing limits. The default maximum string size is 64 MiB and the default maximum array element count is 1,048,576. Payloads above these limits are rejected. The limits can be adjusted with amf_max_string_size and amf_max_array_size.","dates":{"published":"2026-10-21T11:39:11.225Z","modified":"2026-10-30T13:56:20.160Z","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.00595,"percentile":0.49906,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00595},"history":[{"date":"2026-10-22T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00274,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00595,"percentile":0.49906}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00573,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00595,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00595,"percentile":0.49906}]},"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-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"},{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value","description":"The product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/789.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-21T11:39:11.225Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-30T13:56:20.160Z","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.00595,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-30T13:56:20.160Z","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-30T13:56:20.160Z","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-30T13:56:07.886Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00595,"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:48:32.300Z","stale":false,"partial":false}}