Laravel MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-61701
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:39 UTC · Revision 1
Source evidence
Laravel MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution
core-osv · Original sourcePublished 14 Sept 2026, 16:04 UTC
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.
osv:CVE-2026-61701
Complete source record
{
"id": "dfb0217c122e831ea515275e71be8843696115c31d53fbe1dc839769eae6382b",
"url": "https://osv.dev/vulnerability/CVE-2026-61701",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Laravel MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution",
"summary": "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.",
"evidence": "osv:CVE-2026-61701",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-61701",
"aliases": [
"CVE-2026-61701",
"GHSA-r33w-fg8j-9c94"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/cesargb/laravel-magiclink",
"type": "GIT",
"events": [
{
"introduced": "274bdf401b849cbe4cc852329b8895c6957cee8e"
},
{
"fixed": "19fa820a49ea9b3984e9a91b4bf4bf0cf8375183"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.25.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "19fa820a49ea9b3984e9a91b4bf4bf0cf8375183"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "19fa820a49ea9b3984e9a91b4bf4bf0cf8375183"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.25.1"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.25.1"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v2.25.0",
"v2.24.7",
"v2.24.6",
"v2.24.5",
"v2.24.4",
"v2.24.3",
"v2.24.2",
"v2.24.1",
"v2.24.0",
"v2.23.0",
"v2.22.0",
"v2.21.2",
"v2.21.1",
"v2.21.00",
"v2.20.0",
"v2.19.0",
"v2.18.0",
"v2.17.0",
"v2.16.1",
"v2.16.0",
"v2.15.0",
"v2.14.1",
"v2.14.0",
"v2.13.0",
"v2.12.2",
"v2.12.1",
"v2.12.0",
"v2.11.0",
"v2.10.2",
"v2.10.1",
"v2.10.0",
"v2.9.2",
"v2.9.1",
"v2.9.0",
"v2.8.1",
"v2.8.0",
"v2.7.0",
"v2.6.0",
"v2.5.2",
"v2.5.1",
"v.2.5.1",
"v2.5.0",
"v2.4.0",
"v2.3.0",
"v2.2.2",
"v2.2.1",
"v2.2.0",
"v2.1.0",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-61701.json"
}
}
],
"modified": "2026-10-28T02:30:37.589227048Z",
"provider": "osv",
"references": [
"https://github.com/cesargb/laravel-magiclink/releases/tag/v2.25.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61701.json",
"https://github.com/cesargb/laravel-magiclink/security/advisories/GHSA-r33w-fg8j-9c94",
"https://nvd.nist.gov/vuln/detail/CVE-2026-61701",
"https://github.com/cesargb/laravel-magiclink/commit/19fa820a49ea9b3984e9a91b4bf4bf0cf8375183",
"https://github.com/cesargb/laravel-magiclink/pull/148"
],
"provider_metadata": {
"cwe_ids": [
"CWE-502"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61701.json"
}
},
"related_cves": [
{
"value": "CVE-2026-61701",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504790,
"published_at": "2026-09-14T16:04:21.378+00:00"
}