SQL injection in MapServer - CVE-2026-77328

 

SQL injection in MapServer - CVE-2026-77328

Published: August 27, 2026


Vulnerability identifier: #VU146012
CSH Severity: Low
CVSS v4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-77328
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to SQL injection in the PostgreSQL JOIN implementation in src/mappostgresql.c when processing a JOIN configured with CONNECTIONTYPE POSTGRESQL using an attacker-influenced source layer attribute value. A remote user can supply a crafted source layer attribute value that is later embedded into a dynamically generated SQL query to disclose sensitive information.

Only instances with PostgreSQL JOIN support enabled are vulnerable. The issue is second-order because the payload is stored in the source layer attribute and later reused when a request triggers JOIN processing.


Affected software

MapServer

How to mitigate CVE-2026-77328

Install security update from vendor's website.

MapServer - update to 8.6.5

External References

Related Security Bulletins