Vulnerability DatabaseCVE-2026-142637

CVE-2026-142637: 
Laravel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Identify target application: Locate a Laravel application (versions < 12.73.0 or 13.0.0–13.42.x) that uses Rule::exists() or Rule::unique() with a fluent where() scope tied to a user-controlled value such as a tenant ID or ownership key.
  2. Analyze validation logic: Determine which form fields are validated with scoped 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.
  3. Craft a reserved predicate value: Supply a scope value that is a reserved token — specifically NULL, NOT_NULL, or a string beginning with ! (e.g., !legitimate_tenant) — as the value for the where() scope parameter.
  4. Submit the crafted request: Send an HTTP request with the manipulated scope value. The validator serializes the 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.
  5. Bypass ownership check: The validation passes for records that satisfy the misinterpreted predicate (e.g., all records where the scope column is not null), allowing the attacker to reference records belonging to other tenants or bypass uniqueness constraints (GitHub Advisory, PR #62425).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


Source: This report was generated using AI

Related Laravel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-142642MEDIUM5.4
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142644MEDIUM5.3
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142643MEDIUM5.3
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142647MEDIUM4.8
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026
CVE-2026-142645MEDIUM4.8
  • Laravel logoLaravel
  • laravel/framework
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management