GHSA-7852-w36x-6mf6: Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior
The Laravel Encrypter component is susceptible to a vulnerability that may result in decryption failure, leading to an unexpected return of false. Exploiting this issue requires the attacker to manipulate the encrypted payload before decryption. When combined with weak type comparisons in the application's code, such as the example below:
Published May 15, 2024
Affected packages
laravel/framework
- Ecosystem
- Composer (PHP)
- Affected
- < 5.5.40
- Fixed in
- 5.5.40
- Check
composer show laravel/framework
laravel/framework
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.6.0, < 5.6.15
- Fixed in
- 5.6.15
- Check
composer show laravel/framework
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The Laravel Encrypter component is susceptible to a vulnerability that may result in decryption failure, leading to an unexpected return of false. Exploiting this issue requires the attacker to manipulate the encrypted payload before decryption. When combined with weak type comparisons in the application's code, such as the example below:
<?php
$decyptedValue = decrypt($secret);
if ($decryptedValue == '') {
// Code is run even though decrypted value is false...
}References
- https://github.com/laravel/framework/commit/28e53f23a76206fb130e9a54eb95aa3f010e79c9
- https://github.com/laravel/framework/commit/886d261df0854426b4662b7ed5db6a1c575a4279
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2018-03-30-1.yaml
- https://medium.com/@taylorotwell/laravel-security-release-5-6-15-and-5-5-40-56f1257933a0
- https://github.com/advisories/GHSA-7852-w36x-6mf6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-128083
Laravel: Task Output Injection - Concurrency Process
low2.3Nov 13, 2026CVE-2026-114508
Laravel relationship inclusion can trigger unauthorized data destruction
medium6.5Oct 23, 2026CVE-2026-114509
Laravel TokenGuard authentication bypass through non-string API credentials
critical9.2Oct 23, 2026CVE-2026-102279
Laravel: XSS in Debug Page Information
low3.1Sep 29, 2026GHSA-5vg9-5847-vvmq
Laravel Framework: CRLF injection in default email rule
high8.9Jun 17, 2026GHSA-crmm-hgp2-wgrp
Laravel Framework: Temporary Signed URL Path Confusion
medium4.2Jun 17, 2026
