CVE-2026-43868: Thrift Apache Thrift Has A Memory Vulnerability
MODERATECVE-2026-43868 is a MODERATE (CVSS 5.3) apache thrift has a memory vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Thrift libraries in the crates.io ecosystem. The issue involves apache thrift has a memory allocation with excessive size value vulnerability. Remediation is available by upgrading affected packages to version 0.23.0.
CVE-2026-43868 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-43868
To remediate this vulnerability, upgrade all affected Thrift dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade thrift to 0.23.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for thrift
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-43868, inspect your project dependencies for Thrift:
inspect dependencies for thrift
Analyze the terminal output to locate any version of Thrift in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.23.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where 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. In Thrift, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-43868 Affected Thrift Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
thrift
|
crates.io |
< 0.23.0
|
0.23.0
|
References
Frequently Asked Questions
What is CVE-2026-43868?
Which Thrift versions are affected?
What version fixes CVE-2026-43868?
Is thrift affected?
What is the CVSS score of CVE-2026-43868?
What CWE is associated with CVE-2026-43868?
How can I check crates.io dependencies for CVE-2026-43868?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2f9f-gq7v-9h6m",
"modified" : "2026-07-21T20:01:39Z",
"published" : "2026-05-05T09:31:55Z",
"aliases" : [ "CVE-2026-43868" ],
"summary" : "Apache Thrift has a Memory Allocation with Excessive Size Value Vulnerability",
"details" : "Memory Allocation with Excessive Size Value vulnerability in Apache Thrift.\n\nThis issue affects Apache Thrift: before 0.23.0.\n\nUsers are recommended to upgrade to version [0.23.0](https://github.com/apache/thrift/releases/tag/v0.23.0), which fixes the issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "thrift"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.23.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-43868"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/thrift/commit/d5152211af61f850ec393604316804096dd4632e"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:26586"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2026:42644"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-43868"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2466670"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/thrift"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/zj76dtwnbbs1m7z3focf4wd51pqpsmn9"
}, {
"type" : "WEB",
"url" : "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43868.json"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1285", "CWE-789" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-08T19:21:11Z",
"nvd_published_at" : "2026-05-05T09:16:04Z"
}
}