CVE-2025-25003
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 · uneditedUncontrolled search path element in Visual Studio allows an authorized attacker to elevate privileges locally.
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 · moderate confidenceA local privilege escalation vulnerability in Visual Studio where the application uses uncontrolled search paths to locate DLLs or other resources, allowing an authorized attacker to inject malicious files into those paths and execute with elevated privileges.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 16.0, < 16.11.45>= 17.8.0, < 17.8.19>= 17.10.0, < 17.10.12>= 17.12.0, < 17.12.6>= 17.13.0, < 17.13.3CVSS 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
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/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.
-
Identify installed Visual Studio versionOpen Visual Studio, go to Help > About Microsoft Visual Studio, or check the registry key HKLM\SOFTWARE\Microsoft\VisualStudio\Setup\Instances to see the installed version and build numberAffected if The version displayed is within any of the following ranges: VS 2019 version 16.0 through 16.11.44; VS 2022 versions 17.8.0-17.8.18, 17.10.0-17.10.11, 17.12.0-17.12.5, or 17.13.0-17.13.2
-
Locate Visual Studio installation directoryDefault locations are C:\Program Files\Microsoft Visual Studio\2022\ or C:\Program Files (x86)\Microsoft Visual Studio\2019\ - confirm the actual installation path from the About dialog or registryAffected if Visual Studio is installed in a directory where standard users have write access to subdirectories
-
Identify DLL search path configurationCheck Visual Studio developer command prompt environment using 'set PATH' or examine the system environment variables and any vswhere.exe output that shows install paths. Also review any custom .props or .targets files in projects that may define additional search pathsAffected if The search paths include directories that are writable by non-privileged users, such as temp folders, shared project directories, or unhardened extension folders
-
Check write permissions on search path directoriesUse icacls or PowerShell Get-Acl to examine permissions on directories in Visual Studio's DLL search path (common locations include the VS install root, CommonExtensions folder, and any configured extension or template directories)Affected if Any directory in the search path allows write access for users without administrator privileges, enabling potential DLL hijacking
You are affected if your installed Visual Studio version falls within the vulnerable ranges AND directories in its DLL search path are writable by low-privilege users.
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 · scoped16.11.4517.8.1917.10.12
Ensure Visual Studio only loads DLLs from trusted, secure locations by reviewing and hardening the application's search path configuration, and restrict write access to directories in the search path.
Visual Studio 2019: 16.11.45 or later | Visual Studio 2022: 17.8.19, 17.10.12, 17.12.6, or 17.13.3 (or latest 17.13.x)
- Open Visual Studio Installer
- Click 'Modify' on your Visual Studio 2019 or 2022 installation
- Ensure 'Updates' is selected in the installer
- If an update to version 16.11.45 (VS 2019) or 17.8.19/17.10.12/17.12.6/17.13.3 (VS 2022) is available, click 'Update' to install it
- Alternatively, download the latest Visual Studio 2019 (16.11.x) or Visual Studio 2022 (17.13.x) installer from https://visualstudio.microsoft.com/downloads/ and run it to upgrade
- Restart Visual Studio after the update completes
- Verify the update was successful by going to Help > About Microsoft Visual Studio and confirming the version number
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation8.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,480.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-25003 — 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-25003 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