# CVE-2026-43868: Apache Thrift denial of service via excessive memory allocation

Source: https://junglewise.ai/threats/cve-2026-43868-apache-thrift-denial-of-service-via-excessive-memory-allocation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-05-05. Updated: 2026-07-21  
License: CC BY 4.0 with a link back

CVE-2026-43868 · Severity: medium · CVSS 5.3 · Published 2026-05-05

Apache Thrift, a framework for cross-language services development, is vulnerable to a memory allocation issue. An attacker can send a specially crafted request that forces the system to allocate an excessive amount of memory, potentially leading to a denial-of-service condition where the application becomes unresponsive. This impacts the availability of services relying on the Thrift library for communication.

Technologies: [Apache Thrift](https://junglewise.ai/threats/technologies/thrift), [Red Hat build of Apache Camel for Quarkus](https://junglewise.ai/threats/technologies/build-of-apache-camel-for-quarkus). Vendors: [Apache](https://junglewise.ai/threats/vendors/apache), [crates.io](https://junglewise.ai/threats/vendors/crates-io), [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## Quick answers

**Is CVE-2026-43868 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-43868 being exploited in the wild.

**How severe is CVE-2026-43868?** Medium severity, with a CVSS score of 5.3, published 5 May 2026.

**Which products and versions are affected?** thrift (crates.io) SEMVER:introduced=0,fixed=0.23.0, SEMVER:introduced=0.0.0-0,fixed=0.23.0; Red Hat build of Apache Camel for Quarkus 3, 3.33.

**Is there a fix for CVE-2026-43868?** Yes. thrift (crates.io): upgrade to 0.23.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-43868 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-43868?** Check whether you run Apache Thrift, thrift (crates.io) or Red Hat build of Apache Camel for Quarkus at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- thrift (crates.io): upgrade to 0.23.0 or later

  ```sh
  cargo update -p thrift
  ```


## Technical details

Apache Thrift before version 0.23.0 contains a Memory Allocation with Excessive Size Value vulnerability (CWE-789) and improper validation of input offsets (CWE-1285). The vulnerability occurs when the library allocates memory based on an untrusted size value provided in a network request without ensuring the size is within reasonable limits. A remote, unauthenticated attacker can exploit this by sending a malicious payload with a large size value, causing the application to exhaust available memory and crash or hang (Denial of Service). The issue is addressed in version 0.23.0.

## Affected products

- Apache Thrift < 0.23.0

## Identifiers

- CVE-2026-43868
- BIT-THRIFT-2026-43868
- GHSA-2f9f-gq7v-9h6m
- RUSTSEC-2026-0435

## Timeline

- 2026-05-05: disclosed
- 2026-05-05: advisory
- 2026-05-08: other: GitHub reviewed the advisory

## References

- [https://api.github.com/users/bayandin](https://api.github.com/users/bayandin)
- [https://github.com/bayandin](https://github.com/bayandin)
- [https://api.github.com/users/bayandin/gists%7B/gist_id%7D](https://api.github.com/users/bayandin/gists%7B/gist_id%7D)
- [https://api.github.com/users/bayandin/repos](https://api.github.com/users/bayandin/repos)
- [https://avatars.githubusercontent.com/u/864213?v=4](https://avatars.githubusercontent.com/u/864213?v=4)
- [https://api.github.com/users/bayandin/events%7B/privacy%7D](https://api.github.com/users/bayandin/events%7B/privacy%7D)

## Related threats

- [Apache Thrift uncontrolled recursion in Java bindings](https://junglewise.ai/threats/cve-2026-120135-uncontrolled-recursion-vulnerability-in-apache-thrift-java)
- [Apache Thrift uncontrolled recursion in PHP bindings](https://junglewise.ai/threats/cve-2026-96289-uncontrolled-recursion-vulnerability-in-apache-thrift-php)
- [Apache Thrift Perl bindings inefficient algorithmic complexity](https://junglewise.ai/threats/cve-2026-96287-inefficient-algorithmic-complexity-vulnerability-in-apache-thrift)
- [Apache Thrift uncaught exception in Perl bindings](https://junglewise.ai/threats/cve-2026-96286-uncaught-exception-vulnerability-in-apache-thrift-perl-bindings)
- [Apache Thrift Ruby bindings exception handling vulnerability](https://junglewise.ai/threats/cve-2026-96277-uncaught-exception-improper-handling-of-exceptional-conditions)
