Read the docs
TI-2026-66222 Aliases GHSA-r33w-fg8j-9c94

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

Priority LOW 38CWE-502Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Code execution
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-502.

Summary

## Description MagicLink stores serialized action objects in the `magic_links.action` database column and deserializes them without integrity validation or class allowlisting in [src/MagicLink.php](src/MagicLink.php#L59-L77) and [src/Actions/ResponseAction.php](src/Actions/ResponseAction.php#L64-L77). An attacker with the ability to manipulate database records (e.g., via SQL injection or compromised admin access) could inject malicious serialized objects containing arbitrary closures, leading to Remote Code Execution (RCE) when the magic link is visited. ## Resolution The vulnerability has been mitigated through HMAC-signed serialization using the application key, class allowlisting restricted to `ActionAbstract` subclasses and framework classes, strict type validation preventing arbitrary object storage, and backward compatibility support for legacy data via `allowed_classes` in `unserialize()`. Implementation includes a new [Serializable](src/Security/Serializable/Serializable.php) security class with signing/verification, refactored getter/setter methods in MagicLink.

Why it matters now

Fix Fixed cesargb/laravel-magiclink (Packagist): 2.25.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—cesargb/laravel-magiclink (Packagist)2.0.0 to before 2.25.12.25.1Patch availableGHSA-r33w-fg8j-9c94
  • cesargb/laravel-magiclink (Packagist) Vendor— Affected 2.0.0 to before 2.25.1 Fixed in 2.25.1 Patch available GHSA-r33w-fg8j-9c94

Remediation

  • Fix · GHSA-r33w-fg8j-9c94 cesargb/laravel-magiclink (Packagist) Fixed in 2.25.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-r33w-fg8j-9c94

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences