highCVSS 8.8Vulnerability

GHSA-r33w-fg8j-9c94

## 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.

Properties

ghsa_id
GHSA-r33w-fg8j-9c94
severity
high
summary
MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution
cvss_score
8.8
cve_id
GHSA-r33w-fg8j-9c94
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
is_ghsa_only
true
ghsa_published
2026-02-12T22:11:56Z
source_url
https://github.com/advisories/GHSA-r33w-fg8j-9c94
ghsa_updated
2026-02-12T22:12:39Z

Related Entities (3)

AFFECTS (1)

[Software]composer/cesargb/laravel-magiclink

HAS_WEAKNESS (1)

[Weakness]Deserialization of Untrusted Data

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-r33w-fg8j-9c94 (CVSS 8.8) — Ninja Signal Threat Intelligence | Ninja Signal