{"answers":{"affected":"4 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-rest-server.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-52472 exists.","fix":"Upgrade org.xwiki.platform:xwiki-platform-rest-server to a fixed version for your release line: 17.4.2 or 16.10.9.","what":"CVE-2025-52472 is a critical SQL injection vulnerability in xwiki-platform, published on 6 Oct 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-52472 and fix it if it is affected.\n\nWhat it is: CVE-2025-52472 is a critical SQL injection vulnerability in xwiki-platform, published on 6 Oct 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-52472 exists.\n\nAffected packages and fixed versions:\n- org.xwiki.platform:xwiki-platform-rest-server (Maven): affected from 17.0.0-rc-1; fixed in 17.4.2\n- org.xwiki.platform:xwiki-platform-rest-server (Maven): affected from 17.0.0-rc-1; fixed in 17.4.2\n- org.xwiki.platform:xwiki-platform-rest-server (Maven): affected from 4.3-milestone-1; fixed in 16.10.9\n- org.xwiki.platform:xwiki-platform-rest-server (Maven): affected from 4.3-milestone-1; fixed in 16.10.9\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-52472/ (Markdown: https://insights.sbomify.com/CVE-2025-52472/index.md)","id":"CVE-2025-52472","markdown":"https://insights.sbomify.com/CVE-2025-52472/index.md","name":"CVE-2025-52472","record":{"aliases":["GHSA-gprp-h92g-gc2h"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki Platform","requires_auth":"none","summary":"Attackers can inject HQL queries via the REST search API to read or modify data in XWiki Platform.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","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","version":"4.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 4.3-milestone-1 and prior to versions 16.10.9, 17.4.2, and 17.5.0, the REST search URL is vulnerable to HQL injection via the `orderField` parameter. The specified value is added twice in the query, though, once in the field list for the select and once in the order clause, so it's not that easy to exploit. The part of the query between the two fields can be enclosed in single quotes to effectively remove them, but the query still needs to remain valid with the query two times in it. This has been patched in versions 17.5.0, 17.4.2, and 16.10.9. No known workarounds are available.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2025/CVE-2025-52472.yaml","stars":null,"title":"XWiki - HQL Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"XWiki Platform vulnerable to HQL injection via wiki and space search REST API","id":"CVE-2025-52472","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"sql_injection","year":"2025"},"n_packages":4,"n_references":4,"next":{"headline":"liboqs secret-dependent branching in HQC reference implementation when compiled with Clang 17-20","id":"CVE-2025-52473"},"packages":[{"ecosystem":"Maven","fixed":["17.4.2"],"introduced":["17.0.0-rc-1"],"last_affected":[],"package":"org.xwiki.platform:xwiki-platform-rest-server","purl":null,"source":"GHSA-gprp-h92g-gc2h"},{"ecosystem":"Maven","fixed":["17.4.2"],"introduced":["17.0.0-rc-1"],"last_affected":[],"package":"org.xwiki.platform:xwiki-platform-rest-server","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rest-server","source":"GHSA-gprp-h92g-gc2h"},{"ecosystem":"Maven","fixed":["16.10.9"],"introduced":["4.3-milestone-1"],"last_affected":[],"package":"org.xwiki.platform:xwiki-platform-rest-server","purl":null,"source":"GHSA-gprp-h92g-gc2h"},{"ecosystem":"Maven","fixed":["16.10.9"],"introduced":["4.3-milestone-1"],"last_affected":[],"package":"org.xwiki.platform:xwiki-platform-rest-server","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rest-server","source":"GHSA-gprp-h92g-gc2h"}],"prev":{"headline":"ESP-NOW Integer Underflow Vulnerability Advisory","id":"CVE-2025-52471"},"products":["xwiki-platform"],"published":"2025-10-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-06","vendors":["xwiki"]},"summary":"Attackers can inject HQL queries via the REST search API to read or modify data in XWiki Platform.","url":"https://insights.sbomify.com/CVE-2025-52472/"}