CVE Tools

CVE-2026-76904

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

CVE-2026-76904 is an SQL injection in Geotools (CVSS 9.8, Critical).

Exploitation likely. EPSS gives it a 30% chance of exploitation in the next 30 days. No fix published yet.

Check it yourself

Nuclei · 1 template

e.g. GeoServer jsonArrayContains CQL Filter - SQL Injection

Run the check

Published Updated Sources: CVE.org, NVD

What to do

No fixed build or workaround is published yet. Limit exposure and watch for a patch.

  • GeotoolsAffected: = 35.0Upgrade to: not statedAffected: >= 34.0, < 34.5Upgrade to: not statedAffected: >= 30.5, < 33.6Upgrade to: not statedStated by: CVE record

Versions as the sources state them. Full version matrix after sign-in

Steps

Written by AI from the record
  1. Ask your IT team or software vendor if any product you run embeds GeoTools and connects to a PostGIS database.
  2. If yes, check whether that database uses PostGIS version 12 or newer.
  3. Confirm with the vendor whether a patched GeoTools version exists yet — none has been publicly confirmed as of now.
  4. In the meantime, have your database administrator restrict the database account used by the application to the minimum permissions needed (no ability to read/write unrelated tables).
  5. Ask your vendor to disable or block use of the jsonArrayContains filter function until a fix is confirmed.

What it is

From the CVE record

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.

In plain language

Written by AI from the record

GeoTools, a mapping/location-data library used inside other software, has a serious flaw that lets an attacker break into its database through a mapping query without needing a password — if you use software built on GeoTools with a PostGIS map database, you should treat this as urgent.

Unauthenticated SQL injection in GeoTools' jsonArrayContains OGC filter function allows attackers to inject arbitrary SQL into PostGIS-backed queries (PostGIS 12+), fully compromising confidentiality, integrity, and availability of the backing database.

If you're affected

  • Full database compromise
  • Customer/location data exposure
  • Data tampering or deletion
  • Service outage

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS99th
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

30% chance of exploitation activity in the next 30 days, which ranks it in the 99th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Attention now

Sustained.

Lifecycle

12 events over 101 days, from the signal feeds we watch.

  1. Record updated
  2. EPSS band change0 → moderateepss band change
  3. Record updated
  4. Record updated
  5. Record updated
  6. Nuclei check addedrecord updated

Affected products

Technical detail

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Scored 9.8 by NVD.

How it is reached

  • Attack Vector NetworkExploitable remotely over the network without any special conditions
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction NoneNo user interaction needed — fully automated exploitation

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality HighTotal information disclosure — all data in the component is compromised
  • Integrity HighTotal loss of integrity — attacker can modify any data in the component
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2026-76904

Is CVE-2026-76904 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 30%.
Which versions are affected by CVE-2026-76904?
Geotools: = 35.0; >= 34.0, < 34.5; >= 30.5, < 33.6.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Geotools, not every advisory.