{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59431 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-59431 is a high-severity SQL injection vulnerability in MapServer, published on 19 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-59431 and fix it if it is affected.\n\nWhat it is: CVE-2025-59431 is a high-severity SQL injection vulnerability in MapServer, published on 19 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59431 exists.\n\nAffected product: MapServer. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-59431/ (Markdown: https://insights.sbomify.com/CVE-2025-59431/index.md)","id":"CVE-2025-59431","markdown":"https://insights.sbomify.com/CVE-2025-59431/index.md","name":"CVE-2025-59431","record":{"aliases":["DEBIAN-CVE-2025-59431","GHSA-256m-rx4h-r55w","UBUNTU-CVE-2025-59431"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"GIS web server","requires_auth":"none","summary":"Attackers can manipulate backend database queries via SQL injection in MapServer's WFS XML Filter Query, potentially reading or modifying data.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mapserver","vendor":"osgeo"}],"cvss":{"score":8.9,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"MapServer is a system for developing web-based GIS applications. Prior to 8.4.1, the XML Filter Query directive PropertyName is vulnerably to Boolean-based SQL injection. It seems like expression checking is bypassed by introducing double quote characters in the PropertyName. Allowing to manipulate backend database queries. This vulnerability is fixed in 8.4.1.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MapServer - WFS XML Filter Query SQL injection","id":"CVE-2025-59431","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Timing Attack Vulnerability in SCRAM Authentication","id":"CVE-2025-59432"},"packages":[],"prev":{"headline":"Mesh Connect JS SDK Vulnerable to Cross Site Scripting via createLink.openLink","id":"CVE-2025-59430"},"products":["MapServer"],"published":"2025-09-19","related":[{"cvss_score":10,"headline":"Security feature bypass in n/a","id":"CVE-2010-2540","kev_date_added":null,"published":"2010-08-02"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-2281","kev_date_added":null,"published":"2009-10-23"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-0839","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-0840","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Path traversal in n/a","id":"CVE-2009-0841","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-1176","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-1177","kev_date_added":null,"published":"2009-03-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-09-19","vendors":["MapServer"]},"summary":"Attackers can manipulate backend database queries via SQL injection in MapServer's WFS XML Filter Query, potentially reading or modifying data.","url":"https://insights.sbomify.com/CVE-2025-59431/"}