Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-77328— MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c

Quick assessment

Affected
MapServer MapServer
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 parameter

CVSS 6.9 · Medium

Affected Version Matrix 1

VendorProduct Version RangeStatus
MapServer MapServer < 8.6.5 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-77328

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
MapServer MapServer < 8.6.5 -

II. Public POCs for CVE-2026-77328

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-77328

请登录查看更多情报信息。

Other References for CVE-2026-77328 (6)

Same Patch Batch · MapServer · 2026-11-20 · 6 CVEs total

CVE-2026-77326 8.6 HIGH MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
CVE-2026-77324 7.5 HIGH MapServer: WCS POST: NULL-Dereference Denial of Service When `BoundingBox` Omits `crs`
CVE-2026-77327 6.9 MEDIUM MapServer: MySQL JOIN second-order SQL injection in src/mapjoin.c
CVE-2026-77325 6.1 MEDIUM MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header
CVE-2026-77323 5.3 MEDIUM MapServer Reflected XSS via unescaped offset/limit query params injected into <script> in

IV. Related Vulnerabilities