CVE-2025-59431CWE-89sql-injection

CVE-2025-59431

Critical · published September 20, 2025

CVSS v3.1
9.8
EPSS
0%
Percentile
34.7
In the wild
Unconfirmed
What it is

⚡ An unsuspecting `PropertyName` can be the gateway for a crafty SQL injection! Before version 8.4.1 of MapServer, attackers could twist backend queries by cleverly using double quote characters. 🔥 Imagine a restaurant menu where a sneaky diner can rephrase any dish to their liking without the chef noticing — that’s how this SQL injection works! By manipulating the input, the attacker bypasses the usual checks, just like a diner getting a free upgrade to a lobster dish without paying for it. An attacker could exploit this SQL injection to manipulate database queries, potentially leading to unauthorized data access, data alteration, or even data deletion. This could compromise the entire application’s integrity, leaving sensitive information vulnerable. Yikes!

Put simply

Imagine a restaurant menu where a sneaky diner can rephrase any dish to their liking without the chef noticing — that’s how this SQL injection works! By manipulating the input, the attacker bypasses the usual checks, just like a diner getting a free upgrade to a lobster dish without paying for it. This vulnerability occurs when the XML Filter Query directive PropertyName in MapServer allows the introduction of double quote characters, bypassing expression checks and enabling Boolean-based SQL injection to manipulate backend database queries.

What to do

An attacker could exploit this SQL injection to manipulate database queries, potentially leading to unauthorized data access, data alteration, or even data deletion. This could compromise the entire application’s integrity, leaving sensitive information vulnerable. Yikes! To protect your system, upgrade to MapServer version 8.4.1 or later immediately. Additionally, review your input validation measures to ensure they thoroughly sanitize inputs. It’s critical to stay one step ahead! You’ve got this! With these steps, you’ll lock down your application in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00415 · 34.7th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2025-09-20T00:15Z
Affected products (1)
ProductVersionsFixed in
osgeo/mapserverall versions—
References (1)
EPSS history
Timeline
  • 19 SEP 19:29Z
    MapServer - WFS XML Filter Query SQL injection
    cvelistv5