# CVE-2024-45599: TCC Bypass in Cursor's macOS Application

> Attackers can bypass macOS TCC restrictions to access camera and microphone via DyLib injection in Cursor, requiring prior user permission grants.

- **Severity:** Low 3.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 24 Sep 2024
- **Updated:** 24 Sep 2024

## What is CVE-2024-45599?

CVE-2024-45599 is a low-severity vulnerability in getcursor cursor, published on 24 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Cursor is an artificial intelligence code editor. Prior to version 0.41.0, if a user on macOS has granted Cursor access to the camera or microphone, any program that is run on the machine is able to access the camera or the microphone without explicitly being granted access, through a DyLib Injection using DYLD_INSERT_LIBRARIES environment variable. The usage of `com.apple.security.cs.allow-dyld-environment-variables` and `com.apple.security.cs.disable-library-validation` allows an external dynamic library to be injected into the application using DYLD_INSERT_LIBRARIES environment variable. 
Moreover, the entitlement `com.apple.security.device.camera` allows the application to use the host camera and `com.apple.security.device.audio-input` allows the application to use the microphone. This means that untrusted code that is executed on the user's machine can access the camera or the microphone, if the user has already given permission for Cursor to do so. In version 0.41.0, the entitlements have been split by process: the main process gets the camera and microphone entitlements, but not the DyLib entitlements, whereas the extension host process gets the DyLib entitlements but not the camera or microphone entitlements. As a workaround, do not explicitly give Cursor the permission to access the camera or microphone if untrusted users can run arbitrary commands on the affected machine.

Weakness: CWE-277 (Insecure Inherited Permissions)

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


## How do I fix CVE-2024-45599?

No fix has been published for CVE-2024-45599 yet. Limit exposure of the affected software until one is available.

## Is CVE-2024-45599 being exploited?

There is no known exploitation of CVE-2024-45599 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-45599 and fix it if it is affected.

What it is: CVE-2024-45599 is a low-severity vulnerability in getcursor cursor, published on 24 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-45599 in the wild and no public exploit code.

Affected product: getcursor cursor. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-45599/ (Markdown: https://insights.sbomify.com/CVE-2024-45599/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-45599
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-45599
- OSV: https://osv.dev/vulnerability/CVE-2024-45599

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-45599/
Summaries are generated and may contain mistakes; the official description above is the record.
