Description
Improper Validation of Specified Quantity in Input, Out-of-bounds Read vulnerability in Apache Thrift C++ bindings.

This issue affects Apache Thrift: before 0.24.0.

Users are recommended to upgrade to version 0.24.0, which fixes the issue.
Published: 2026-07-27
Score: 8.7 High
EPSS: 1.1% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in Thrift's C++ THeaderTransport::readString() function, which fails to enforce bounds on the length of an information header. An attacker can provide a size field that exceeds the actual buffer capacity, allowing an out‑of‑bounds read. The data read beyond the intended limits may contain sensitive information such as memory contents of the process, leading to inadvertent disclosure.

Affected Systems

This vulnerability affects Apache Thrift implementations prior to version 0.24.0 across all supported operating systems. Systems running the standard C++ Thrift client or server that use the THeaderTransport transport should verify their Thrift library version.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity. The EPSS score of 1% indicates a low but non-zero exploitation probability, and the fact that the issue is not listed in CISA's KEV catalog suggests it currently has no widely known exploits. The attack vector would likely be remote, exploiting a Thrift-enabled service over the network, though the CVE description does not provide a complete exploit chain. Attackers would need to supply a crafted request that causes the out‑of‑bounds read to succeed. The absence of external exploitation notes reduces the immediate threat, but the high CVSS and potential for confidential data leakage recommend swift remediation.

Generated by OpenCVE AI on August 3, 2026 at 17:48 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Apache Thrift to version 0.24.0 or later, which introduces proper bounds checking for header lengths.
  • If an immediate upgrade is not feasible, isolate the Thrift service behind a firewall or ACL to limit exposure only to trusted hosts.
  • Add defensive checks that validate the length field before processing the string, ensuring it does not exceed the allocated buffer size.

Generated by OpenCVE AI on August 3, 2026 at 17:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 27 Jul 2026 12:45:00 +0000

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

Mon, 27 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Description Improper Validation of Specified Quantity in Input, Out-of-bounds Read vulnerability in Apache Thrift C++ bindings. This issue affects Apache Thrift: before 0.24.0. Users are recommended to upgrade to version 0.24.0, which fixes the issue.
Title Apache Thrift: C++ THeaderTransport::readString() info-header length bounds bypass
Weaknesses CWE-125
CWE-1284
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-07-27T13:07:59.960Z

Reserved: 2026-07-01T22:13:52.362Z

Link: CVE-2026-58662

cve-icon Vulnrichment

Updated: 2026-07-27T13:07:42.876Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-27T12:16:46.807

Modified: 2026-07-27T19:51:48.447

Link: CVE-2026-58662

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T18:00:11Z

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-1284

    Improper Validation of Specified Quantity in Input