{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-77327","id":"CVE-2026-77327","title":"MapServer SQL injection in MySQL JOIN queries","description":"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","descriptionLong":"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.","published":"2026-11-20T19:04:28.200Z","updated":"2026-11-20T19:04:28.200Z","reserved":"2026-08-20T19:24:11.618Z","status":"PUBLISHED","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.9,"vector":"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","rating":"medium","source":"GitHub_M"}],"rating":"medium","products":["MapServer"],"affectedProducts":[{"vendor":"MapServer","product":"MapServer","defaultStatus":null,"versions":[{"version":"< 8.6.5","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-89"],"aliases":[],"references":[{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MapServer/MapServer/pull/7547","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/pull/7567","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/commit/b1aa22b1ea4ba4293c0fddea92e01ce0dc18a300","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/commit/f4f95059e2610d431e0b46d75d713cd52b84f64c","tags":["x_refsource_MISC"]},{"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5","tags":["x_refsource_MISC"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-77327","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77327","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-77327","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-77327","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}