CVE-2026-142624: CVE-2026-142624: Validation Logic Bypass via In-Band Sentinel Value Collision in Laravel Framework
CVE-2026-142624: Validation Logic Bypass via In-Band Sentinel Value Collision in Laravel Framework Vulnerability ID: CVE-2026-142624 CVSS Score: 6.5 Published: 2026-12-03 A validation logic bypass vulnerability exis
CVE-2026-142624: Validation Logic Bypass via In-Band Sentinel Value Collision in Laravel Framework
Vulnerability ID: CVE-2026-142624
CVSS Score: 6.5
Published: 2026-12-03
A validation logic bypass vulnerability exists in the Laravel Framework validation subsystem prior to versions 12.72.0 and 13.43.0. When validating nested attributes or wildcard arrays using the 'sometimes' rule, the framework uses the literal string 'missing' as an in-band sentinel value to detect absent keys. An attacker who submits the literal string 'missing' as the value for a nested attribute causes the validator to misinterpret the field as omitted, bypassing all subsequent validation rules while still returning the unvalidated string in the validated dataset.
TL;DR
Submitting the literal string 'missing' to nested or wildcard attributes governed by the 'sometimes' validation rule in Laravel (< 12.72.0 and < 13.43.0) causes all validation constraints for that field to be skipped while passing the unvalidated value through to application logic.
⚠️ Exploit Status: POC
Technical Details
- Vulnerability Type: Validation Logic Bypass / In-Band Sentinel Collision
- CWE ID: CWE-115 (Misinterpretation of Input) / CWE-20 (Improper Input Validation)
- CVSS v3.1 Score: 6.5 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N)
- EPSS Score: 0.40% (35.91st Percentile)
- Attack Vector: Network (Unauthenticated HTTP request with nested 'missing' value)
- Affected Component: Illuminate\Validation\ValidationData::extractDataFromPath()
- Patched Versions: laravel/framework 12.72.0 and 13.43.0
- CISA KEV Status: Not Listed
Affected Systems
- Laravel Framework (laravel/framework) 12.x prior to 12.72.0
- Laravel Framework (laravel/framework) 13.x prior to 13.43.0
-
laravel/framework: < 12.72.0 (Fixed in:
12.72.0) -
laravel/framework: >= 13.0.0, < 13.43.0 (Fixed in:
13.43.0)
Code Analysis
Commit: b79483b
Introduce Illuminate\Support\UndefinedValue and replace 'missing' sentinel in ValidationData::extractDataFromPath
--- a/src/Illuminate/Validation/ValidationData.php
+++ b/src/Illuminate/Validation/ValidationData.php
@@ -3,6 +3,7 @@
namespace Illuminate\Validation;
use Illuminate\Support\Arr;
+use Illuminate\Support\UndefinedValue;
class ValidationData
{
@@ -86,9 +87,9 @@ public static function extractDataFromPath($attribute, $masterData)
{
$results = [];
- $value = Arr::get($masterData, $attribute, '__missing__');
+ $value = Arr::get($masterData, $attribute, new UndefinedValue);
- if ($value !== '__missing__') {
+ if (! $value instanceof UndefinedValue) {
Arr::set($results, $attribute, $value);
}
Commit: ba9e21e
Merge pull request #62402 fixing nested sometimes validation bypass on 'missing' string
Mitigation Strategies
- Upgrade Laravel Framework to version 12.72.0 (for 12.x branch) or 13.43.0 (for 13.x branch) to replace the in-band string sentinel with the out-of-band UndefinedValue object.
- Deploy a global HTTP middleware using array_walk_recursive() to inspect request parameters and reject payloads containing the exact string 'missing' with an HTTP 422 response if immediate patching is not feasible.
- Enforce strict type declarations and database-level constraints (such as native ENUMs, CHECK constraints, and strict SQL modes) so unvalidated strings cannot silently corrupt downstream persistence layers.
Remediation Steps:
- Audit composer.lock to determine if laravel/framework is on an affected version (< 12.72.0 or >= 13.0.0, < 13.43.0).
- Run 'composer update laravel/framework' to pull the patched release.
- Verify the active framework version by running 'php artisan --version' and confirming it outputs 12.72.0+ or 13.43.0+.
- Run application test suites to ensure custom validation extensions do not rely on the legacy 'missing' string sentinel.
References
- GitHub Security Advisory GHSA-f3ph-5p6j-34xr
- Laravel Framework Pull Request #62402
- Fix Commit b79483b42b701783decd0b188dafb63697a3b18b
- Merge Commit ba9e21eb9451bab33741be99239baf8ec4ff94ca
- Laravel Framework v12.72.0 Release
- Laravel Framework v13.43.0 Release
- NVD Detail for CVE-2026-142624
- CVE.org Record for CVE-2026-142624
- CVEListV5 JSON Record for CVE-2026-142624
- Wiz Vulnerability Database: CVE-2026-142624
Read the full report for CVE-2026-142624 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.