p PatchFirst

CVE-2026-61701

CVE-2026-61701 · Laravel MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.8 · High · EPSS 0.8% · Fix available

Published
Updated

Stack: php

Affected products and versions

  • laravel-magiclink

    Versions
    • >= 2.0.0, < 2.25.1: Affected

    No fix published

  • cesargb/laravel-magiclink Packagist

    Versions
    • v2.0.0
    • v2.1.0
    • v2.10.0
    • v2.10.1
    • v2.10.2
    • v2.11.0
    • v2.12.0
    • v2.12.1
    • v2.12.2
    • v2.13.0
    • v2.14.0
    • v2.14.1
    • v2.15.0
    • v2.16.0
    • v2.16.1
    • v2.17.0
    • v2.18.0
    • v2.19.0
    • v2.2.0
    • v2.2.1
    • v2.2.2
    • v2.20.0
    • v2.21.00
    • v2.21.1
    • v2.21.2
    • v2.22.0
    • v2.23.0
    • v2.24.0
    • v2.24.1
    • v2.24.2
    • v2.24.3
    • v2.24.4
    • v2.24.5
    • v2.24.6
    • v2.24.7
    • v2.25.0
    • v2.3.0
    • v2.4.0
    • v2.5.0
    • v2.5.1
    • v2.5.2
    • v2.6.0
    • v2.7.0
    • v2.8.0
    • v2.8.1
    • v2.9.0
    • v2.9.1
    • v2.9.2
    Affected ranges
    • ECOSYSTEM: ≥ 2.0.0, < 2.25.1

    Update to 2.25.1

Original sources

Check your server →