Skip to main content
← All vulnerabilities
CVE-2026-61701GHSA-R33W-FG8J-9C94

Laravel MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.25.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Laravel MagicLink creates links for authentication without a password or for accessing private content. From 2.0.0 until 2.25.1, MagicLink stores serialized action objects in the magic_links.action database column and deserializes them through src/MagicLink.php and src/Actions/ResponseAction.php without sufficient integrity protection, while an unsafe legacy unserialize() fallback remains reachable. An attacker who can manipulate database records, such as through a separate SQL injection or compromised administrative access, can insert a malicious serialized object graph containing executable closure behavior; visiting the associated magic link then deserializes the record and can execute arbitrary code in the application process. The affected path is restricted to manipulated action records and does not independently provide database-write access. This issue is fixed in version 2.25.1.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • cesargb laravel-magiclink

    From 2.0.0 · fixed in 2.25.1

  • cesargb/laravel-magiclinkPackagist

    From 2.0.0 · fixed in 2.25.1

References 4

GitHub · cesargb/laravel-magiclink