SQL injection in MapServer - CVE-2026-77328
Published: August 27, 2026
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.