Laravel released versions 13.45.0 and 12.75.0 of the framework on December 1, 2026. Among roughly thirty listed changes, one fix stands out for teams that rotate their encryption keys: Encrypter::decrypt() no longer treats decryption keys unevenly depending on their position in the rotation list.
The problem: processing time that depended on key position
When an application configures several previous keys in previous_keys, Laravel tries them in order until one correctly verifies the MAC (message authentication code) of the encrypted payload. Before 13.45, decryption stopped at the first key that validated the MAC, so computation time varied with the position of the correct key in the list. A key in first position answered faster than one in last position.
That kind of gap is the classic signature of a timing side channel: a fix like this doesn’t patch an observed data leak, it closes a door before it can be used as leverage in a timing-measurement attack against a service that exposes decryption, for instance an API that returns a different error or a measurable delay depending on which key was used.
The fix: constant computation time regardless of the key
The patched version now checks the MAC against every configured key before decrypting once with the first one that matches. Every decryption attempt therefore does the same amount of work, independent of key order. The fix, backported from the 13.x branch to 12.x, affects any application using key rotation via APP_PREVIOUS_KEYS.
// config/app.php
'key' => env('APP_KEY'),
'previous_keys' => [
...array_filter(
explode(',', env('APP_PREVIOUS_KEYS', ''))
),
],Key rotation itself remains a recommended practice: it lets a team retire a compromised key without immediately invalidating data already encrypted with the old one. The problem was never the principle, only the implementation of the check.
| Version | Date | Encrypter-related content |
|---|---|---|
| 13.44.1 | November 24, 2026 | Minor fixes, no Encrypter change |
| 12.74.0 / 13.43.0 | November 17, 2026 | No encryption-related change |
| 12.75.0 / 13.45.0 | December 1, 2026 | Constant-time MAC check across all keys |
What else the two releases change
The December 1 release also bundles changes unrelated to security: database cache writes and deletes are now batched, Request::isJson() becomes case-insensitive, and a riskier change — making wildcard TrustProxies trust every address — was reverted before it reached a stable release, which shows the framework’s security review also works upstream of a release.
Upgrading without regressions
composer update laravel/framework
php artisan about | grep -i versionBefore this fix, decryption response time varied with the key’s position in the rotation list: a textbook signature of a timing side channel.
This class of flaw only affects applications that expose, directly or indirectly, a measurable response time or behavior during a decryption operation with several active keys. A single-key application isn’t affected by this specific fix, but still benefits from updating to get the rest of 13.45’s corrections.
Why this matters for secret management
Key rotation is a recommended practice in hardening more broadly, and Laravel isn’t alone here: email authentication keys like DKIM follow the same rotate-without-downtime logic covered in SPF, DKIM and DMARC. The underlying technology differs, but the principle of never letting an observable computation time depend on a secret’s validity cuts across applied cryptography, including for teams managing internal deployment CLI tooling.
Key takeaways
Laravel 13.45 and its 12.75 backport close a timing side channel in the Encrypter’s multi-key verification. Updating is recommended for any application using previous_keys, with no configuration change needed beyond composer update.
This is the kind of fix that will never headline a standalone technical article, which is exactly why it deserves a mention: a team that set up key rotation two years ago and never revisited it won’t go looking for this commit on its own — Simon Janvier.
Further reading: the Laravel 13.45.0 release notes on GitHub.
