Vulnerability · Published Sep 19, 2025 · Assigned by GitHub_M

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

High 8.9

In plain English

A high-severity SQL injection in MapServer from MapServer. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.9High
Exploit odds (30 days)0.4%top 64.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12mapserver8.0.0-3+deb12u1DEBIAN-CVE-2025-59431
Debian:13mapserver8.4.0-4+deb13u1DEBIAN-CVE-2025-59431
Debian:14mapserver8.4.1-1DEBIAN-CVE-2025-59431
Ubuntu:22.04:LTSmapserverno fix listedUBUNTU-CVE-2025-59431
Ubuntu:24.04:LTSmapserverno fix listedUBUNTU-CVE-2025-59431
Ubuntu:25.10mapserverno fix listedUBUNTU-CVE-2025-59431
Ubuntu:26.04:LTSmapserverno fix listedUBUNTU-CVE-2025-59431
Ubuntu:26.10mapserverno fix listedUBUNTU-CVE-2025-59431

Affected products (as reported)

VendorProductVersions
MapServer MapServer < 8.4.1

Weakness: CWE-89 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

References