CVE-2026-43871 Apache Thrift, Apache Thrift, Apache Thrift, Apache Thrift: TCompactProtocol varint byte-count limit

High 8.7 Published Updated

An infinite loop in Apache Thrift bindings allows attackers to cause a denial of service via crafted varint byte counts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-43871?

CVE-2026-43871 is a high-severity denial of service vulnerability in Apache Thrift, published on 27 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Apache Thrift Python, Go, PHP and Java bindings.This issue affects Apache Thrift: before 0.24.0.

Users are recommended to upgrade to version 0.24.0, which fixes the issue.

Weakness: CWE-835

Which versions are affected by CVE-2026-43871?

10 open source packages ship an affected version, including github.com/apache/thrift, thrift and org.apache.thrift:libthrift. It affects 1 product.

PackageAffectedFixed in
github.com/apache/thrift GoAll versions0.24.0
github.com/apache/thrift GoAll versions0.24.0
thrift BitnamiAll versions0.24.0
org.apache.thrift:libthrift MavenAll versions0.24.0
org.apache.thrift:libthrift MavenAll versions0.24.0
apache/thrift PackagistAll versions0.24.0
4 more packages
apache/thrift PackagistAll versions0.24.0
thrift PyPIAll versions0.24.0
thrift PyPIAll versions0.24.0
thrift PyPIAll versions0.24.0

Products include Apache Thrift.

How do I fix CVE-2026-43871?

Upgrade github.com/apache/thrift to 0.24.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-43871 being exploited?

There is no known exploitation of CVE-2026-43871 in the wild and no public exploit code.

Sources

Also known as AZL-93995, AZL-94163, AZL-94220, AZL-94235, AZL-94320, AZL-94329 and 105 more.

Is CVE-2026-43871 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free