{"id":"CVE-2026-142637","aliases":["GHSA-ch34-gjmh-c4hp"],"url":"https://o3.security/vulnerability/CVE-2026-142637","summary":"Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values","details":"### Impact\n\nWhen `Rule::exists()` or `Rule::unique()` is scoped with the fluent `where()` method, the condition is serialized into the string rule format and parsed again. A scalar value of `NULL`, `NOT_NULL`, or one starting with `!` could be evaluated as an IS NULL, IS NOT NULL, or not-equal predicate instead of a literal comparison. If an attacker can influence a scope value, such as a tenant key, and the application relies on the rule to verify ownership of a referenced record, the validation can accept records from other scopes. For `unique`, the scope can be widened. Applications that use independent authorization checks or closure-based `where()` conditions are not affected in the same way.\n\n### Patches\n\nA fix that makes the validator read conditions from the rule object so `where()` values are compared literally is proposed in laravel/framework pull requests 62425 (13.x) and 62426 (12.x).\n\n### Workarounds\n\nDo not pass user-influenced values to the scalar `where()` form. Use a closure-based `where()` and perform independent ownership authorization of referenced records.","published":"2026-12-02T22:42:47.618Z","modified":"2026-12-03T21:02:18.824506683Z","cvss":{"score":4.8,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"13.43.0"},{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"12.73.0"}],"fix":{"url":"https://github.com/laravel/framework/commit/029e3a4ceb0c8b7e8394639b161e7d4ef906af54","label":"laravel/framework@029e3a4"},"references":[{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.73.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.43.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142637.json"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-ch34-gjmh-c4hp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142637"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/029e3a4ceb0c8b7e8394639b161e7d4ef906af54"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/ef1821b33245d58631784ac2093aed0c5bb91242"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62425"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62426"},{"type":"PACKAGE","url":"https://github.com/laravel/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:02:18.824506683Z"}}