{"id":"CVE-2026-76904","published":"2026-08-21T20:13:20Z","modified":"2026-08-27T16:24:50Z","title":"GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers","vendor":"geotools","product":"geotools","tier":"core","eol":null,"affectedVersions":[{"vendor":"geotools","product":"geotools","versions":["= 35.0",">= 34.0, < 34.5",">= 30.5, < 33.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-25T03:56:51.618521Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The flaw is an SQL injection in the jsonArrayContains filter function of GeoTools, an open source Java geospatial library, affecting its PostGIS DataStore implementation. An unauthenticated remote attacker can reach it over the network with no user interaction when the application runs OGC Filters against PostGIS layers with PostGIS 12 or greater and a String or JSON field, because the value passed to jsonArrayContains is written into generated SQL without escaping.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:11:55Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.29775,"percentile":0.98616,"date":"2026-11-26","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-08-21","exploitedFirstSeen":"2026-08-21","ransomware":false,"evidence":[{"url":"https://previdian.com/CVE-2026-76904","date":"2026-08-21"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2026-76904","date":"2026-08-24"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/geotools/geotools/pull/5829","tags":["x_refsource_MISC"]},{"url":"https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176","tags":["x_refsource_MISC"]},{"url":"https://github.com/geotools/geotools/releases/tag/33.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/geotools/geotools/releases/tag/34.5","tags":["x_refsource_MISC"]},{"url":"https://github.com/geotools/geotools/releases/tag/35.1","tags":["x_refsource_MISC"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7589","tags":["x_refsource_MISC"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7958","tags":["x_refsource_MISC"]},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7959","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.geotools.jdbc:gt-jdbc-postgis","vulnerableRanges":[">=35.0, <35.1",">=34.0, <34.5",">=30.5, <33.6"],"patched":["35.1","34.5","33.6"],"from":["GHSA-mqjf-5f49-2fjh"],"provenance":"source"}],"advisories":[{"id":"GHSA-mqjf-5f49-2fjh","url":"https://github.com/advisories/GHSA-mqjf-5f49-2fjh","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools.jdbc:gt-jdbc-postgis","vulnerableRanges":[">=35.0, <35.1"],"patched":["35.1"],"provenance":"source","from":"GHSA"},{"id":"GHSA-mqjf-5f49-2fjh","url":"https://github.com/advisories/GHSA-mqjf-5f49-2fjh","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools.jdbc:gt-jdbc-postgis","vulnerableRanges":[">=34.0, <34.5"],"patched":["34.5"],"provenance":"source","from":"GHSA"},{"id":"GHSA-mqjf-5f49-2fjh","url":"https://github.com/advisories/GHSA-mqjf-5f49-2fjh","severity":"CRITICAL","ecosystem":"Maven","package":"org.geotools.jdbc:gt-jdbc-postgis","vulnerableRanges":[">=30.5, <33.6"],"patched":["33.6"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2026-64133","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-64133","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2026-08-16","earliestUrl":"https://github.com/YonLiud/CVE-2026-76904","repos":[{"name":"YonLiud/CVE-2026-76904","url":"https://github.com/YonLiud/CVE-2026-76904","stars":7,"created":"2026-08-16"},{"name":"bickZero93/CVE-2026-76904","url":"https://github.com/bickZero93/CVE-2026-76904","stars":1,"created":"2026-08-26"},{"name":"himfatihoner/CVE-2026-76904","url":"https://github.com/himfatihoner/CVE-2026-76904","stars":0,"created":"2026-11-26"}]},"nuclei":[{"id":"CVE-2026-76904","name":"GeoServer jsonArrayContains CQL Filter - SQL Injection","severity":"critical","path":"http/cves/2026/CVE-2026-76904.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-76904.yaml"}],"first":{"date":"2026-08-16","source":"PoC-in-GitHub","url":"https://github.com/YonLiud/CVE-2026-76904"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-08-16","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/YonLiud/CVE-2026-76904","provenance":"source"},{"date":"2026-08-21","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2026-76904","provenance":"source"},{"date":"2026-08-21","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://previdian.com/CVE-2026-76904","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":71.6,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 97 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.72,"detail":"percentile 0.9862"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"3 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-geotools-cve-2023-25158","parents":[{"from":"CVE-2023-25158","to":"CVE-2026-76904","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["modules/plugin/jdbc/jdbc-postgis/src/main/java/org/geotools/data/postgis/FilterToSqlHelper.java"],"commits":["https://github.com/geotools/geotools/commit/64fb4c47f43ca818c2fe96a94651bff1b3b3ed2b","https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.42,"basis":"same product + CWE + description similarity"}]}]}}