GHSA-6wjw-qf87-fv5v Laravel Encrypter Failure to decryption vulnerability

Not scored Published

Attackers can manipulate encrypted payloads to cause decryption failures, potentially bypassing security checks relying on weak type comparisons in Laravel applications.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-6wjw-qf87-fv5v?

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.

Official description

A potential exploit of the Laravel Encrypter component that may cause the Encrypter to fail on decryption and unexpectedly return false.

To 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:

<?php

$decyptedValue = decrypt($secret);

if ($decryptedValue == '') {
    // Code is run even though decrypted value is false...
}

Which versions are affected by GHSA-6wjw-qf87-fv5v?

4 open source packages ship an affected version, including illuminate/encryption.

PackageAffectedFixed in
illuminate/encryption PackagistFrom 5.5.05.5.40
illuminate/encryption PackagistFrom 5.5.05.5.40
illuminate/encryption PackagistFrom 5.6.05.6.15
illuminate/encryption PackagistFrom 5.6.05.6.15

How do I fix GHSA-6wjw-qf87-fv5v?

Upgrade illuminate/encryption to a fixed version for your release line: 5.5.40 or 5.6.15.

Is GHSA-6wjw-qf87-fv5v being exploited?

There is no known exploitation of GHSA-6wjw-qf87-fv5v in the wild and no public exploit code.

Sources

Is GHSA-6wjw-qf87-fv5v in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free