CVE-2025-59431 MapServer - WFS XML Filter Query SQL injection

High 8.9 Published Updated

Attackers can manipulate backend database queries via SQL injection in MapServer's WFS XML Filter Query, potentially reading or modifying data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59431?

CVE-2025-59431 is a high-severity SQL injection vulnerability in MapServer, published on 19 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

MapServer is a system for developing web-based GIS applications. Prior to 8.4.1, the XML Filter Query directive PropertyName is vulnerably to Boolean-based SQL injection. It seems like expression checking is bypassed by introducing double quote characters in the PropertyName. Allowing to manipulate backend database queries. This vulnerability is fixed in 8.4.1.

Weakness: CWE-89

Which versions are affected by CVE-2025-59431?

It affects 1 product.

Products include Osgeo Mapserver.

How do I fix CVE-2025-59431?

Upgrade to a fixed version.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2025-59431 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59431 exists.

Sources

Also known as DEBIAN-CVE-2025-59431, GHSA-256m-rx4h-r55w, UBUNTU-CVE-2025-59431.

Is CVE-2025-59431 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free