- Accueil
- Vulnérabilités
- CVE-2026-142649
CVE-2026-142649
Laravel: `in` / `Rule::in` validation rule bypass via loose comparison
Résumé
Laravel is a web application framework. Prior to 12.67.0 and 13.26.0, The in validation rule (and Rule::in, and not_in via the same code) compares the scalar input to the allowlist with a non-strict in_array(). PHP 8 then compares numeric strings numerically, so many values that are not literally in the list pass validation , including whitespace-padded, leading-zero, signed, and scientific-notation forms, and an embedded newline. The value returned by validated() / valid() is the raw, un-canonicalized input, so the attacker-controlled bytes flow through to the application even though the rule was supposed to constrain them to a fixed set. The array branch of the same method already compares as strings (array_diff), so this is an internal inconsistency, not intended behavior. Any allowlist of numeric values , feature flags (in:0,1), status codes, role/tenant/enum IDs stored as integers may be bypassed with an equivalent-but-not-identical representation. This issue is fixed in versions 12.67.0 and 13.26.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 (2 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| laravel/framework | avant 12.67.0 (exclu) |
12.67.0 |
GitHub Advisory |
| laravel/framework | de 13.0.0 (inclus) à 13.26.0 (exclu) |
13.26.0 |
GitHub Advisory |
Correctif
Mise à jour — Packagist/laravel/framework 12.67.0; Packagist/laravel/framework 13.26.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-h2hg-mfj4-rg7q — Laravel: `in` / `Rule::in` validation rule bypass via loose comparison 3 déc. 2026
Références
- https://github.com/laravel/framework/security/advisories/GHSA-h2hg-mfj4-rg7qWEB
- https://github.com/laravel/framework/pull/61146WEB
- https://github.com/laravel/framework/commit/0db83d4177675d9290bee91f33f90b2b5828e56eWEB
- https://github.com/laravel/framework/releases/tag/v12.67.0WEB
- https://github.com/laravel/framework/releases/tag/v13.26.0WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142649ADVISORY
- 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:L/PR:N/UI:N/S:U/C:N/I:L/A:N(CVSS 3.1, CNA:security-advisories@github.com)- Faiblesse
- CWE-697 · Autre (CWE-697)