CVE-2026-43868: Thrift Apache Thrift Has A Memory Vulnerability

MODERATE
Advisory Identifier: GHSA-2f9f-gq7v-9h6m
CVSS 5.3
CWE-789 CWE-1285
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-43868
GHSA Identifier GHSA-2f9f-gq7v-9h6m
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-789: Memory Allocation with Excessive Size Value
Affected Product Thrift
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

thrift fixed: 0.23.0
Upgrade thrift to 0.23.0
Verify Direct and Transitive Dependencies

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

Memory Allocation with Excessive Size Value vulnerability in Apache Thrift. This issue affects Apache Thrift: before 0.23.0. Users are recommended to upgrade to version [0.23.0](https://github.com/apache/thrift/releases/tag/v0.23.0), which fixes the issue.

CVE-2026-43868 Affected Thrift Versions

1 component(s)
Fixed Versions:
0.23.0
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?
CVE-2026-43868 is a security vulnerability in Thrift involving Apache Thrift has a Memory Allocation with Excessive Size Value Vulnerability under CWE-789: Memory Allocation with Excessive Size Value.
Which Thrift versions are affected?
Affected versions include releases prior to 0.23.0 across affected packages: thrift.
What version fixes CVE-2026-43868?
Upgrading to 0.23.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is thrift affected?
Yes, thrift is affected in releases prior to 0.23.0. Upgrade your dependency to 0.23.0 or later.
What is the CVSS score of CVE-2026-43868?
CVE-2026-43868 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2026-43868?
CVE-2026-43868 is classified under CWE-789: Memory Allocation with Excessive Size Value (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.).
How can I check crates.io dependencies for CVE-2026-43868?
Run the dependency tree command: 'inspect dependencies for thrift'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}