{"answers":{"affected":"4 open source packages ship an affected version, including illuminate/encryption.","exploited":"There is no known exploitation of GHSA-6wjw-qf87-fv5v in the wild and no public exploit code.","fix":"Upgrade illuminate/encryption to a fixed version for your release line: 5.5.40 or 5.6.15.","what":"GHSA-6wjw-qf87-fv5v is a vulnerability in illuminate/encryption, published on 15 May 2024. It can be exploited over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-6wjw-qf87-fv5v and fix it if it is affected.\n\nWhat it is: GHSA-6wjw-qf87-fv5v is a vulnerability in illuminate/encryption, published on 15 May 2024. It can be exploited over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-6wjw-qf87-fv5v in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- illuminate/encryption (Packagist): affected from 5.5.0; fixed in 5.5.40\n- illuminate/encryption (Packagist): affected from 5.5.0; fixed in 5.5.40\n- illuminate/encryption (Packagist): affected from 5.6.0; fixed in 5.6.15\n- illuminate/encryption (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-6wjw-qf87-fv5v/ (Markdown: https://insights.sbomify.com/GHSA-6wjw-qf87-fv5v/index.md)","id":"GHSA-6wjw-qf87-fv5v","markdown":"https://insights.sbomify.com/GHSA-6wjw-qf87-fv5v/index.md","name":"GHSA-6wjw-qf87-fv5v","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":"unknown","summary":"Attackers can manipulate encrypted payloads to cause decryption failures, potentially bypassing security checks relying on weak type comparisons in Laravel applications.","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":"A potential exploit of the Laravel Encrypter component that may cause the Encrypter to fail on decryption and unexpectedly return false.\n\nTo exploit this, the attacker must be able to modify the encrypted payload before it is decrypted. Depending on the code within your application, this could lead to unexpected behavior when combined with weak type comparisons, for example:\n\n```php\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 Failure to decryption vulnerability","id":"GHSA-6wjw-qf87-fv5v","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":["5.5.0"],"last_affected":[],"package":"illuminate/encryption","purl":null,"source":"GHSA-6wjw-qf87-fv5v"},{"ecosystem":"Packagist","fixed":["5.5.40"],"introduced":["5.5.0"],"last_affected":[],"package":"illuminate/encryption","purl":"pkg:composer/illuminate/encryption","source":"GHSA-6wjw-qf87-fv5v"},{"ecosystem":"Packagist","fixed":["5.6.15"],"introduced":["5.6.0"],"last_affected":[],"package":"illuminate/encryption","purl":null,"source":"GHSA-6wjw-qf87-fv5v"},{"ecosystem":"Packagist","fixed":["5.6.15"],"introduced":["5.6.0"],"last_affected":[],"package":"illuminate/encryption","purl":"pkg:composer/illuminate/encryption","source":"GHSA-6wjw-qf87-fv5v"}],"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 relying on weak type comparisons in Laravel applications.","url":"https://insights.sbomify.com/GHSA-6wjw-qf87-fv5v/"}