- Accueil
- Vulnérabilités
- CVE-2026-142636
CVE-2026-142636
Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition
Résumé
Laravel is a web application framework. Prior to 12.73.0, When an authenticated user is first resolved while Eloquent is initializing an eager-loaded relation, Eloquent's relation constraints are temporarily disabled. A lazy key-constrained lookup made during that window, such as Sanctum's token owner lookup, runs without its key restriction. The guard can then return the lowest-ID user (often an administrator) instead of the token's owner. This affects applications that call the guard inside a relation definition used with eager loading, for example in optional-authentication routes. A low-privilege token could then read that user's data, and the wrong user remains cached for the rest of the request. Routes where authentication middleware resolves the user first were not affected in testing. This issue is fixed in version 12.73.0.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Laravel (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Framework | Versions non précisées | — | CNA (éditeur ou attributeur) |
Packagist (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| laravel/framework | avant 12.73.0 (exclu) |
12.73.0 |
GitHub Advisory |
Correctif
Mise à jour — Packagist/laravel/framework 12.73.0source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-vfxr-r8f8-gfmp — Laravel: Sanctum guard can resolve the lowest-ID user when evaluated inside an eager-loaded Eloquent relation definition 3 déc. 2026
Références
- https://github.com/laravel/framework/security/advisories/GHSA-vfxr-r8f8-gfmpx_refsource_CONFIRM
- https://github.com/laravel/framework/pull/62483x_refsource_MISC
- https://github.com/laravel/framework/commit/6ea0fda8128e36e912e7fde755dac345bde9f5f7x_refsource_MISC
- https://github.com/laravel/framework/releases/tag/v12.73.0x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-142636ADVISORY
- https://github.com/laravel/frameworkPACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N(CVSS 3.1, CNA:security-advisories@github.com)- Faiblesse
- CWE-863 · Authentification / contrôle d'accès