GHSA-7852-w36x-6mf6: Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
5/15/2024
Updated
5/15/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
-
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| laravel/framework | composer | < 5.5.40 | 5.5.40 |
| laravel/framework | composer | >= 5.6.0, < 5.6.15 | 5.6.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient IV validation in the validPayload method. The pre-patch implementation only checked for the existence of IV/value/mac fields but didn't verify the IV length matches the cipher's requirements (via openssl_cipher_iv_length). This allowed attackers to craft payloads with invalid IV lengths that would pass initial validation but fail during actual decryption, returning false. The commit 28e53f2 specifically adds the IV length check to this function, confirming it as the vulnerable point. The function's role in payload validation makes it the critical component enabling this cryptographic weakness (CWE-1240).