Skip to content
NewA calmer, faster ZeroHour

CVE-2026-128090

OpenSSL Phar signature bypass in PHP 8.2–8.5

CVSS 4.0
7.7 high
EPSS
—
Published
·
Modified
Analyze CVE-2026-128090 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

PHP’s Phar extension chooses how to verify an archive from the signature type stored inside it, and only OpenSSL types check the separate trusted .pubkey file. Someone who can change an OpenSSL-signed Phar but not its public key can switch the type to a keyless hash such as SHA-256 and recompute the digest, so the altered archive still verifies even with phar.require_hash enabled. An application that then loads it may run attacker-controlled PHP. Native, tar, and zip Phars on the listed PHP releases are affected.

What to do: Upgrade PHP to 8.2.36, 8.3.37, 8.4.28, or 8.5.13, matching the branch in use.

ProductAffectedFixed in
PHP8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, and 8.5.* before 8.5.138.2.36, 8.3.37, 8.4.28, and 8.5.13
Estimated exposure
nicheapps that load OpenSSL-signed Phars — Needs a modifiable OpenSSL-signed Phar whose .pubkey stays intact and an app that loads it.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

PHAR OpenSSL signature bypass via algorithm downgrade. The Phar extension selects the signature verification method from the signature type stored in the archive, and only the OpenSSL types consult the separate .pubkey file holding the trusted public key. An attacker who can modify an OpenSSL-signed Phar archive, but not its public key file, can switch the signature type to a keyless hash such as SHA-256 with a recomputed digest, so the altered archive passes verification even with phar.require_hash enabled. An application that loads the archive may then execute attacker-controlled PHP code. Native, tar-based and zip-based phars are affected. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

Weakness
CWE-347, CWE-757
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

3 stories