{"id":82624,"date":"2025-10-12T18:30:29","date_gmt":"2025-10-12T18:30:29","guid":{"rendered":""},"modified":"2025-11-03T12:18:36","modified_gmt":"2025-11-03T18:18:36","slug":"cve-2025-61591-command-injection-vulnerability-in-cursor-code-editor","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-61591-command-injection-vulnerability-in-cursor-code-editor\/","title":{"rendered":"<strong>CVE-2025-61591: Command Injection Vulnerability in Cursor Code Editor<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>In the world of programming, code editors play a crucial role. One such editor, Cursor, which is built specifically for AI programming, has been identified with a severe vulnerability (CVE-2025-61591) in versions 1.7 and below. This vulnerability, if exploited, could lead to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-12367-system-compromise-via-sensitive-information-exposure-in-vega-master-software\/\"  data-wpil-monitor-id=\"89854\">system compromise<\/a> or data leakage, posing significant security threats to organizations and individuals using the affected versions of Cursor. The exploit works when MCP uses OAuth authentication with an untrusted MCP server, leading to potential remote code execution and <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=\"90013\">command injection<\/a>.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-61591<br \/>\nSeverity: High (8.8)<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=\"90814\">Potential system<\/a> compromise or data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3119846837\" 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 works when the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-6454-authenticated-user-exploit-in-gitlab-ce-ee-through-proxy-environments\/\"  data-wpil-monitor-id=\"90727\">Cursor code<\/a> editor interacts with an untrusted MCP server using OAuth authentication. During this interaction, an attacker can impersonate a malicious MCP server and return crafted, maliciously <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-59518-os-command-injection-vulnerability-in-lemonldap-ng\/\"  data-wpil-monitor-id=\"90022\">injected commands<\/a>. These commands could allow arbitrary <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-55319-command-injection-vulnerability-in-agentic-ai-and-visual-studio-code\/\"  data-wpil-monitor-id=\"90049\">code<\/a> execution on the host by the agent, leading to a system compromise. The attacker could then run arbitrary commands with full user privileges, <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-59340-jinjava-template-engine-vulnerability-leading-to-potential-remote-code-execution\/\"  data-wpil-monitor-id=\"90404\">potentially leading<\/a> to data leakage or further system compromise.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-2298517336\" 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>Below is a conceptual example of how this vulnerability might be exploited:<\/p>\n<pre><code class=\"\" data-line=\"\">POST \/mcp\/oauth\/token HTTP\/1.1\nHost: untrusted-mcp-server.com\nContent-Type: application\/json\n{\n&quot;grant_type&quot;: &quot;authorization_code&quot;,\n&quot;code&quot;: &quot;AUTH_CODE&quot;,\n&quot;redirect_uri&quot;: &quot;http:\/\/localhost:8080\/callback&quot;,\n&quot;client_id&quot;: &quot;CLIENT_ID&quot;,\n&quot;client_secret&quot;: &quot;CLIENT_SECRET&quot;,\n&quot;commands&quot;: &quot;{malicious_commands}&quot;\n}<\/code><\/pre>\n<p>In this example, the attacker impersonates the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-53098-arbitrary-command-execution-in-roo-code-via-mcp-configuration\/\"  data-wpil-monitor-id=\"92313\">MCP server and sends a response containing malicious commands<\/a> in the `commands` field. These commands could be crafted to exploit the command injection <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-34205-critical-php-dead-code-vulnerability-in-vasion-print-virtual-appliance-host\/\"  data-wpil-monitor-id=\"89833\">vulnerability in the Cursor code<\/a> editor, leading to arbitrary code execution.<\/p>\n<p><strong>Mitigation Guidance<\/strong><\/p>\n<p>While the issue has no fixed release version yet, a patch (2025.09.17-25b418f) has been provided by the vendor. Users are strongly advised to apply this patch immediately to mitigate the risk. In case the patch cannot be applied immediately, using a Web Application Firewall (WAF) or an Intrusion Detection System (IDS) can serve as temporary mitigation. These systems can help detect and block malicious traffic, thereby reducing the risk of exploitation. Users should also ensure only trusted MCP servers are used for OAuth authentication to avoid potential exploitation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In the world of programming, code editors play a crucial role. One such editor, Cursor, which is built specifically for AI programming, has been identified with a severe vulnerability (CVE-2025-61591) in versions 1.7 and below. This vulnerability, if exploited, could lead to system compromise or data leakage, posing significant security threats to organizations and [&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":[78,80],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-82624","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-injection","attack_vector-rce"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/82624","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=82624"}],"version-history":[{"count":9,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/82624\/revisions"}],"predecessor-version":[{"id":85537,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/82624\/revisions\/85537"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=82624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=82624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=82624"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=82624"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=82624"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=82624"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=82624"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=82624"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=82624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}