Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to OpenSSL-signed Phar
-
DeliverySwitch signature type to keyless SHA-256
-
ExploitRecompute digest over malicious archive contents
-
ExecutionApplication loads and verifies the archive
-
ImpactExecute attacker-controlled PHP as the process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
|
| Exploitation Conditions | Exploitation requires a specific deployment: the application must rely on an OpenSSL-signed Phar whose trusted public key was installed through a trusted channel as a separate <archive>.pubkey file; the attacker must be able to modify or replace the archive (rewriting the four signature-type bytes before the GBMB magic for native phars, or the first four bytes of .phar/signature.bin for tar/zip phars) but must NOT be able to alter or remove the .pubkey; and the application must subsequently load the archive. phar.require_hash=1 does NOT prevent the attack because it only provides corruption detection for keyless hashes. Limiting factors: deployments that do not use OpenSSL-signed phars are unaffected; if the attacker can also replace the .pubkey the fix does not help (the system is already fully compromised); and the victim must actually load the tampered archive (passive user interaction, UI:P). |
| Impact | This is a genuine integrity/authentication-bypass flaw (CWE-347 improper signature verification, CWE-757 algorithm downgrade) in PHP's Phar extension, scored CVSS 4.0 7.7 (High) with vector AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H. The vuln.today decision label is 'this_week' rather than act_now/emergency, which aligns with the absence of a CISA KEV listing and no POC/exploit reference in the provided sources - exploitation status is 'no public exploit identified at time of analysis.' No EPSS score was supplied, so widespread-exploitation probability cannot be quantified from this data. The 4.0 vector carries two attenuating signals that matter more than the headline score: AT:P (a specific attack requirement) and UI:P (passive user interaction), reflecting that the attacker must already be able to modify the signed archive and the victim application must load it. The real-world priority is therefore moderate and conditional: it is a high-impact bypass (arbitrary PHP code execution) but only reachable in the narrow set of deployments that actually use OpenSSL-signed Phars with an external .pubkey trust anchor AND where an attacker can rewrite the archive but not that key. Note the apparent tension - PR:N suggests no privileges, yet the description makes clear the attacker needs a write position over the archive; this precondition is carried by AT:P in 4.0 (and would be AC:H in 3.1) rather than by PR, so 'unauthenticated' should be read as 'no account on the target,' not 'no access required.' |
| Exploit ScenarioDerived | An application ships an OpenSSL-signed Phar whose trusted public key is installed separately as <archive>.pubkey, and an attacker who controls the archive update or download path (but cannot touch the .pubkey) swaps the archive's signature-type bytes to a keyless SHA-256, replaces the contents with malicious PHP, and recomputes the matching digest. The tampered archive passes verification even with phar.require_hash=1 because the keyless hash path never consults the trusted public key, and when the application loads it the attacker's PHP runs with the process's privileges. No public exploit identified at time of analysis; the downgrade technique is fully described in the PHP GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
PHP's Phar extension (8.2.x before 8.2.36, 8.3.x before 8.3.37, 8.4.x before 8.4.28 and 8.5.x before 8.5.13) accepts a tampered OpenSSL-signed archive because it treats the archive-supplied signature-type field as authoritative, allowing an attacker who can rewrite the archive - but not the separate .pubkey trust anchor - to swap in a keyless SHA-256 digest and have PHP load attacker-controlled code. Unauthenticated remote attackers (CVSS PR:N) can exploit this only where the application installs an OpenSSL public key as a sidecar and later loads the archive, and the victim must load the tampered file (UI:R); phar.require_hash=1 does not prevent it because keyless hashes provide corruption detection only. No public exploit code or confirmed active exploitation was identified at time of analysis, and the practical exposure is concentrated in deployments that pin a trusted key via <archive>.pubkey.
RemediationAI
Upgrade PHP to the fixed release for each maintained branch: 8.2.36, 8.3.37, 8.4.28 or 8.5.13 (php/ext-phar), per GHSA-68fq-fh7h-f8gr (https://github.com/php/php-src/security/advisories/GHSA-68fq-fh7h-f8gr). There is no complete configuration-only fix; the mitigations the vendor describes are risk-reduction measures with trade-offs. Obtain the publisher's public key through an authenticated channel and install it as <archive>.pubkey with permissions that prevent the archive update or download path from removing or replacing it - this only helps if that path is genuinely restricted, because anyone who can also remove or replace the sidecar can already supply an archive signed with their own key. Where the key cannot be protected independently of the archive, verify the archive with another mechanism that pins a trusted key before PHP loads it, accepting the added deployment complexity. Do not rely on phar.require_hash=1 as a defence; it detects corruption for keyless hashes and does not authenticate them. Restricting archive write access and ensuring only trusted, integrity-checked sources populate Phar files reduces exposure without patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PHP's Phar extension supports three container formats - native phar, tar-based and zip-based - and each stores a signature type that the verifier uses to pick a verification routine. For native phars the four bytes immediately before the GBMB magic carry that type; for tar- and zip-based phars the first four bytes of .phar/signature.bin do. OpenSSL signatures are unusual in that the verification key is not stored in the archive at all: PHP reads it from a separate <archive>.pubkey file acting as an external trust anchor, a design present since OpenSSL Phar signatures were introduced in PHP 5.3.0. Because the signature-type field is attacker-controlled and only the OpenSSL branches ever consult .pubkey, an attacker can downgrade the type to a keyless hash (MD5, SHA-1, SHA-256 or SHA-512), recompute the digest over modified contents and pass verification without the private key. The root cause maps to CWE-347 (improper verification of cryptographic signature) and CWE-757 (selection of less-secure algorithm during negotiation). The fix rejects a non-OpenSSL signature when an adjacent .pubkey file signals that OpenSSL verification is expected, while archives without such a sidecar keep their existing behaviour; explicitly signed tar- and zip-based PharData archives share the same verification path. Note that the fix does not help if an attacker can also remove or replace the .pubkey, since they could then simply sign with their own key.
Know when OpenSSL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker needs a write position over the archive but not the pubkey - a precondition beyond their control, so AC:H; victim must load the archive (UI:R); full code execution yields C/I/A High with no scope change.
Primary rating from Vendor (php).
CVSS VectorVendor: php
Lifecycle Timeline
2DescriptionCVE.org
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 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Technical POC Analysis
CWE-347 (Improper Verification of Cryptographic Signature), with CWE-757 (algorithm downgrade during negotiation) as the secondary classification in the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-128090 is a high-severity flaw in PHP's Phar extension that allows an attacker to bypass OpenSSL signature verification and load malicious code, but only in applications that pin a trusted public key via a sidecar .pubkey file and subsequently load the archive. Leadership should care because such applications could face remote code execution, though the prerequisite configuration is uncommon and no active exploitation or public exploit code has been identified at the time of this analysis.
For deployments that must load phar archives with a trusted .pubkey, disable OpenSSL signature verification by removing or renaming the sidecar .pubkey file and instead rely on other integrity controls (e.g., file permissions, cryptographic hashes enforced by the application, or immutable infrastructure). Restrict write access to phar archives to trusted processes only. Monitor for unexpected modifications to .pubkey files or phar archives.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri
The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se
The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas
The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a
The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly
A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig
EUVD-2026-130141
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB