Skip to content
LowVulnerability

CVE-2024-45599: Cursor camera and microphone access bypass through DyLib injection on macOS

Identifier
CVE-2024-45599
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-45599 affects Cursor, an AI code editor, before version 0.41.0 on macOS. Any program on the machine can use DYLD_INSERT_LIBRARIES to inject a dynamic library into Cursor and reach the camera or microphone, even without access granted to that program, once the user has allowed Cursor those permissions. The app's allow-dyld-environment-variables and disable-library-validation entitlements, together with the camera and audio-input entitlements, make this possible.

Mitigation

Fixed in 0.41.0, which splits the entitlements by process: the main process keeps the camera and microphone entitlements, and the extension host process keeps the DyLib entitlements. As a workaround, do not grant Cursor camera or microphone permission if untrusted users can run arbitrary commands on the affected machine.