
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-142637 is a validation bypass vulnerability in the Laravel PHP web application framework affecting Rule::exists() and Rule::unique() when scoped with the fluent where() method. Scalar values of NULL, NOT_NULL, or strings beginning with ! passed to where() are serialized into a string rule format and re-parsed, causing them to be interpreted as SQL predicates (IS NULL, IS NOT NULL, or not-equal) rather than literal string comparisons. This affects Laravel framework versions prior to 12.73.0 and versions 13.0.0 through 13.42.x (prior to 13.43.0). It carries a CVSS v3.1 base score of 4.8 (Medium) (GitHub Advisory, Feedly).
The root cause is classified as CWE-943 (Improper Neutralization of Special Elements in Data Query Logic). When Rule::exists() or Rule::unique() serializes fluent where() conditions into a string rule format for re-parsing, reserved tokens such as NULL, NOT_NULL, and values prefixed with ! are misinterpreted by the validator as SQL predicates rather than literal values — for example, ->where('status', 'NULL') executes whereNull('status') and ->where('code', '!abc') executes code != 'abc'. An attacker who can influence a scope value (e.g., a tenant key passed to where()) can cause the validation to accept records belonging to other tenants or widen uniqueness checks. The fix, implemented in PRs #62425 (13.x) and #62426 (12.x), makes the validator read conditions directly from the rule object via a new queryConditions() method, bypassing the lossy string serialization round-trip (GitHub Advisory, PR #62425, PR #62426).
Successful exploitation allows an attacker to bypass record ownership validation in multi-tenant or scoped applications, potentially accessing or referencing database records belonging to other tenants or users. For Rule::exists(), this means a validation rule intended to confirm a record belongs to the current tenant could pass for records from other tenants, enabling unauthorized data access (low confidentiality impact). For Rule::unique(), the scope of the uniqueness check can be widened, potentially allowing duplicate records to be inserted across tenant boundaries (low integrity impact). Availability is not impacted, and applications using independent authorization checks or closure-based where() conditions are not affected (GitHub Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported as of the disclosure date. The EPSS score is 0.0, indicating very low current exploitation probability, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires high attack complexity — the attacker must be able to influence a specific scope value (such as a tenant key) passed to the scalar where() form of a validation rule, and the application must rely solely on that rule for ownership verification (Feedly, GitHub Advisory).
Rule::exists() or Rule::unique() with a fluent where() scope tied to a user-controlled value such as a tenant ID or ownership key.exists or unique rules, and identify whether the scope value (e.g., tenant_id) is derived from user-supplied input or a session value the attacker can manipulate.NULL, NOT_NULL, or a string beginning with ! (e.g., !legitimate_tenant) — as the value for the where() scope parameter.where() condition to a string and re-parses it, interpreting the reserved token as an SQL predicate (IS NULL, IS NOT NULL, or !=) rather than a literal comparison.Upgrade to Laravel framework version 13.43.0 or 12.73.0, which fix the issue by passing fluent where() conditions directly to the presence verifier without string serialization. If immediate upgrade is not possible, two workarounds are available: (1) avoid passing user-influenced values to the scalar where() form of Rule::exists() or Rule::unique(); (2) use closure-based where() conditions instead of scalar values, and implement independent ownership authorization checks for referenced records. The fix was merged on November 11, 2026, and tagged in the respective releases (GitHub Advisory, v12.73.0 Release, v13.43.0 Release).
The vulnerability was reported by researcher yanpaing-dev and the advisory was published by olivernybroe on the Laravel GitHub repository. The fix was authored by pushpak1300 (Pushpak Chhajed) and merged by Laravel creator Taylor Otwell on November 11, 2026. Community discussion noted a related downstream impact on the laravel-fluent-validation package, which required its own fix to correctly handle the updated where() clause storage format introduced by this patch (GitHub Advisory, PR #62425).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."