{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-42489 exists.","fix":"No fix has been published for CVE-2024-42489 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-42489 is a critical code injection vulnerability in xwikisas xwiki-pro-macros, published on 12 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-42489 and fix it if it is affected.\n\nWhat it is: CVE-2024-42489 is a critical code injection vulnerability in xwikisas xwiki-pro-macros, published on 12 Aug 2024. 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-2024-42489 exists.\n\nAffected product: xwikisas xwiki-pro-macros. 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-2024-42489/ (Markdown: https://insights.sbomify.com/CVE-2024-42489/index.md)","id":"CVE-2024-42489","markdown":"https://insights.sbomify.com/CVE-2024-42489/index.md","name":"CVE-2024-42489","record":{"aliases":["GHSA-cfq3-q227-7j65"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"XWiki Pro Macros","requires_auth":"none","summary":"Attackers with view or edit rights can execute arbitrary code via improper escaping in Viewpdf and similar macros.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pro_macros","vendor":"xwiki"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Pro Macros provides XWiki rendering macros. Missing escaping in the Viewpdf macro allows any user with view right on the `CKEditor.HTMLConverter` page or edit or comment right on any page to perform remote code execution. Other macros like Viewppt are vulnerable to the same kind of attack. This vulnerability is fixed in 1.10.1.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Pro Macros Remote Code Execution via Viewpdf and similar macros","id":"CVE-2024-42489","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"authentik has Insufficient Authorization for several API endpoints","id":"CVE-2024-42490"},"packages":[],"prev":{"headline":"Cilium agent's race condition may lead to policy bypass for Host Firewall policy","id":"CVE-2024-42488"},"products":["xwiki-pro-macros"],"published":"2024-08-12","related":[{"cvss_score":10,"headline":"XWiki Remote Macros vulnerable to remote code execution from width parameter in the column macro","id":"CVE-2025-55727","kev_date_added":null,"published":"2025-09-09"},{"cvss_score":10,"headline":"XWiki Remote Macros vulnerable to remote code execution using the panel macro","id":"CVE-2025-55728","kev_date_added":null,"published":"2025-09-09"},{"cvss_score":8.3,"headline":"XWiki Remote Macros vulnerable to remote code execution using the confluence details summary macro","id":"CVE-2025-65036","kev_date_added":null,"published":"2025-12-05"},{"cvss_score":6.8,"headline":"XWiki view file macro: User can view content of office file without view rights on the attachment","id":"CVE-2025-65089","kev_date_added":null,"published":"2025-11-19"}],"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":"2024-08-13","vendors":["xwikisas"]},"summary":"Attackers with view or edit rights can execute arbitrary code via improper escaping in Viewpdf and similar macros.","url":"https://insights.sbomify.com/CVE-2024-42489/"}