Skip to content

CVE-2026-54354 — MapServer is a system for developing web-based GIS applications.

Key facts

CVE-2026-54354 is a High (8.2) vulnerability: MapServer is a system for developing web-based GIS applications.. This entry ships a detection-only PoC and a Docker test lab.

CVE CVE-2026-54354
Severity High (8.2)
Detection / prevention —
PoC poc.py
Source 2026/CVE-2026-54354/

Details

English | 한국어

Description

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__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.

Vulnerability Details

Property Value
CVE ID CVE-2026-54354
Type SQLI
CVSS Score 8.2

Proof of Concept

Download

# Download PoC script
curl -O https://raw.githubusercontent.com/fankh/vulnerability-poc/main/2026/CVE-2026-54354/poc.py

Usage

# Run PoC against target
python3 poc.py --target <TARGET_URL>

# With authentication
python3 poc.py --target <TARGET_URL> --username <USER> --password <PASS>

⚠️ Warning: This PoC is for authorized security testing only. It uses detection-only techniques and does not exploit or damage target systems.

Test Lab

This repository includes a Docker-based test environment with both vulnerable and patched applications.

Quick Start

# Clone and navigate to CVE directory
cd CVE-2026-54354

# Start both applications
docker-compose up -d

# Run tests
./run-tests.sh    # Linux/Mac
./run-tests.ps1   # Windows PowerShell

Application Endpoints

Application URL Status
Vulnerable App http://localhost:8080 Shows vulnerability
Patched App http://localhost:8081 Demonstrates fix

Directory Structure

├── README.md           # English documentation
├── README_KO.md        # Korean documentation
├── poc.py              # PoC detection script
├── docker-compose.yml  # Container orchestration
├── run-tests.sh        # Linux/Mac test runner
├── run-tests.ps1       # Windows test runner
├── vulnerable-app/     # Vulnerable version
│   ├── app.py
│   ├── Dockerfile
│   └── requirements.txt
└── patched-app/        # Fixed version
    ├── app.py
    ├── Dockerfile
    └── requirements.txt

References

  • https://github.com/MapServer/MapServer/commit/65f1b53c258df2abdf6ce1f437c29e75e9976247
  • https://github.com/MapServer/MapServer/commit/bd59d49779d2ecc64ca8dc1281c53231a50b698e
  • https://github.com/MapServer/MapServer/pull/7516
  • https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4
  • https://github.com/MapServer/MapServer/security/advisories/GHSA-xp29-8wp5-wc3p
  • https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6

Generated by PoC Generator on 2026-09-18T12:45:09.400381636

Frequently asked questions

What is CVE-2026-54354?

CVE-2026-54354 is a High (8.2) vulnerability: MapServer is a system for developing web-based GIS applications.. This entry ships a detection-only PoC and a Docker test lab.

How do I detect CVE-2026-54354?

Run the detection-only PoC included with this entry against your Docker test lab to confirm whether a target is affected; pair it with your own IDS logging.

How do I block or mitigate CVE-2026-54354?

Upgrade to a fixed version per the vendor advisory; the NVD record lists the affected versions. Use the included PoC to verify your remediation.


For authorized security testing and research only. See the full source and NVD record.