CVE-2026-77328
MapServer SQL injection in PostgreSQL JOIN support
An attacker can alter PostgreSQL queries to read unrelated database records over the network without logging in.
Texto original en inglés · Ver en español
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-77328 divulgada · CVSS 6.9 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
In MapServer, when PostgreSQL JOIN support is enabled, an attacker who can control a source feature attribute can inject SQL that alters the intended query, returning unintended rows and JOIN attributes and potentially exposing data from unrelated PostgreSQL records. The flaw can be reached remotely over the network without logging in and without any user action.
Descripción original del registro (GitHub_M)
MapServer is a system for developing web-based GIS applications. Prior to 8.6.5, MapServer's PostgreSQL JOIN implementation in src/mappostgresql.c copies the source layer attribute selected by JOIN FROM into joininfo->from_value and embeds it without parameterization or escaping into a dynamically generated PostgreSQL query executed by PQexec(). When PostgreSQL JOIN support is enabled, an attacker who can control that source feature attribute can inject quote characters and SQL operators that alter the intended WHERE predicate. This second-order injection can cause unintended rows and JOIN attributes to be returned, potentially exposing information from unrelated PostgreSQL records. This issue is fixed in version 8.6.5.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
MapServer |
Corregida | 8.6.5 | — | — |
8.6.5Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/MapServer/MapServer/security/advisories/GHSA-m3xh-ccmh-x8rwhttps://github.com/MapServer/MapServer/pull/7546https://github.com/MapServer/MapServer/pull/7566https://github.com/MapServer/MapServer/commit/05babb88314b8f022eb47a3ab1a00eb37f92085fhttps://github.com/MapServer/MapServer/commit/a39a299a03a767dd966bb40caf044539e7813bcehttps://github.com/MapServer/MapServer/releases/tag/rel-8-6-5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
