GHSA-r33w-fg8j-9c94

Suggest an improvement
Source
https://github.com/advisories/GHSA-r33w-fg8j-9c94
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-r33w-fg8j-9c94/GHSA-r33w-fg8j-9c94.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r33w-fg8j-9c94
Published
2026-02-12T22:11:56Z
Modified
2026-02-12T22:19:52.056590Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution
Details

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 and src/Actions/ResponseAction.php. 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 security class with signing/verification, refactored getter/setter methods in MagicLink.

Database specific
{
    "github_reviewed_at": "2026-02-12T22:11:56Z",
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-502"
    ],
    "github_reviewed": true,
    "nvd_published_at": null
}
References

Affected packages

Packagist / cesargb/laravel-magiclink

Package

Name
cesargb/laravel-magiclink
Purl
pkg:composer/cesargb/laravel-magiclink

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.25.1

Affected versions

v2.*
v2.0.0
v2.1.0
v2.2.0
v2.2.1
v2.2.2
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
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.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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-r33w-fg8j-9c94/GHSA-r33w-fg8j-9c94.json"