CVE-2026-61701
Received Received - Intake

Remote Code Execution in Laravel MagicLink

Vulnerability report for CVE-2026-61701, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-14

Last updated on: 2026-09-14

Assigner: GitHub, Inc.

Description

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-14
Last Modified
2026-09-14
Generated
2026-09-14
AI Q&A
2026-09-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
laravel magiclink From 2.0.0 (inc) to 2.25.1 (inc)
cesargb laravel-magiclink From 2.0.0 (inc) to 2.25.1 (exc)
cesargb laravel-magiclink 2.25.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-502 The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects Laravel MagicLink versions 2.0.0 to 2.25.0. It involves insecure deserialization of serialized action objects stored in the database. Attackers with database manipulation capabilities can inject malicious serialized objects containing executable closures. When a magic link is accessed, the system deserializes the object and executes arbitrary code in the application process.

Detection Guidance

Check Laravel MagicLink version with composer show cesargb/laravel-magiclink. If version is between 2.0.0 and 2.25.0, the system is vulnerable. Inspect database magic_links.action column for serialized objects. Look for unusual serialized data patterns or objects containing closures.

Impact Analysis

An attacker could gain remote code execution (RCE) in your application if they can manipulate database records. This could lead to full system compromise, data theft, or unauthorized actions. The impact includes loss of confidentiality, integrity, and availability of your application and data.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating GDPR's data protection requirements and HIPAA's security rules. It may result in regulatory fines, legal liabilities, and reputational damage due to compromised personal or health information.

Mitigation Strategies

Upgrade to version 2.25.1 or later immediately. Run php artisan magiclink:migrate to convert legacy action formats. Remove any unauthorized serialized objects from the magic_links.action column. Review database access controls to prevent SQL injection.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-61701. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart