Skip to main content

PHP Phar EUVDEUVD-2026-130141

| CVE-2026-128090 HIGH
Improper Verification of Cryptographic Signature (CWE-347)
2026-11-19 php
7.7
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain write access to OpenSSL-signed Phar
  2. Delivery
    Switch signature type to keyless SHA-256
  3. Exploit
    Recompute digest over malicious archive contents
  4. Execution
    Application loads and verifies the archive
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PHP 8.5.0 <8.5.13
PHP 8.3.0 <8.3.37
PHP 8.2.0 <8.2.36
PHP 8.4.0 <8.4.28

Affected Packages

euvd php fix: 8.2.36, 8.3.37, 8.4.28, 8.5.13

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

Vendor (php) PRIMARY 7.7 HIGH
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:42 cve.org
HIGH 7.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Ubiquitous
PHP is deployed across a huge fraction of web server environments
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

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

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2016-0800 MEDIUM POC
5.9 Mar 01

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

CVE-2015-0204 MEDIUM POC
4.3 Jan 09

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

CVE-2022-2068 HIGH
7.3 Jun 21

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas

CVE-2015-4000 LOW POC
3.7 May 21

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

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2016-2107 MEDIUM POC
5.9 May 05

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

CVE-2015-1793 MEDIUM POC
6.5 Jul 09

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

CVE-2022-3602 HIGH
7.5 Nov 01

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy