{"schemaVersion":4,"id":"CVE-2026-142643","aliases":["CGA-gj3f-8g62-9q9v","CGA-grv7-qpmm-q8px"],"status":"published","duplicateOf":null,"title":"Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB","description":"Laravel is a web application framework. Prior to 13.43.0 and 12.73.0, The exists and unique validation rules passed integer and boolean values from the request unchanged to the database query. On MySQL and MariaDB, comparing a string column with an integer casts the column to a number. As a result, JSON input such as 0, false or [0] could satisfy a rule like required|exists:invites,code on a non-numeric string column without a valid value. An unauthenticated attacker who can submit JSON could bypass \"must reference an existing record\" checks. PostgreSQL and SQLite are not affected. Form-encoded input is always a string and is not affected. This issue is fixed in versions 13.43.0 and 12.73.0.","dates":{"published":"2026-12-02T22:51:17.388Z","modified":"2026-12-03T16:40:10.309Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0044,"percentile":0.39996,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-03T00:00:00.000Z","score":0.0044,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0044,"percentile":0.39996}],"last30":[{"date":"2026-12-03T00:00:00.000Z","score":0.0044,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0044,"percentile":0.39996}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/843.html"},{"id":"CWE-1287","name":"Improper Validation of Specified Type of Input","description":"The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1287.html"}],"affected":[{"vendor":"chainguard","product":"linuxserver-heimdal","name":"linuxserver-heimdal","label":"linuxserver-heimdal","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/linuxserver-heimdal","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"laravel","product":"framework","name":"framework","label":"framework","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 13.0.0, < 13.43.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"13.0.0","startInclusive":true,"end":"13.43.0","endInclusive":false}},{"text":"< 12.73.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"12.73.0","endInclusive":false}}],"versionsText":"≥ 13.0.0, < 13.43.0 | < 12.73.0","eol":null,"hubHref":"/vendor/laravel/framework"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66","label":"github.com/laravel/framework/security/advisories/GHSA-wwq3-m3j5-wv66","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/laravel/framework/pull/62447","label":"github.com/laravel/framework/pull/62447","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/pull/62448","label":"github.com/laravel/framework/pull/62448","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99","label":"github.com/laravel/framework/commit/2b517db47fca33b9bf48a15287af63702ace3f99","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29","label":"github.com/laravel/framework/commit/a26c3295498fc4de4b878d634fe2a9ae264d9a29","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/releases/tag/v12.73.0","label":"github.com/laravel/framework/releases/tag/v12.73.0","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/releases/tag/v13.43.0","label":"github.com/laravel/framework/releases/tag/v13.43.0","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-02T22:51:17.388Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-03T16:40:10.309Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,53],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0044,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-03T16:40:10.309Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-03T16:40:10.309Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-03T16:39:51.390Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0044,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:19:46.163Z","stale":false,"partial":false}}