CVE-2026-43871·PHP vulnerability
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.
- Severity
- high
- Software
- PHP
- Fixed in
- 0.24.0
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 1.1% — higher than 62% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 0.24.0
Fixed in: 0.24.0
How to fix this CVE
Apache Thrift's PHP bindings contain a loop exit condition flaw that can cause the PHP process to hang indefinitely, leading to denial of service. Upgrade PHP and any applications using Apache Thrift to version 0.24.0 or later to resolve this issue. Verify that your application dependencies are pinned to safe versions and perform a full stack restart after patching.
sudo dnf update phpDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed PHP version with `php -v` and verify it meets the minimum patched release for your distribution
- Step 2: Identify if Apache Thrift is used by running `grep -r 'thrift' /var/www/ /opt/ --include='*.php' --include='composer.json' --include='package.json'`
- Step 3: Monitor PHP-FPM or Apache error logs for hanging processes: `tail -f /var/log/php-fpm.log /var/log/apache2/error.log | grep -i 'timeout\|hang\|loop'`
- Step 4: Verify the fix by confirming `php -m | grep thrift` shows no errors, and test RPC calls to Thrift services complete within expected timeframes
FAQ
What is CVE-2026-43871?
This vulnerability affects Apache Thrift's PHP bindings and allows a malformed RPC request to trigger an infinite loop condition, causing the PHP worker process to hang and become unresponsive. This results in a denial of service as legitimate requests cannot be processed.
Is CVE-2026-43871 being actively exploited?
No, there are currently no reports of active exploitation or publicly available proof-of-concept exploits for this vulnerability according to CISA KEV data.
What versions of PHP are affected by CVE-2026-43871?
All PHP versions using Apache Thrift bindings prior to version 0.24.0 are affected. The vulnerability exists in the Thrift library itself rather than PHP core.
How do I check if my server is vulnerable to CVE-2026-43871?
Run `composer show apache/thrift` or check your project's vendor directory for the Thrift library version. If it is earlier than 0.24.0, your application is vulnerable.
Does Defensia detect CVE-2026-43871?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP is installed on a monitored server, CVE-2026-43871 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-43871. Free for 1 server.
Get started free