Skip to main content
ExploitedNot in CISA KEV yetFix available

CVE-2026-76904

GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers

Exploitation confirmed. First attested on 2026-08-18 by GCVE · previdian, GCVE · shadowserver.

  • Published2026-08-21
  • Fixed in35.1 · 34.5 · 33.6
  • WeaknessCWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-08-1809:07Listed as exploited by GCVEGCVE
  2. 2026-08-1809:07Exploitation first reportedGCVE
  3. 2026-08-2121:17CVE publishedNVD

Versions per branch

OSV
gt-jdbc-postgis
BranchAffectedFixed in
35.x≥ 35.0, < 35.135.1
34.x≥ 34.0, < 34.534.5
33.6≥ 30.5, < 33.633.6

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • geotools
    Affected
    • = = 35.0no fix stated
    • = >= 34.0, < 34.5no fix stated
    • = >= 30.5, < 33.6no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-08-21

Fix

  1. Update gt-jdbc-postgis to 35.1 · 34.5 · 33.6

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2026-08-21
Last Modified
2026-10-14
NVD status
Deferred
GitHub Advisory
GHSA-mqjf-5f49-2fjh

Frequently asked questions

What is CVE-2026-76904?

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.

Is CVE-2026-76904 actively exploited?

Active exploitation of CVE-2026-76904 has not been confirmed. Its EPSS score was 4.0% on 2026-11-09, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-76904?

CVE-2026-76904 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Hear about the next vulnerability in your software

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record