BIT-libphp-2026-14355: ext/openssl: Memory corruption in openssl_encrypt with AES-WRAP-PAD
A memory corruption vulnerability exists in the OpenSSL extension of PHP when using the AES-WRAP-PAD algorithm. The flaw arises because the output buffer is allocated based on the plaintext length without accounting for the RFC 5649 expansion, leading to potential heap corruption and application abort. This affects PHP versions 8.2.* before 8.2.32, 8.3.* before 8.3.32, 8.4.* before 8.4.23, and 8.5.* before 8.5.8.
AI Analysis
Technical Summary
In PHP versions 8.2.0 up to but not including 8.2.32, 8.3.0 up to but not including 8.3.32, 8.4.0 up to but not including 8.4.23, and 8.5.0 up to but not including 8.5.8, the OpenSSL extension's implementation of the AES-WRAP-PAD algorithm contains a buffer allocation flaw. Specifically, the output buffer size is derived from the plaintext length without considering the expansion required by RFC 5649. This miscalculation can cause OpenSSL to write beyond the allocated memory buffer, corrupting heap metadata and potentially causing the application to abort.
Potential Impact
The vulnerability may lead to heap memory corruption and application crashes due to buffer overflows during AES key-wrap-with-padding operations. There is no indication of known exploits in the wild. The impact is limited to denial of service through application abort; no information about code execution or data disclosure is provided.
Mitigation Recommendations
A fix is available in PHP versions 8.2.32, 8.3.32, 8.4.23, and 8.5.8 and later. Users should upgrade to these versions or later to remediate the vulnerability. No other mitigation guidance is provided.
BIT-libphp-2026-14355: ext/openssl: Memory corruption in openssl_encrypt with AES-WRAP-PAD
Description
A memory corruption vulnerability exists in the OpenSSL extension of PHP when using the AES-WRAP-PAD algorithm. The flaw arises because the output buffer is allocated based on the plaintext length without accounting for the RFC 5649 expansion, leading to potential heap corruption and application abort. This affects PHP versions 8.2.* before 8.2.32, 8.3.* before 8.3.32, 8.4.* before 8.4.23, and 8.5.* before 8.5.8.
Affected software
pkg:bitnami/phpRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In PHP versions 8.2.0 up to but not including 8.2.32, 8.3.0 up to but not including 8.3.32, 8.4.0 up to but not including 8.4.23, and 8.5.0 up to but not including 8.5.8, the OpenSSL extension's implementation of the AES-WRAP-PAD algorithm contains a buffer allocation flaw. Specifically, the output buffer size is derived from the plaintext length without considering the expansion required by RFC 5649. This miscalculation can cause OpenSSL to write beyond the allocated memory buffer, corrupting heap metadata and potentially causing the application to abort.
Potential Impact
The vulnerability may lead to heap memory corruption and application crashes due to buffer overflows during AES key-wrap-with-padding operations. There is no indication of known exploits in the wild. The impact is limited to denial of service through application abort; no information about code execution or data disclosure is provided.
Mitigation Recommendations
A fix is available in PHP versions 8.2.32, 8.3.32, 8.4.23, and 8.5.8 and later. Users should upgrade to these versions or later to remediate the vulnerability. No other mitigation guidance is provided.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-php-2026-14355
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2026-14355"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Medium
- Cvss Version
- null
Threat ID: 6a4e4ec4c9d9e3dbe3286dce
Added to database: 07/08/2026, 13:21:08 UTC
Last enriched: 07/08/2026, 13:27:01 UTC
Last updated: 07/09/2026, 02:07:06 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.