Dec 3, 2026·11 min read·10 visits
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.
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.
The Laravel Framework provides a validation subsystem inside the Illuminate\Validation namespace to enforce data integrity rules on incoming HTTP requests before data reaches business logic or persistence layers. A primary feature of this subsystem is dot-notation path traversal, which enables developers to validate deeply nested associative arrays and wildcard array elements (such as profile.age or items.*.quantity). In many application architectures, developers trust the output of $request->validated() or $validator->validated() as strictly conforming to declared type, format, and domain constraints.
CVE-2026-142624 (also tracked as GHSA-f3ph-5p6j-34xr) is an improper input validation (CWE-20) and misinterpretation of input (CWE-115) vulnerability affecting Laravel Framework versions prior to 12.72.0 and 13.43.0. The flaw occurs specifically when nested or wildcard attributes are paired with the sometimes conditional validation rule. The sometimes rule instructs the validator to apply validation constraints only if the target attribute is present in the input payload.
To determine whether a nested attribute exists within the input array during path extraction, the Illuminate\Validation\ValidationData class relied on a hardcoded in-band sentinel string: '__missing__'. When a user explicitly submits the literal string "__missing__" as the value for a nested attribute, a sentinel collision occurs. The extraction logic concludes that the attribute was omitted from the request and excludes it from the subset of data evaluated by the rule engine.
Because the attribute is treated as absent during rule evaluation, the sometimes check short-circuits and all subsequent validation constraints on that attribute (such as integer, in, regex, or min) are skipped. However, when the validator compiles the final validated array via validated(), the unvalidated "__missing__" value remains intact within the parent nested structure. Applications that pass this validated output directly into database queries, state machines, or third-party APIs will process input that violated the declared validation schema.
The root cause of CVE-2026-142624 resides in Illuminate\Validation\ValidationData::extractDataFromPath($attribute, $masterData). When Illuminate\Validation\Validator initializes and prepares data for validation, it normalizes and extracts relevant nested paths from the master input array so that wildcard and dot-notation rules can be evaluated individually. For each attribute path, ValidationData::initializeAndGatherData() delegates path extraction to extractDataFromPath().
Within extractDataFromPath(), the framework invokes Illuminate\Support\Arr::get($masterData, $attribute, '__missing__') to retrieve the value at the specified dot-notated path. The third parameter to Arr::get() specifies the default fallback value to return if the requested key does not exist in $masterData. Using a scalar string literal ('__missing__') as this default value introduces an in-band signaling flaw because '__missing__' belongs to the same data domain (strings) as untrusted user input.
Immediately following the Arr::get() call, extractDataFromPath() executes the conditional check if ($value !== '__missing__'). Because PHP's strict inequality operator (!==) compares both value and type, a user-supplied string of "__missing__" is identical in type and value to the fallback sentinel string '__missing__'. Consequently, the condition evaluates to false, Arr::set($results, $attribute, $value) is bypassed, and extractDataFromPath() returns an empty array.
When the validator subsequently processes the rule list for that attribute, it checks whether the attribute is present in the extracted data array. For attributes lacking the sometimes rule, an absent key still undergoes evaluation by implicit rules (like Required) or fails type checks if present. However, when the sometimes rule is active, Validator::presentOrRuleIsImplicit() checks if the attribute exists in the extracted dataset. Finding the key absent due to the earlier stripping in extractDataFromPath(), the validator halts all rule execution for that attribute.
A critical state inconsistency then occurs during output retrieval in Validator::validated(). When reconstructing the validated payload, the validator iterates through the top-level and nested keys declared in the ruleset and pulls their values using Arr::get($this->data, $key). Because the original $this->data array still holds the raw input structure (or because the parent key or wildcard container is copied over), the literal string "__missing__" is extracted and returned to the caller as validated data.
> [!NOTE]
> Top-level attributes (such as age instead of profile.age) are not affected by this vulnerability. Top-level attributes do not require dot-notation path resolution via ValidationData::extractDataFromPath() and are checked directly against the primary data array using array_key_exists(). Similarly, nested attributes that do not use the sometimes rule are unaffected because their absence from extracted data does not cause non-implicit rules to be silently skipped when the value is retrieved.
The vulnerability was patched in Pull Request #62402 through commits b79483b42b701783decd0b188dafb63697a3b18b and ba9e21eb9451bab33741be99239baf8ec4ff94ca. Before the fix, src/Illuminate/Validation/ValidationData.php contained the following implementation of extractDataFromPath():
// Vulnerable implementation in src/Illuminate/Validation/ValidationData.php
public static function extractDataFromPath($attribute, $masterData)
{
$results = [];
// In-band sentinel string used as fallback default
$value = Arr::get($masterData, $attribute, '__missing__');
// Collision occurs if user input at $attribute is the string '__missing__'
if ($value !== '__missing__') {
Arr::set($results, $attribute, $value);
}
return $results;
}To eliminate the possibility of an in-band collision, the patch replaces the scalar string sentinel with an out-of-band object sentinel by introducing a dedicated class: Illuminate\Support\UndefinedValue. Standard HTTP input parsers in PHP (including json_decode(), parse_str(), and multipart form handlers) only deserialize user input into scalar primitives (string, int, float, bool), array, or null. An external HTTP request cannot instantiate a PHP object of type Illuminate\Support\UndefinedValue during request parsing.
// Newly introduced class in src/Illuminate/Support/UndefinedValue.php
<?php
namespace Illuminate\Support;
use JsonSerializable;
class UndefinedValue implements JsonSerializable
{
/**
* Determine if value is equivalent to "undefined" or "null".
*
* @param mixed $value
*/
public static function equalsTo($value): bool
{
return $value instanceof UndefinedValue || is_null($value);
}
/**
* Get the value for JSON serialization.
*
* @return null
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return null;
}
}In src/Illuminate/Validation/ValidationData.php, extractDataFromPath() was updated to pass a new instance of UndefinedValue as the default fallback to Arr::get() and verify the return value using the instanceof type operator:
--- 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);
}With this change, if a user submits {"profile": {"age": "__missing__"}}, Arr::get() returns the string "__missing__". The check ! ($value instanceof UndefinedValue) evaluates to true because a string is not an instance of UndefinedValue. The key-value pair is properly written into $results via Arr::set(), and the validator proceeds to execute all declared validation rules against the string "__missing__".
To assess fix completeness, the regression test suite added in tests/Validation/ValidationValidatorTest.php covers five distinct structural patterns: standard nested attributes (profile.age), nested in constraints (profile.status), intermediate array wildcards (items.*.quantity), terminal wildcards (items.*), and multi-level wildcards (groups.*.items.*.quantity). Because extractDataFromPath() is the single entry point for dot-notation path extraction in ValidationData, replacing the sentinel with UndefinedValue completely resolves the collision across all nested and wildcard validation code paths.
Exploiting CVE-2026-142624 requires no authentication by default (unless the target route is behind authentication middleware) and can be performed remotely over standard HTTP/HTTPS connections. The sole prerequisite is an application endpoint that validates nested objects or array wildcards using the sometimes rule and subsequently relies on the validated data for downstream operations.
Consider a Laravel controller endpoint handling user profile or account configuration updates:
public function updateAccount(Request $request, Account $account)
{
$validated = $request->validate([
'settings.role' => 'sometimes|string|in:member,viewer',
'settings.credit_limit' => 'sometimes|integer|min:0|max:1000',
'items.*.quantity' => 'sometimes|integer|min:1',
]);
// Developer assumes $validated only contains safe, rule-compliant values
$account->update($validated['settings'] ?? []);
}In a normal request where an attacker attempts to submit an invalid role ({"settings": {"role": "admin"}}) or a non-numeric credit limit ({"settings": {"credit_limit": "unlimited"}}), the validator rejects the request with an HTTP 422 Unprocessable Content response. However, to trigger the vulnerability, the attacker submits an HTTP POST or PUT request with the literal string "__missing__" assigned to the target nested fields:
POST /api/account/update HTTP/1.1
Host: vulnerable-app.example.com
Content-Type: application/json
Accept: application/json
{
"settings": {
"role": "__missing__",
"credit_limit": "__missing__"
},
"items": [
{
"quantity": "__missing__"
}
]
}When Laravel processes this payload on an unpatched version (< 12.72.0 or < 13.43.0), ValidationData::extractDataFromPath() strips settings.role, settings.credit_limit, and items.0.quantity from the validation dataset. The validator sees the sometimes rule on each attribute, treats them as omitted, and passes validation without executing the in:member,viewer or integer rules. The call to $request->validate() returns:
[
'settings' => [
'role' => '__missing__',
'credit_limit' => '__missing__',
],
'items' => [
[
'quantity' => '__missing__',
],
],
]The Proof of Concept verified in the framework's regression tests (testSometimesValidatesNestedMissingString) demonstrates that this bypass works identically across terminal wildcards (items.* with payload {"items": ["__missing__"]}) and deeply nested multi-wildcards (groups.*.items.*.quantity). In every case, the unvalidated string "__missing__" is delivered directly into the application's post-validation execution flow.
The security impact of CVE-2026-142624 depends on how downstream application logic processes the unvalidated string "__missing__" after validation succeeds. Because the attacker cannot inject arbitrary strings—only the literal string "__missing__" triggers the sentinel collision—the vulnerability is scored as Medium severity with a CVSS v3.1 base score of 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
The Attack Vector is Network (AV:N), Attack Complexity is Low (AC:L), Privileges Required is None (PR:N), and User Interaction is None (UI:N), reflecting that any exposed endpoint using nested sometimes rules can be triggered with a single deterministic HTTP request. Confidentiality (C:L) and Integrity (I:L) are both rated Low because the attacker is constrained to injecting a fixed eight-character identifier wrapped in double underscores.
In practice, bypassing type, format, and domain rules with "__missing__" leads to several concrete application-level integrity and confidentiality failures:
sometimes|integer|min:1 receives "__missing__", PHP operations expecting an integer or float will either throw an unhandled TypeError / QueryException or coerce the non-numeric string to 0 in loose comparisons or legacy arithmetic contexts, bypassing minimum threshold checks (such as minimum item quantities or payment amounts).sometimes|in:active,inactive or sometimes|boolean can have their database columns overwritten with "__missing__". In applications where downstream switch statements or conditional checks rely on fallback else branches (e.g., if ($status === 'inactive') { deny(); } else { allow(); }), injecting an unexpected state value of "__missing__" can force execution into privileged default branches.$request->validated() is passed directly to Eloquent mass assignment (Model::create() or $model->update()) against strictly typed SQL columns (such as INT, DECIMAL, BOOLEAN, or ENUM), inserting "__missing__" triggers unhandled SQL state errors. If debug mode or verbose error reporting is enabled, or if partial non-transactional writes occur before the failing column, application state can be left inconsistent.According to threat intelligence metrics, CVE-2026-142624 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The Exploit Prediction Scoring System (EPSS) assigns this vulnerability a probability score of 0.00396 (0.40%), placing it in the 35.91st percentile.
The definitive remediation for CVE-2026-142624 is to upgrade the laravel/framework package to a patched release that uses the out-of-band Illuminate\Support\UndefinedValue sentinel object. For projects on the Laravel 12.x release branch, upgrade to version 12.72.0 or later. For projects on the Laravel 13.x release branch, upgrade to version 13.43.0 or later.
Administrators and developers can apply the update using Composer and verify the installed version via the Artisan CLI:
# Update laravel/framework to the latest patched version matching composer.json constraints
composer update laravel/framework --with-dependencies
# Verify the installed framework version is >= 12.72.0 or >= 13.43.0
php artisan --versionIf an immediate framework upgrade cannot be deployed due to maintenance freezes or compatibility testing requirements, development teams can implement a temporary defense-in-depth workaround. Adding a global HTTP middleware that inspects incoming request payloads and rejects any request containing the literal value "__missing__" prevents the sentinel collision from reaching the validator:
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class RejectMissingSentinelInput
{
/**
* Handle an incoming request and block payloads containing the '__missing__' sentinel.
*/
public function handle(Request $request, Closure $next): Response
{
$ containsSentinel = false;
$input = $request->all();
array_walk_recursive($input, function ($value) use (&$containsSentinel) {
if ($value === '__missing__') {
$containsSentinel = true;
}
});
if ($containsSentinel) {
abort(422, 'Unprocessable input value detected.');
}
return $next($request);
}
}Using array_walk_recursive() on $request->all() inspects all leaf values across arbitrarily nested arrays and JSON structures without falsely triggering on substrings (such as a comment field containing the sentence "The file __missing__ was not found"). Once laravel/framework is upgraded to 12.72.0 or 13.43.0, this custom middleware can be safely removed.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
laravel/framework Laravel | < 12.72.0 | 12.72.0 |
laravel/framework Laravel | >= 13.0.0, < 13.43.0 | 13.43.0 |
| Attribute | Detail |
|---|---|
| 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 |
The software misinterprets an input, whether from an attacker or another product, in a security-relevant fashion by using an in-band literal string to denote an out-of-band operational condition.
CVE-2026-142643 is a type confusion vulnerability in the Laravel Framework validation subsystem (Illuminate\Validation\DatabasePresenceVerifier) affecting versions prior to 12.73.0 and 13.43.0. When processing JSON-encoded HTTP requests, the framework preserves native integer and boolean scalar types and passes them unchanged into SQL parameter bindings for 'exists' and 'unique' validation rules. On MySQL and MariaDB databases, comparing a string column against an integer value triggers implicit numeric type coercion, causing any non-numeric string entry to evaluate to zero. Consequently, an unauthenticated remote attacker can submit an integer zero or boolean false in a JSON payload to bypass record-existence validation rules without knowing a valid string identifier.
CVE-2026-142649 (also tracked as GHSA-h2hg-mfj4-rg7q) is an input validation bypass vulnerability affecting the validation subsystem of the Laravel web application framework (laravel/framework). Specifically, the validateIn method in src/Illuminate/Validation/Concerns/ValidatesAttributes.php performs non-strict comparisons when evaluating scalar input values against defined allowlists for the 'in', 'Rule::in', and 'not_in' validation rules. Because PHP's native in_array() function defaults to loose equality (==) when the third parameter ($strict) is omitted, numeric strings with non-canonical representations—such as leading or trailing whitespace, embedded newlines, leading zeros, positive signs, decimal points, or scientific notation—evaluate as equal to standard numeric allowlist entries. Furthermore, because Laravel's validated() and valid() accessor methods return the original, un-canonicalized input string rather than the matched allowlist token, unvalidated characters and unexpected string formats propagate directly into downstream business logic, database queries, and state enforcement checks.
An authenticated SQL injection vulnerability exists in Agenta prior to version 0.122.5 within the tracing database query layer. The full-text content filter handler in api/oss/src/dbs/postgres/tracing/utils.py interpolates user-supplied search strings directly into a SQLAlchemy text() construct without parameter binding or escaping. This flaw allows an authenticated user with read access to spans in a single project to execute arbitrary SQL conditions against the tracing database, bypassing project and tenant isolation boundaries to exfiltrate trace data across the entire platform.
The Samsung/CredSweeper GitHub Action between versions 1.11.6 and 1.16.x contains an argument injection vulnerability (CWE-88) in its composite action definition. The action accepts unvalidated strings for the 'error' and 'hashed' input parameters and passes them directly as command-line arguments to the CredSweeper CLI. An attacker capable of controlling these action inputs can inject the '--log_config' flag pointing to an attacker-controlled YAML file. Because CredSweeper loads this configuration using Python's logging.config.dictConfig, which supports instantiating arbitrary callables via the '()' factory key, this flaw leads to arbitrary command execution within the GitHub Actions runner environment.
CVE-2026-92542 (GHSA-6m9p-4h64-m6vh) is an authentication bypass by spoofing and confused deputy vulnerability in the overlay network driver (libnetwork) of Docker Engine and Moby. The firewall rules responsible for marking outgoing VXLAN datagrams for IPsec encryption fail to distinguish between authentic VXLAN packets generated by the Linux kernel and forged UDP packets sent by local userspace processes. Consequently, an unprivileged user or process executing in the host network namespace of a Linux Docker Swarm node can transmit crafted VXLAN datagrams that the kernel automatically encrypts and routes to peer nodes, enabling blind injection of arbitrary Ethernet frames into encrypted overlay networks.
A critical authentication bypass vulnerability exists in Pion DTLS (versions 2.1.0 through 3.1.13 and 4.0.0-rc.1 through 4.0.0-rc.5) within the DTLS 1.2 server handshake state machine. When a server is configured with a SessionStore and negotiates a certificate-based cipher suite, it prematurely persists the session ID and derived master secret immediately after processing the ClientKeyExchange message. Because this cache write occurs before validating the client's Certificate, CertificateVerify, and Finished messages, an unauthenticated remote attacker can abandon an incomplete initial handshake and immediately perform an abbreviated session resumption handshake using the derived master secret, bypassing mandatory client certificate authentication (RequireAnyClientCert, RequireAndVerifyClientCert) and custom VerifyConnection callbacks.