cve.bz

CVE-2026-54354 mapserver mapserver: SQL Injection

8.2 highEPSS 0.7%

High (8.2) in mapserver mapserver. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
MapServer is a system for developing web-based GIS applications. Prior to 8.6.4, MapServer's PostGIS runtime filter translation in src/mappostgis.cpp and msPostGISLayerTranslateFilter() treats a filteritem as numeric when CONNECTIONTYPE POSTGIS and metadata such as gml_<item>_type=Integer are configured, but it does not verify that attacker-controlled CGI qstring or OGC API Features featureId input is a numeric literal. The unquoted input is concatenated into the generated PostgreSQL/PostGIS predicate, allowing an unauthenticated remote attacker with access to an affected query endpoint to bypass predicates, enumerate unintended records, perform boolean-based or time-based SQL injection, and increase database load. The issue does not by itself establish database modification capabilities. This issue is fixed in version 8.6.4.

Severity

CVSS 3.1

8.2 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-09-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-54354 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54354?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54354?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54354 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MapServer>= 8.4.0, < 8.6.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13mapserverno fix listedDEBIAN-CVE-2026-54354
Debian14mapserver8.6.4-1DEBIAN-CVE-2026-54354
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 moremapserverno fix listedUBUNTU-CVE-2026-54354

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important severity because it enables unauthenticated remote attackers to execute arbitrary SQL queries across network boundaries, threatening backend database confidentiality and availability without requiring user interaction or elevated privileges. While attackers can bypass query filters to extract sensitive information or induce heavy database processing, the flaw requires specific PostGIS connection metadata configurations and does not inherently allow database modification or arbitrary code execution on the host. MapServer is not distributed with Red Hat Enterprise Linux core repositories, and builds provided through Fedora and EPEL do not include the vulnerable code.

Red Hat's mitigation

To mitigate this issue, restrict network access to the MapServer instance, especially the affected query endpoint, to trusted clients only. If the PostGIS feature is not required, consider disabling it or reconfiguring MapServer to avoid the vulnerable PostGIS connection and GML metadata settings. Implementing a firewall rule to limit access to the MapServer port can reduce exposure.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54354.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON