CVE-2026-77327
MapServer: MySQL JOIN second-order SQL injection in src/mapjoin.c
MapServer is a system for developing web-based GIS applications. Prior to 8.6.5, MapServer's MySQL JOIN implementation in src/mapjoin.c copies the source layer attribute selected by JOIN ... FROM into joininfo->target and inserts it into the query built by msMySQLJoinNext() without parameterization or SQL escaping. When MySQL JOIN support is enabled, an attacker who can control that source feature attribute, including through imported shapefile or DBF data or another untrusted spatial source, can inject SQL operators or expressions that change the intended JOIN predicate. This can bypass the intended key comparison and expose unrelated records from the MySQL or MariaDB JOIN table through output templates, query responses, or downstream application logic. This issue is fixed in version 8.6.5.
Fixes and workarounds
Fix
MapServer JOIN with MySQL: GitHub reports patched versions 8.6.5. Check the advisory for the affected release branch.
Source: GitHub GHSA-7624-4mwh-9cxrAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| MapServer MapServer |
< 8.6.5 (affected) | CNA: GitHub_M |
MapServer JOIN with MySQLMapServer JOIN with MySQL
|
<= 8.6.4 (affected, GitHub advisory range) | GitHub GHSA-7624-4mwh-9cxr |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 6.9 medium |
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 | CNA: GitHub_M |
| 4.0 / 6.9 medium |
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | NVD: [email protected] |
Exploit evidence
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxr
exploit · ADP: CISA-ADP
References
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxrCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/MapServer/MapServer/pull/7547CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/pull/7567CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/b1aa22b1ea4ba4293c0fddea92e01ce0dc18a300CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/commit/f4f95059e2610d431e0b46d75d713cd52b84f64cCNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5CNA: GitHub_M · x_refsource_MISC
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxrADP: CISA-ADP · exploit
- https://github.com/MapServer/MapServer/commit/b1aa22b1ea4ba4293c0fddea92e01ce0dc18a300[email protected]
- https://github.com/MapServer/MapServer/commit/f4f95059e2610d431e0b46d75d713cd52b84f64c[email protected]
- https://github.com/MapServer/MapServer/pull/7547[email protected]
- https://github.com/MapServer/MapServer/pull/7567[email protected]
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5[email protected]
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxr[email protected]
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxr134c704f-9b21-4f2e-91b3-4a467353bcc0
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxrGitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.