{"schemaVersion":3,"id":"CVE-2026-76904","aliases":["GHSA-mqjf-5f49-2fjh"],"status":"published","duplicateOf":null,"title":null,"description":"GeoTools is an open source Java library that provides tools for geospatial data. Starting in version 30.5 and prior to versions 33.6, 34.5, and 33.6, an SQL Injection Vulnerability is present when executing OGC Filters with PostGIS DataStore implementation: `jsonArrayContains` function; Requires PostGIS 12 or greater with a String or JSON field. For PostGIS 12 and greater `jsonArrayContains(<column>, <pointer>, <value>)` function writes `<value>` into generated SQL without escaping. Patches are available in versions 33.6, 34.5, and 33.6. No known workaround is available. To limit scope of SQL Injection the PostGIS connection pool should be configured with limited rights.","dates":{"published":"2026-08-21T20:13:20.536Z","modified":"2026-08-27T16:24:50.888Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03976,"percentile":0.90428,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":2.1849999999999996,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01791},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.03976,"percentile":0.90428}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01791,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02403,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.03976,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.03976,"percentile":0.90428}]},"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 ('SQL Injection')","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":"geotools","product":"geotools","name":"geotools","label":"geotools","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"= 35.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 34.0, < 34.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 30.5, < 33.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"= 35.0 | ≥ 34.0, < 34.5 | ≥ 30.5, < 33.6","eol":null,"hubHref":"/vendor/geotools/geotools"},{"vendor":"org.geotools.jdbc","product":"gt-jdbc-postgis","name":"org.geotools.jdbc:gt-jdbc-postgis","label":"gt-jdbc-postgis","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.geotools.jdbc/gt-jdbc-postgis","purlType":"maven","versions":[{"text":"≥ 35.0, < 35.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 34.0, < 34.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 30.5, < 33.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 35.0, < 35.1 | ≥ 34.0, < 34.5 | ≥ 30.5, < 33.6","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh","label":"github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/geotools/geotools/pull/5829","label":"github.com/geotools/geotools/pull/5829","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176","label":"github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/geotools/geotools/releases/tag/33.6","label":"github.com/geotools/geotools/releases/tag/33.6","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/geotools/geotools/releases/tag/34.5","label":"github.com/geotools/geotools/releases/tag/34.5","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/geotools/geotools/releases/tag/35.1","label":"github.com/geotools/geotools/releases/tag/35.1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7589","label":"osgeo-org.atlassian.net/browse/GEOT-7589","hostname":"osgeo-org.atlassian.net","tags":["X Refsource MISC","WEB"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7958","label":"osgeo-org.atlassian.net/browse/GEOT-7958","hostname":"osgeo-org.atlassian.net","tags":["X Refsource MISC","WEB"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7959","label":"osgeo-org.atlassian.net/browse/GEOT-7959","hostname":"osgeo-org.atlassian.net","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/geotools/geotools","label":"github.com/geotools/geotools","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-21T20:13:20.536Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-27T16:24:50.888Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T16:08:23.763Z","stale":false,"partial":false}}