CVE-2025-32018
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedCursor is a code editor built for programming with AI. In versions 0.45.0 through 0.48.6, the Cursor app introduced a regression affecting the set of file paths the Cursor Agent is permitted to modify automatically. Under specific conditions, the agent could be prompted, either directly by the user or via maliciously crafted context, to automatically write to files outside of the opened workspace. This behavior required deliberate prompting, making successful exploitation highly impractical in real-world scenarios. Furthermore, the edited file was still displayed in the UI as usual for user review, making it unlikely for the edit to go unnoticed by the user. This vulnerability is fixed in 0.48.7.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceCursor versions 0.45.0-0.48.6 contained a regression where the AI agent could be deliberately prompted (by user or malicious context) to write files outside the permitted workspace boundaries. The agent bypassed workspace restrictions, allowing file writes to arbitrary paths on the filesystem while still displaying edits in the UI for review.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine installed Cursor versionOpen Cursor, then go to Cursor > About Cursor (on macOS) or Help > About (on Windows/Linux) to view the version number. Alternatively, check the application installation directory or package manager for the installed version.Affected if The version displayed is 0.45.0, 0.45.1, 0.45.2, 0.45.3, 0.45.4, 0.45.5, 0.45.6, 0.46.0 through 0.46.x, 0.47.0 through 0.47.x, or 0.48.0 through 0.48.6 (any version from 0.45.0 up to and including 0.48.6).
-
Verify the version is within affected rangeCompare your installed version number to the affected range: 0.45.0 <= version <= 0.48.6Affected if Your Cursor version falls within 0.45.0 to 0.48.6 inclusive.
-
Confirm AI agent feature is in useDetermine whether you use Cursor's AI agent features (such as Composer, Chat with agent mode, or AI-edit capabilities that can write files). This vulnerability only affects environments where the AI agent writes files.Affected if You actively use Cursor's AI agent to generate or edit files, as the flaw allows the agent to bypass workspace restrictions.
You are affected if your installed Cursor version is 0.45.0 through 0.48.6 and you use the AI agent feature that can write files to the filesystem.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade Cursor to version 0.48.7 or later to obtain the vendor patch. No additional configuration required as the fix is built into the application.
0.48.7
- Open Cursor application
- Check current version: On macOS, go to Cursor > About Cursor; on Windows/Linux, go to Help > About
- If version is between 0.45.0 and 0.48.6 (inclusive), initiate the update
- Update to version 0.48.7 or later via the application's built-in update mechanism, or download the latest version from the official Cursor website
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation2.0 h
- Testing1.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,424.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-32018 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-32018 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data