{"answers":{"affected":"4 open source packages ship an affected version, including laravel/framework.","exploited":"There is no known exploitation of GHSA-7852-w36x-6mf6 in the wild and no public exploit code.","fix":"Upgrade laravel/framework to a fixed version for your release line: 5.5.40 or 5.6.15.","what":"GHSA-7852-w36x-6mf6 is a vulnerability in laravel/framework, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-7852-w36x-6mf6 and fix it if it is affected.\n\nWhat it is: GHSA-7852-w36x-6mf6 is a vulnerability in laravel/framework, published on 15 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-7852-w36x-6mf6 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- laravel/framework (Packagist): affected all versions; fixed in 5.5.40\n- laravel/framework (Packagist): affected all versions; fixed in 5.5.40\n- laravel/framework (Packagist): affected from 5.6.0; fixed in 5.6.15\n- laravel/framework (Packagist): affected from 5.6.0; fixed in 5.6.15\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-7852-w36x-6mf6/ (Markdown: https://insights.sbomify.com/GHSA-7852-w36x-6mf6/index.md)","id":"GHSA-7852-w36x-6mf6","markdown":"https://insights.sbomify.com/GHSA-7852-w36x-6mf6/index.md","name":"GHSA-7852-w36x-6mf6","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Laravel encryption library","requires_auth":"none","summary":"Attackers can manipulate encrypted payloads to cause decryption failures, potentially bypassing security checks in applications using weak type comparisons.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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\u003c?php\n\n$decyptedValue = decrypt($secret);\n\nif ($decryptedValue == '') {\n    // Code is run even though decrypted value is false...\n}\n```","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Laravel Encrypter Component Potential Decryption Failure Leading to Unintended Behavior","id":"GHSA-7852-w36x-6mf6","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"other","year":"2024"},"n_packages":4,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["5.5.40"],"introduced":["0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-7852-w36x-6mf6"},{"ecosystem":"Packagist","fixed":["5.5.40"],"introduced":["0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-7852-w36x-6mf6"},{"ecosystem":"Packagist","fixed":["5.6.15"],"introduced":["5.6.0"],"last_affected":[],"package":"laravel/framework","purl":null,"source":"GHSA-7852-w36x-6mf6"},{"ecosystem":"Packagist","fixed":["5.6.15"],"introduced":["5.6.0"],"last_affected":[],"package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"GHSA-7852-w36x-6mf6"}],"products":null,"published":"2024-05-15","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can manipulate encrypted payloads to cause decryption failures, potentially bypassing security checks in applications using weak type comparisons.","url":"https://insights.sbomify.com/GHSA-7852-w36x-6mf6/"}