{"answers":{"affected":"2 open source packages ship an affected version, including org.xwiki.contrib:xwiki-application-admintools. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-48292 in the wild and no public exploit code.","fix":"Upgrade org.xwiki.contrib:xwiki-application-admintools to 4.5.1 or later.","what":"CVE-2023-48292 is a critical vulnerability in xwiki-contrib application-admintools, published on 20 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-48292 and fix it if it is affected.\n\nWhat it is: CVE-2023-48292 is a critical vulnerability in xwiki-contrib application-admintools, published on 20 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-48292 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.xwiki.contrib:xwiki-application-admintools (Maven): affected from 4.4; fixed in 4.5.1\n- org.xwiki.contrib:xwiki-application-admintools (Maven): affected from 4.4; fixed in 4.5.1\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-2023-48292/ (Markdown: https://insights.sbomify.com/CVE-2023-48292/index.md)","id":"CVE-2023-48292","markdown":"https://insights.sbomify.com/CVE-2023-48292/index.md","name":"CVE-2023-48292","record":{"aliases":["GHSA-8jpr-ff92-hpf9"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki admin tools","requires_auth":"none","summary":"Attackers can trick admins into executing arbitrary shell commands via CSRF, leading to remote code execution and full system compromise.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"admin_tools","vendor":"xwiki"}],"cvss":{"score":9.7,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"The XWiki Admin Tools Application provides tools to help the administration of XWiki. Starting in version 4.4 and prior to version 4.5.1, a cross site request forgery vulnerability in the admin tool for executing shell commands on the server allows an attacker to execute arbitrary shell commands by tricking an admin into loading the URL with the shell command. A very simple possibility for an attack are comments. When the attacker can leave a comment on any page in the wiki it is sufficient to include an image with an URL like  `/xwiki/bin/view/Admin/RunShellCommand?command=touch%20/tmp/attacked` in the comment. When an admin views the comment, the file `/tmp/attacked` will be created on the server. The output of the command is also vulnerable to XWiki syntax injection which offers a simple way to execute Groovy in the context of the XWiki installation and thus an even easier way to compromise the integrity and confidentiality of the whole XWiki installation. This has been patched by adding a form token check in version 4.5.1 of the admin tools. Some workarounds are available. The patch can be applied manually to the affected wiki pages. Alternatively, the document `Admin.RunShellCommand` can also be deleted if the possibility to run shell commands isn't needed.","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2025-03-29","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-03-29","kind":"exploitdb","ref":"52105","stars":null,"title":"XWiki Standard 14.10 - Remote Code Execution (RCE)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"XWiki Admin Tools Application Run Shell Command allows CSRF RCE attacks","id":"CVE-2023-48292","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"csrf","year":"2023"},"n_packages":2,"n_references":3,"next":{"headline":"XWiki Admin Tools Application CSRF with QueryOnXWiki allows arbitrary database queries","id":"CVE-2023-48293"},"packages":[{"ecosystem":"Maven","fixed":["4.5.1"],"introduced":["4.4"],"last_affected":[],"package":"org.xwiki.contrib:xwiki-application-admintools","purl":null,"source":"GHSA-8jpr-ff92-hpf9"},{"ecosystem":"Maven","fixed":["4.5.1"],"introduced":["4.4"],"last_affected":[],"package":"org.xwiki.contrib:xwiki-application-admintools","purl":"pkg:maven/org.xwiki.contrib/xwiki-application-admintools","source":"GHSA-8jpr-ff92-hpf9"}],"prev":{"headline":"Apache Airflow: Improper access control to DAG resources","id":"CVE-2023-48291"},"products":["application-admintools"],"published":"2023-11-20","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":"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["xwiki-contrib"]},"summary":"Attackers can trick admins into executing arbitrary shell commands via CSRF, leading to remote code execution and full system compromise.","url":"https://insights.sbomify.com/CVE-2023-48292/"}