Intel

AIKIDO-2026-788986

thrift is vulnerable to Memory Corruption

CVE-2026-93925Published Oct 9, 2026
October 9, 2026

87

CVE Score

High

Memory Corruption

Are you affected? Scan for Free

TL;DR

writeVarint32() encodes a header field into a fixed 5-byte stack buffer by shifting a signed 32-bit value. A negative value keeps its sign bit through every shift, so the loop never stops and writes past the buffer. The fix encodes an unsigned copy of the value so the loop stays inside the 5-byte buffer.

How do I fix this?

Upgrade the thrift library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you serialize THeader frames whose protocol id can be a negative value.

Package

thrift

Versions

0.10.0 - 0.24.0

Fixed in 0.25.0

Background info

thrift is vulnerable to Memory Corruption in versions 0.10.0 - 0.24.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea