cve.bz

CVE-2025-26646 microsoft: External Control of File Name or Path

8.0 highEPSS 1.3%Fix available

High (8.0) in microsoft. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in Microsoft.Build.Tasks.Core 15.9.30, 16.11.6, 17.10.29.

On this page
External control of file name or path in .NET, Visual Studio, and Build Tools for Visual Studio allows an authorized attacker to perform spoofing over a network.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-05-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-73 External Control of File Name or Path
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-26646 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-26646?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-26646?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-26646 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Microsoft .NET 8.0from 8.0.0 before 8.0.16
Microsoft .NET 9.0from 9.0.0 before 9.0.5
Microsoft Build Tools for Visual Studio 2022from 17.0 before Fixed Version 17.13.7
Microsoft Visual Studio 2022 version 17.10from 17.10.0 before 17.10.15
Microsoft Visual Studio 2022 version 17.12from 17.12.0 before 17.12.8
Microsoft Visual Studio 2022 version 17.13from 17.13.0 before 17.13.7
Microsoft Visual Studio 2022 version 17.8from 17.8.0 before 17.8.21

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=15.8.166 <15.9.3015.9.30
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=16.0.461 <16.11.616.11.6
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=17.0.0 <17.8.2917.8.29
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=17.9.5 <17.10.2917.10.29
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=17.11.4 <17.12.3617.12.36
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=17.12.6 <17.13.2617.13.26
GHSA-h4j7-5rxr-p4wcNuGetMicrosoft.Build.Tasks.Core>=17.13.9 <17.14.817.14.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSdotnet6, dotnet7no fix listedUBUNTU-CVE-2025-26646
Ubuntu22.04:LTSdotnet88.0.116-8.0.16-0ubuntu1~22.04.1UBUNTU-CVE-2025-26646 USN-7509-1
Ubuntu24.04:LTSdotnet88.0.116-8.0.16-0ubuntu1~24.04.1UBUNTU-CVE-2025-26646 USN-7509-1
Ubuntu25.10dotnet88.0.116-8.0.16-0ubuntu1UBUNTU-CVE-2025-26646
Ubuntu25.10dotnet99.0.106-9.0.5-0ubuntu1UBUNTU-CVE-2025-26646
Red Hatenterprise_linux:8::appstreamdotnet, dotnet9.0, dotnet-sdk-9.0 and 8 more0:9.0.106-1.el8_10RHSA-2025:7571
Red Hatenterprise_linux:8::appstreamdotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 10 more0:9.0.5-1.el8_10RHSA-2025:7571
Red Hatenterprise_linux:8::appstreamdotnet-hostfxr-8.0, dotnet-runtime-8.0, aspnetcore-runtime-8.0 and 8 more0:8.0.16-1.el8_10RHSA-2025:7589
Red Hatenterprise_linux:8::appstreamdotnet8.0, dotnet-sdk-8.0, dotnet-sdk-dbg-8.0 and 4 more0:8.0.116-1.el8_10RHSA-2025:7589
Red Hatenterprise_linux:8::crbdotnet-host-debuginfo, dotnet-hostfxr-9.0-debuginfo, dotnet-runtime-9.0-debuginfo and 1 more0:9.0.5-1.el8_10RHSA-2025:7571
Red Hatenterprise_linux:8::crbdotnet-hostfxr-8.0-debuginfo, dotnet-runtime-8.0-debuginfo, dotnet-apphost-pack-8.0-debuginfo0:8.0.16-1.el8_10RHSA-2025:7589
Red Hatenterprise_linux:8::crbdotnet8.0-debuginfo, dotnet8.0-debugsource, dotnet-sdk-8.0-debuginfo and 1 more0:8.0.116-1.el8_10RHSA-2025:7589
Red Hatenterprise_linux:8::crbdotnet9.0-debuginfo, dotnet9.0-debugsource, dotnet-sdk-9.0-debuginfo and 2 more0:9.0.106-1.el8_10RHSA-2025:7571
Red Hatenterprise_linux:9::appstreamdotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 10 more0:9.0.5-1.el9_6RHSA-2025:7600
Red Hatenterprise_linux:9::appstreamdotnet-hostfxr-8.0, dotnet-runtime-8.0, aspnetcore-runtime-8.0 and 8 more0:8.0.16-1.el9_6RHSA-2025:7598
Red Hatenterprise_linux:9::appstreamdotnet8.0, dotnet-sdk-8.0, dotnet-sdk-dbg-8.0 and 4 more0:8.0.116-1.el9_6RHSA-2025:7598
Red Hatenterprise_linux:9::appstreamdotnet9.0, dotnet-sdk-9.0, dotnet-sdk-aot-9.0 and 7 more0:9.0.106-1.el9_6RHSA-2025:7600
14 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8dotnet, dotnet-sdk-9.0, dotnet-sdk-aot-9.0 and 4 more9.0.106-1.el8_10ALSA-2025:7571
AlmaLinux8dotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 6 more9.0.5-1.el8_10ALSA-2025:7571
AlmaLinux8dotnet-hostfxr-8.0, dotnet-runtime-8.0, aspnetcore-runtime-8.0 and 5 more8.0.16-1.el8_10ALSA-2025:7589
AlmaLinux8dotnet-sdk-8.0, dotnet-sdk-dbg-8.0, dotnet-templates-8.0 and 1 more8.0.116-1.el8_10ALSA-2025:7589
AlmaLinux9dotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 6 more9.0.5-1.el9_6ALSA-2025:7600
AlmaLinux9dotnet-hostfxr-8.0, dotnet-runtime-8.0, aspnetcore-runtime-8.0 and 5 more8.0.16-1.el9_6ALSA-2025:7598
AlmaLinux9dotnet-sdk-8.0, dotnet-sdk-dbg-8.0, dotnet-templates-8.0 and 1 more8.0.116-1.el9_6ALSA-2025:7598
AlmaLinux9dotnet-sdk-9.0, dotnet-sdk-aot-9.0, dotnet-sdk-dbg-9.0 and 3 more9.0.106-1.el9_6ALSA-2025:7600
AlmaLinux10dotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 6 more9.0.5-1.el10_0ALSA-2025:7601
AlmaLinux10dotnet-hostfxr-8.0, dotnet-runtime-8.0, aspnetcore-runtime-8.0 and 5 more8.0.16-1.el10_0ALSA-2025:7599
AlmaLinux10dotnet-sdk-8.0, dotnet-sdk-dbg-8.0, dotnet-templates-8.0 and 1 more8.0.116-1.el10_0ALSA-2025:7599
AlmaLinux10dotnet-sdk-9.0, dotnet-sdk-aot-9.0, dotnet-sdk-dbg-9.0 and 3 more9.0.106-1.el10_0ALSA-2025:7601
Rocky Linux8dotnet8.00:8.0.116-1.el8_10RLSA-2025:7589
Rocky Linux8dotnet9.00:9.0.106-1.el8_10RLSA-2025:7571
Rocky Linux9dotnet8.00:8.0.116-1.el9_6RLSA-2025:7598
Rocky Linux10dotnet8.00:8.0.116-1.el10_0RLSA-2025:7599
Rocky Linux10dotnet9.00:9.0.106-1.el10_0RLSA-2025:7601
Alpinev3.20, v3.21, v3.22 and 2 moredotnet8-runtime8.0.16-r0ALPINE-CVE-2025-26646
Alpinev3.21, v3.22, v3.23 and 1 moredotnet9-runtime9.0.5-r0ALPINE-CVE-2025-26646
Alpaquitastreamdotnet8-runtime8.0.16-r0BELL-CVE-2025-26646

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in .NET is Important because it allows spoofing of trusted identities or content through crafted input, exploiting weaknesses in validation logic. While it requires user interaction and limited privileges, it can subvert authentication flows or integrity checks, leading to unauthorized actions. In security-sensitive contexts—like signed assembly loading, secure package feeds, or automated build systems—such spoofing can compromise trust boundaries and facilitate privilege escalation or supply chain attacks, making it more severe than a typical moderate flaw.

```

.NET 6.0 for RHEL-8, RHEL-9 and RHIVOS has reached its End of Life as of November 12, 2024, and is no longer supported. No fixes will be provided for this stream. For additional information about lifecycle for .NET on Red Hat Enterprise Linux, please refer to: https://access.redhat.com/support/policy/updates/net-core.

```

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10dotnet8.0-0:8.0.116-1.el10_0Fixed 2025-05-14RHSA-2025:7599
Red Hat Enterprise Linux 10dotnet9.0-0:9.0.106-1.el10_0Fixed 2025-05-14RHSA-2025:7601
Red Hat Enterprise Linux 8dotnet9.0-0:9.0.106-1.el8_10Fixed 2025-05-14RHSA-2025:7571
Red Hat Enterprise Linux 8dotnet8.0-0:8.0.116-1.el8_10Fixed 2025-05-14RHSA-2025:7589
Red Hat Enterprise Linux 9dotnet8.0-0:8.0.116-1.el9_6Fixed 2025-05-14RHSA-2025:7598
Red Hat Enterprise Linux 9dotnet9.0-0:9.0.106-1.el9_6Fixed 2025-05-14RHSA-2025:7600
Red Hat Enterprise Linux 9.4 Extended Update Supportdotnet8.0-0:8.0.116-1.el9_4Fixed 2025-05-14RHSA-2025:7603
Red Hat Hardened Imagesdotnet8-0-main-8.0.126-1.hum1Fixed 2026-04-20RHSA-2026:9080
Red Hat Hardened Imagesdotnet9-0-main-9.0.116-1.hum1Fixed 2026-04-21RHSA-2026:9205
Red Hat Enterprise Linux 9dotnet6.0Out of support scope
Red Hat Enterprise Linux 9dotnet7.0Out of support scope
Red Hat Hardened Imagesdotnet10.0Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-26646.

Attack patterns (CAPEC)

  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON