{"id":82626,"date":"2025-10-13T00:31:09","date_gmt":"2025-10-13T00:31:09","guid":{"rendered":""},"modified":"2025-10-22T19:06:06","modified_gmt":"2025-10-23T01:06:06","slug":"cve-2025-61592-remote-code-execution-vulnerability-in-cursor-code-editor","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-61592-remote-code-execution-vulnerability-in-cursor-code-editor\/","title":{"rendered":"<strong>CVE-2025-61592: Remote Code Execution Vulnerability in Cursor Code Editor<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The CVE-2025-61592 vulnerability is a critical issue that impacts Cursor, a popular code editor utilized by programmers worldwide for AI development. This vulnerability became apparent in versions 1.7 and below, where project-specific CLI configurations could overrule global configurations in Cursor&#8217;s CLI. As a result, users running the CLI within a potentially harmful repository could be susceptible to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-59360-remote-code-execution-vulnerability-in-chaos-controller-manager\/\"  data-wpil-monitor-id=\"90086\">Remote Code Execution<\/a> (RCE). This issue is especially concerning as RCE vulnerabilities can lead to severe consequences, such as unauthorized access to sensitive data, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-12367-system-compromise-via-sensitive-information-exposure-in-vega-master-software\/\"  data-wpil-monitor-id=\"89900\">system compromise<\/a>, or even complete system control.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-61592<br \/>\nSeverity: High (8.8 CVSS Score)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: Required<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-59352-critical-vulnerability-in-dragonfly-file-distribution-system-leading-to-potential-remote-code-execution-rce\/\"  data-wpil-monitor-id=\"90788\">Potential system<\/a> compromise or data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-1446831934\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>Cursor | 1.7 and below<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The exploit takes advantage of the automatic loading of project-specific CLI configurations from the current working directory. This process overrides global configurations in Cursor&#8217;s CLI. In a malicious repository, an attacker can craft a permissive configuration that allows shell <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-10589-critical-os-command-injection-vulnerability-in-n-partner-s-software-suite\/\"  data-wpil-monitor-id=\"90019\">command<\/a>s and injects commands via project-specific rules or other mechanisms. This combination makes the system susceptible to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-34195-remote-code-execution-vulnerability-in-vasion-print-virtual-appliance-host-and-application\/\"  data-wpil-monitor-id=\"90130\">Remote Code Execution<\/a> attacks.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-26174786\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>Given the nature of the vulnerability, the attacker could employ a malicious JSON file to override CLI settings. The following is a conceptual example of a malicious .cursor\/cli.json file:<\/p>\n<pre><code class=\"\" data-line=\"\">{\n&quot;command&quot;: &quot;echo &#039;malicious_command&#039;;&quot;\n}<\/code><\/pre>\n<p>This JSON file, when loaded by the Cursor CLI, would <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-24119-critical-macos-vulnerability-allowing-arbitrary-code-execution-outside-sandbox\/\"  data-wpil-monitor-id=\"90934\">allow the execution<\/a> of the &#8216;malicious_command&#8217; due to the permissive configuration. It could <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-54377-critical-vulnerability-in-roo-code-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"91018\">lead to uncontrolled access to the system<\/a> or data leakage.<\/p>\n<p><strong>Workarounds and Mitigation<\/strong><\/p>\n<p>Affected users are advised to apply the vendor patch (2025.09.17-25b418f) immediately, which addresses this issue. If the patch cannot be applied immediately, the use of a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can serve as temporary mitigation. However, these measures should be considered as short-term solutions, and the patch should be applied as soon as it is feasible to ensure <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-7093-critical-vulnerability-in-belkin-f9k1122-1-00-33-impacting-system-security-and-data-integrity\/\"  data-wpil-monitor-id=\"91226\">system security<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The CVE-2025-61592 vulnerability is a critical issue that impacts Cursor, a popular code editor utilized by programmers worldwide for AI development. This vulnerability became apparent in versions 1.7 and below, where project-specific CLI configurations could overrule global configurations in Cursor&#8217;s CLI. As a result, users running the CLI within a potentially harmful repository could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[80],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-82626","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-rce"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/82626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=82626"}],"version-history":[{"count":8,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/82626\/revisions"}],"predecessor-version":[{"id":84245,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/82626\/revisions\/84245"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=82626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=82626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=82626"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=82626"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=82626"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=82626"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=82626"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=82626"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=82626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}