Security mailing lists by PureSourceCode

GHSA-6wjw-qf87-fv5v

LOW

Laravel Encrypter Failure to decryption vulnerability

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...
}
Published
15 May 2024
Last modified
29 Nov 2024
Weakness
CWE-1240
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Packagist illuminate/encryption >= 5.5.0, < 5.5.40 5.5.40
OSV Packagist illuminate/encryption >= 5.6.0, < 5.6.15 5.6.15

References

History

  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 15 May 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.