{"schemaVersion":4,"id":"CVE-2026-142650","aliases":[],"status":"published","duplicateOf":null,"title":"Laravel: SQL Injection in Laravel PostgreSQL Query Grammar","description":"Laravel is a web application framework. Prior to 13.24.0 and 12.67.0, Laravel's PostgreSQL Query Grammar does not escape embedded single quotes in JSON path attributes when compiling non-raw Query Builder APIs. A user-influenced JSON path / identifier segment can break out of the single-quoted SQL string literal context used by PostgreSQL JSON operators. This can lead to SQL structure injection and WHERE-condition manipulation when an application passes user-influenced JSON path input into affected Query Builder APIs. This issue is fixed in versions 13.24.0 and 12.67.0.","dates":{"published":"2026-12-02T23:07:45.052Z","modified":"2026-12-03T15:10:25.094Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00689,"percentile":0.54176,"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.0051,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00689,"percentile":0.54176}],"last30":[{"date":"2026-12-03T00:00:00.000Z","score":0.0051,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00689,"percentile":0.54176}]},"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-89","name":"Improper Neutralization of Special Elements used in an SQL Command","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"laravel","product":"framework","name":"framework","label":"framework","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 13.0.0, < 13.24.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"13.0.0","startInclusive":true,"end":"13.24.0","endInclusive":false}},{"text":"< 12.67.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"12.67.0","endInclusive":false}}],"versionsText":"≥ 13.0.0, < 13.24.0 | < 12.67.0","eol":null,"hubHref":"/vendor/laravel/framework"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/laravel/framework/security/advisories/GHSA-hmj2-jgmw-v4m4","label":"github.com/laravel/framework/security/advisories/GHSA-hmj2-jgmw-v4m4","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/laravel/framework/pull/60923","label":"github.com/laravel/framework/pull/60923","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/pull/61192","label":"github.com/laravel/framework/pull/61192","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/commit/344fcc35a76eb294aeb67ac4b1b9c5b25d2a38f6","label":"github.com/laravel/framework/commit/344fcc35a76eb294aeb67ac4b1b9c5b25d2a38f6","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/commit/d74baa412fc57ccbd19cfb64ecd33f38c42ee352","label":"github.com/laravel/framework/commit/d74baa412fc57ccbd19cfb64ecd33f38c42ee352","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/releases/tag/v12.67.0","label":"github.com/laravel/framework/releases/tag/v12.67.0","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/laravel/framework/releases/tag/v13.24.0","label":"github.com/laravel/framework/releases/tag/v13.24.0","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-02T23:07:45.052Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-03T15:10:25.094Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,59],"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.00689,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-03T15:10:25.094Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-03T15:10:25.094Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-03T15:09:36.851Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00689,"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:09:02.717Z","stale":false,"partial":false}}