{"id":"GHSA-7852-w36x-6mf6","aliases":["GHSA-7852-w36x-6mf6"],"related":[],"kind":"vulnerability","state":"published","title":"Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior","summary":"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:\n\n```\n<?php\n\n$decyptedValue = decrypt($secret);\n\nif ($decryptedValue == '') {\n    // Code is run even though decrypted value is false...\n}\n```","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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:\n\n```\n<?php\n\n$decyptedValue = decrypt($secret);\n\nif ($decryptedValue == '') {\n    // Code is run even though decrypted value is false...\n}\n```","format":"markdown","source":"ghsa"}],"published":"2024-05-15T22:08:06.000Z","modified":"2024-11-29T05:40:57.344Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-1240"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.5.40"}],"ecosystem":"Packagist","package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.6.0","status":"affected","fixed":"5.6.15"}],"ecosystem":"Packagist","package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"ghsa"}],"references":[{"url":"https://github.com/laravel/framework/commit/28e53f23a76206fb130e9a54eb95aa3f010e79c9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/laravel/framework/commit/886d261df0854426b4662b7ed5db6a1c575a4279","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/2018-03-30-1.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/laravel/framework","tags":["package"],"sources":["ghsa"]},{"url":"https://medium.com/@taylorotwell/laravel-security-release-5-6-15-and-5-5-40-56f1257933a0","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7852-w36x-6mf6","url":"https://github.com/advisories/GHSA-7852-w36x-6mf6","licence":"CC-BY-4.0","modified":"2024-11-29T05:40:57.344Z"}],"updatedAt":"2026-11-25T22:56:31.433Z"}