# CVE-2024-48919: RCE via Prompt Injection Into Cursor's Terminal Cmd-K

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.2
- **CVSS:** 9.2 (v4.0, CNA) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.96% (percentile 60, 2026-11-26)
- **CWE:** CWE-20
- **Published:** 2024-10-22T20:58:21.962Z
- **Modified:** 2026-06-17T07:59:02.293Z

## Who should check

- Anyone running getcursor cursor \< 0.42

## Description

Cursor is a code editor built for programming with AI. Prior to Sep 27, 2024, if a user generated a terminal command via Cursor's Terminal Cmd-K/Ctrl-K feature and if the user explicitly imported a malicious web page into the Terminal Cmd-K prompt, an attacker with control over the referenced web page could have a significant chance of influencing a language model to output arbitrary commands for execution in the user's terminal. This scenario would require the user explicitly opt-in to including the contents of a compromised webpage, and it would require that the attacker display prompt injection text in the the contents of the compromised webpage.

A server-side patch to not stream back newlines or control characters was released on September 27, 2024, within two hours of the issue being reported. Additionally, Cursor 0.42 includes client-side mitigations to prevent any newline or control character from being streamed into the terminal directly. It also contains a new setting, \`"cursor.terminal.usePreviewBox"\`, which, if set to true, streams the response into a preview box whose contents then have to be manually accepted before being inserted into the terminal. This setting is useful if you're working in a shell environment where commands can be executed without pressing enter or any control character. The patch has been applied server-side, so no additional action is needed, even on older versions of Cursor. Separately, Cursor's maintainers also recommend, as best practice, to only include trusted pieces of context in prompts.

## Affected and fixed versions

- getcursor cursor: \< 0.42 (cvelist)

## Mitigation

- Upgrade cursor to 0.42 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-48919. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-48919.md
Affected: getcursor cursor < 0.42
Fixed in: getcursor cursor 0.42

Steps:
1. Search this machine and project for getcursor cursor: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-48919 being exploited?

There is no confirmed exploitation: CVE-2024-48919 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-48919?

Critical: CVSS 9.2 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-48919?

getcursor cursor \< 0.42.

### Is there a fix for CVE-2024-48919?

Yes. Fixed in getcursor cursor 0.42. Upgrade cursor to 0.42 or later.

### How do I check if I'm affected by CVE-2024-48919?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/getcursor/cursor/security/advisories/GHSA-rmj9-23rg-gr67>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-48919>

HTML: <https://flawdb.com/CVE-2024-48919> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-48919>
