{"id":"CVE-2026-83745","state":"PUBLISHED","title":"Apache Thrift, Apache Thrift: WebSocket frame decoders allocate the payload buffer from the declared length, not the bytes received (Node.js, D)","description":"Memory allocation with excessive size value, Improper handling of length parameter inconsistency vulnerability in Apache Thrift \nnodejs and D lang bindings.\n\nBoth bindings' WebSocket server transports read the payload length out of the frame header and allocate that many bytes immediately, without checking that the bytes have arrived. A single ~14-byte frame therefore commits as much memory as it cares to declare -- measured at 513 MiB against the Node.js server and 2 GiB against the D transport -- and in the Node.js case the connection is left open afterwards, so the frame can simply be sent again.\n\n\n\n\nThis issue affects Apache Thrift before 0.25.0.\n\n\n\nUsers are recommended to upgrade to version 0.25.0, which fixes the issue.","publishedAt":"2026-10-02T12:16:15.128Z","updatedAt":"2026-10-02T17:16:55.903Z","severity":{"score":8.7,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"apache"},"assigner":"apache","products":["Apache Software Foundation Apache Thrift"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Thrift","packageName":"thrift","packageURL":"pkg:npm/thrift","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.25.0","versionType":"semver"}],"collectionURL":"https://registry.npmjs.org"},{"vendor":"Apache Software Foundation","product":"Apache Thrift","packageName":"D language bindings","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.25.0","versionType":"semver"}]}],"references":["https://lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbomnhg1","https://lists.apache.org/thread/64y7f0b89mnq4xoqcn4h26to8kskolgc"],"weaknesses":["CWE-789","CWE-130"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/83xxx/CVE-2026-83745.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-83745","state":"PUBLISHED","datePublished":"2026-10-02T12:16:15.128Z","dateUpdated":"2026-10-02T17:16:55.903Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2026-08-31T22:53:07.156Z"},"containers":{"cna":{"title":"Apache Thrift, Apache Thrift: WebSocket frame decoders allocate the payload buffer from the declared length, not the bytes received (Node.js, D)","descriptions":[{"lang":"en","value":"Memory allocation with excessive size value, Improper handling of length parameter inconsistency vulnerability in Apache Thrift \nnodejs and D lang bindings.\n\nBoth bindings' WebSocket server transports read the payload length out of the frame header and allocate that many bytes immediately, without checking that the bytes have arrived. A single ~14-byte frame therefore commits as much memory as it cares to declare -- measured at 513 MiB against the Node.js server and 2 GiB against the D transport -- and in the Node.js case the connection is left open afterwards, so the frame can simply be sent again.\n\n\n\n\nThis issue affects Apache Thrift before 0.25.0.\n\n\n\nUsers are recommended to upgrade to version 0.25.0, which fixes the issue."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache Thrift","packageName":"thrift","packageURL":"pkg:npm/thrift","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.25.0","versionType":"semver"}],"collectionURL":"https://registry.npmjs.org"},{"vendor":"Apache Software Foundation","product":"Apache Thrift","packageName":"D language bindings","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.25.0","versionType":"semver"}]}],"references":[{"url":"https://lists.apache.org/thread/33otcgbqd27wf6qq810q56znzbomnhg1","tags":["vendor-advisory"]},{"url":"https://lists.apache.org/thread/64y7f0b89mnq4xoqcn4h26to8kskolgc","tags":["vendor-advisory"]}],"metrics":[{"other":{"type":"Textual description of severity","content":{"text":"important"}},"scenarios":[{"lang":"en","value":"GENERAL"}]},{"scenarios":[{"lang":"en","value":"GENERAL"}],"format":"CVSS","cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.7,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-789","description":"CWE-789 Memory allocation with excessive size value","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-130","description":"CWE-130 Improper handling of length parameter inconsistency","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateUpdated":"2026-10-02T12:16:15.128Z"},"source":{"discovery":"EXTERNAL"},"credits":[{"lang":"en","value":"Ho1aAs <xxy010605@gmail.com> for Node.js","type":"finder"},{"lang":"en","value":"Apache Thrift Developers for D language","type":"finder"}],"x_generator":{"engine":"Vulnogram 1.0.3"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-02T17:16:38.442092Z","id":"CVE-2026-83745","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-02T17:16:55.903Z"}}]}}}