PHP is vulnerable to the Marvin Attack
The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: https://github.com/openssl/openssl/pull/13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable. PHP Windows builds for the versions 8.1.29, 8.2.20 and 8.3.8 and above include OpenSSL patches that fix the vulnerability.
- Published
- Jun 9, 2024
- Updated
- Jun 17, 2026
- EPSS
- 1.2% · 66th percentile
- CWE
- CWE-203
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
23
Monitor
Low priority for now.
- CVSS
- 23 / 40 · 5.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.2%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php8.1.0 and later · before 8.1.29
- php php8.2.0 and later · before 8.2.20
- php php8.3.0 and later · before 8.3.8
Versions reported by the vendor
Affected version ranges reported by the assigning authority (php). Independent of NVD's CPE analysis and usually ahead of it.
PHP Group PHP
- 8.1.* and later · before 8.1.29affected · semver
- 8.2.* and later · before 8.2.20affected · semver
- 8.3.* and later · before 8.3.8affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | php8.2 | before 8.2.18-1 | 8.2.18-1 |
| Red Hat:enterprise_linux:8::baseos | openssl | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Red Hat:enterprise_linux:8::baseos | openssl-debuginfo | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Red Hat:enterprise_linux:8::baseos | openssl-debugsource | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Red Hat:enterprise_linux:8::baseos | openssl-devel | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Red Hat:enterprise_linux:8::baseos | openssl-libs | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Red Hat:enterprise_linux:8::baseos | openssl-libs-debuginfo | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Red Hat:enterprise_linux:8::baseos | openssl-perl | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
| Rocky Linux:8 | openssl | before 1:1.1.1k-12.el8_9 | 1:1.1.1k-12.el8_9 |
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle queKEV99Now
- CVE-2018-7584In PHP through 5.6.33, 7.0.x before 7.0.28, 7.1.x through 7.1.14, and 7.2.x through 7.2.2, there is a stack-based buffer under-read while pa65This week
- CVE-2018-19518University of Washington IMAP Toolkit 2007f on UNIX, as used in imap_open() in PHP and other products, launches an rsh command (by means of 59Plan
- CVE-2016-3078Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-b56Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| PHP Group PHP | 8.1.29 | Vendor (CNA) |
| PHP Group PHP | 8.2.20 | Vendor (CNA) |
| PHP Group PHP | 8.3.8 | Vendor (CNA) |
| debian:php8.2 | 8.2.18-1 · Debian:12 | Package registry (OSV) |
| red hat:openssl | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-debuginfo | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-debugsource | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-devel | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-libs | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-libs-debuginfo | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:openssl-perl | 1:1.1.1k-12.el8_9 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| rocky linux:openssl | 1:1.1.1k-12.el8_9 · Rocky Linux:8 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- Hubert KarioRedHatreporter
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- none
- Availability
- none
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- None
- Availability impact
- None
Weakness class (CWE)
CWE-203 · Observable DiscrepancyCVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
- security.netapp.com/advisory/ntap-20250321-0008/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.