{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-32018 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-32018 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-32018 is a high-severity path traversal vulnerability in getcursor cursor, published on 8 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-32018 and fix it if it is affected.\n\nWhat it is: CVE-2025-32018 is a high-severity path traversal vulnerability in getcursor cursor, published on 8 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-32018 in the wild and no public exploit code.\n\nAffected product: getcursor cursor. 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-32018/ (Markdown: https://insights.sbomify.com/CVE-2025-32018/index.md)","id":"CVE-2025-32018","markdown":"https://insights.sbomify.com/CVE-2025-32018/index.md","name":"CVE-2025-32018","record":{"aliases":[],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"AI code editor","requires_auth":"low_privilege","summary":"An attacker can trick the AI agent into writing files outside the workspace via prompt injection, though user review mitigates risk.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Cursor is a code editor built for programming with AI. In versions 0.45.0 through 0.48.6, the Cursor app introduced a regression affecting the set of file paths the Cursor Agent is permitted to modify automatically. Under specific conditions, the agent could be prompted, either directly by the user or via maliciously crafted context, to automatically write to files outside of the opened workspace. This behavior required deliberate prompting, making successful exploitation highly impractical in real-world scenarios. Furthermore, the edited file was still displayed in the UI as usual for user review, making it unlikely for the edit to go unnoticed by the user. This vulnerability is fixed in 0.48.7.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Arbitrary file write from Cursor Agent through a prompt injection from malicious @Docs","id":"CVE-2025-32018","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":0,"n_references":1,"next":{"headline":"Harbor's repository description page allows for XSS","id":"CVE-2025-32019"},"packages":[],"prev":{"headline":"Umbraco has a Management API Vulnerability to Path Traversal With Authenticated Users","id":"CVE-2025-32017"},"products":["cursor"],"published":"2025-04-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-08","vendors":["getcursor"]},"summary":"An attacker can trick the AI agent into writing files outside the workspace via prompt injection, though user review mitigates risk.","url":"https://insights.sbomify.com/CVE-2025-32018/"}