Description
Stack-based buffer overflow, Incorrect bitwise shift of integer vulnerability in Apache Thrift C++ THeaderProtocol.



This issue affects Apache Thrift: before 0.25.0.



Users are recommended to upgrade to version 0.25.0, which fixes the issue.
Published: 2026-10-02
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Apache Thrift’s C++ implementation of THeaderProtocol contains a stack‑based buffer overflow in the writeVarint32() function. The bug is triggered when a negative protocol identifier is processed, causing an incorrect bitwise shift of an integer that overflows a 32‑bit buffer. The overflow corrupts stack memory and can enable an attacker to inject and execute arbitrary code. The flaw is classified under CWE‑121 (Stack Smashing), CWE‑1335 (Incorrect Bitwise Shift), CWE‑787 (Out‑of‑Bounds Write), and CWE‑835 (Infinite Loop).

Affected Systems

All releases of Apache Thrift prior to version 0.25.0 are affected. The library is widely used in client and server applications that expose Thrift interfaces over a network.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity vulnerability. EPSS is not available, and the issue has not been listed in the CISA KEV catalog. Based on the description, it is inferred that the flaw can be exploited through a network‑bound Thrift client: a malicious actor who can send a malformed request with a negative protocol id can trigger the overflow and potentially achieve arbitrary code execution on the host running the Thrift service. No authentication or privilege requirement is mentioned, so the vector is likely remote, the path is network, and the scope is the service process.

Generated by OpenCVE AI on October 2, 2026 at 14:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Thrift to version 0.25.0 or later, which includes a fix for the buffer overflow.
  • If the service cannot be upgraded immediately, restrict network access to the Thrift endpoint by firewalls or ACLs so that only trusted internal clients can reach it.
  • Consider implementing application‑level input validation to reject negative protocol identifiers before they reach the transport layer as an additional safeguard.

Generated by OpenCVE AI on October 2, 2026 at 14:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 02 Oct 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache thrift
Vendors & Products Apache
Apache thrift

Fri, 02 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


Fri, 02 Oct 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 02 Oct 2026 10:30:00 +0000

Type Values Removed Values Added
Description Stack-based buffer overflow, Incorrect bitwise shift of integer vulnerability in Apache Thrift C++ THeaderProtocol. This issue affects Apache Thrift: before 0.25.0. Users are recommended to upgrade to version 0.25.0, which fixes the issue.
Title Apache Thrift: C++ `THeaderTransport::writeVarint32()` stack buffer overflow on a negative protocol id
Weaknesses CWE-121
CWE-1335
CWE-835
References
Metrics cvssV4_0

{'score': 8.7, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-10-02T10:53:48.170Z

Reserved: 2026-09-18T22:39:51.460Z

Link: CVE-2026-93925

cve-icon Vulnrichment

Updated: 2026-10-02T10:53:14.951Z

cve-icon NVD

Status : Deferred

Published: 2026-10-02T11:17:37.817

Modified: 2026-10-02T14:30:28.440

Link: CVE-2026-93925

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-02T10:16:17Z

Links: CVE-2026-93925 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T14:44:41Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

  • CWE-1335

    Incorrect Bitwise Shift of Integer

  • CWE-787

    Out-of-bounds Write

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')