Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-48919

CRITICAL 9.2EPSS 60%

RCE via Prompt Injection Into Cursor's Terminal Cmd-K

Mitigation

  • Upgrade cursor to 0.42 or later.

Who should check

  • Anyone running getcursor cursor < 0.42

Vulnerability facts

Affected
getcursor cursor < 0.42
Fixed in
getcursor cursor 0.42
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.96% chance of exploitation in 30 days (percentile 60, 2026-11-26)
CWE
CWE-20
Published
Modified

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

Package / productAffectedFixedSource
getcursor cursor< 0.42—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors