{"api_version":"1","generated_at":"2026-08-22T02:20:20+00:00","cve":"CVE-2026-76904","urls":{"html":"https://cve.report/CVE-2026-76904","api":"https://cve.report/api/cve/CVE-2026-76904.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-76904","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-76904"},"summary":{"title":"GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers","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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-08-21 21:17:06","updated_at":"2026-08-21 21:17:06"},"problem_types":["CWE-89","CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","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","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","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","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/geotools/geotools/releases/tag/34.5","name":"https://github.com/geotools/geotools/releases/tag/34.5","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/geotools/geotools/pull/5829","name":"https://github.com/geotools/geotools/pull/5829","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/geotools/geotools/releases/tag/33.6","name":"https://github.com/geotools/geotools/releases/tag/33.6","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh","name":"https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/geotools/geotools/releases/tag/35.1","name":"https://github.com/geotools/geotools/releases/tag/35.1","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176","name":"https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7589","name":"https://osgeo-org.atlassian.net/browse/GEOT-7589","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7959","name":"https://osgeo-org.atlassian.net/browse/GEOT-7959","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://osgeo-org.atlassian.net/browse/GEOT-7958","name":"https://osgeo-org.atlassian.net/browse/GEOT-7958","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-76904","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76904","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"geotools","product":"geotools","version":"affected = 35.0","platforms":[]},{"source":"CNA","vendor":"geotools","product":"geotools","version":"affected >= 34.0, < 34.5","platforms":[]},{"source":"CNA","vendor":"geotools","product":"geotools","version":"affected >= 30.5, < 33.6","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"geotools","vendor":"geotools","versions":[{"status":"affected","version":"= 35.0"},{"status":"affected","version":">= 34.0, < 34.5"},{"status":"affected","version":">= 30.5, < 33.6"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-08-21T20:14:33.940Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh","tags":["x_refsource_CONFIRM"],"url":"https://github.com/geotools/geotools/security/advisories/GHSA-mqjf-5f49-2fjh"},{"name":"https://github.com/geotools/geotools/pull/5829","tags":["x_refsource_MISC"],"url":"https://github.com/geotools/geotools/pull/5829"},{"name":"https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176","tags":["x_refsource_MISC"],"url":"https://github.com/geotools/geotools/commit/d821c4d321dd91c22e31fcd5b1ce676645da5176"},{"name":"https://github.com/geotools/geotools/releases/tag/33.6","tags":["x_refsource_MISC"],"url":"https://github.com/geotools/geotools/releases/tag/33.6"},{"name":"https://github.com/geotools/geotools/releases/tag/34.5","tags":["x_refsource_MISC"],"url":"https://github.com/geotools/geotools/releases/tag/34.5"},{"name":"https://github.com/geotools/geotools/releases/tag/35.1","tags":["x_refsource_MISC"],"url":"https://github.com/geotools/geotools/releases/tag/35.1"},{"name":"https://osgeo-org.atlassian.net/browse/GEOT-7589","tags":["x_refsource_MISC"],"url":"https://osgeo-org.atlassian.net/browse/GEOT-7589"},{"name":"https://osgeo-org.atlassian.net/browse/GEOT-7958","tags":["x_refsource_MISC"],"url":"https://osgeo-org.atlassian.net/browse/GEOT-7958"},{"name":"https://osgeo-org.atlassian.net/browse/GEOT-7959","tags":["x_refsource_MISC"],"url":"https://osgeo-org.atlassian.net/browse/GEOT-7959"}],"source":{"advisory":"GHSA-mqjf-5f49-2fjh","discovery":"UNKNOWN"},"title":"GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-76904","datePublished":"2026-08-21T20:13:20.536Z","dateReserved":"2026-08-19T22:43:14.891Z","dateUpdated":"2026-08-21T20:14:33.940Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-08-21 21:17:06","lastModifiedDate":"2026-08-21 21:17:06","problem_types":["CWE-89","CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"76904","Ordinal":"1","Title":"GeoTools has unauthenticated SQL injection in the jsonArrayConta","CVE":"CVE-2026-76904","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"76904","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"GeoTools has unauthenticated SQL injection in the jsonArrayConta"}]}}}