Vulnerabilities in pkg:nuget/Microsoft.NET.Build.Containers
PACKAGECVE-2026-50526 is a HIGH (CVSS 7.0) microsoft security advisory cve-2026-50526 – vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Microsoft.NET.Build.Containers libraries in the NuGet ecosystem. The issue involves microsoft security advisory cve-2026-50526 – .net tampering vulnerability. Remediation is available by upgrading affected packages to version 10.0.10, 9.0.18, 8.0.29.
pkg:nuget/Microsoft.NET.Build.Containers
Vulnerability advisories affecting package pkg:nuget/Microsoft.NET.Build.Containers. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-55jh-fwmh-39m4 | CVE-2026-50526 | HIGH | Microsoft Security Advisory CVE-2026-50526 – .NET Tampering Vulnerability |
| GHSA-p8rx-fwgq-rh2f | CVE-2023-35390 | HIGH | .NET Remote Code Execution Vulnerability |
CVE-2026-50526 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-50526
To remediate this vulnerability, upgrade all affected Microsoft.NET.Build.Containers dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.NET.Build.Containers to 10.0.10
Upgrade Microsoft.NET.Build.Containers to 9.0.18
Upgrade Microsoft.NET.Build.Containers to 8.0.29
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.NET.Build.Containers
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-50526, inspect your project dependencies for Microsoft.NET.Build.Containers:
inspect dependencies for Microsoft.NET.Build.Containers
Analyze the terminal output to locate any version of Microsoft.NET.Build.Containers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.0.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Microsoft.NET.Build.Containers, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-50526 Affected Microsoft.NET.Build.Containers Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.NET.Build.Containers
|
NuGet |
≥ 10.0.0
< 10.0.10
|
10.0.10
|
|
Microsoft.NET.Build.Containers
|
NuGet |
≥ 9.0.0
< 9.0.18
|
9.0.18
|
|
Microsoft.NET.Build.Containers
|
NuGet |
≥ 8.0.0
< 8.0.29
|
8.0.29
|
References
Frequently Asked Questions
What is CVE-2026-50526?
Which Microsoft.NET.Build.Containers versions are affected?
What version fixes CVE-2026-50526?
Is Microsoft.NET.Build.Containers affected?
What is the CVSS score of CVE-2026-50526?
What CWE is associated with CVE-2026-50526?
How can I check NuGet dependencies for CVE-2026-50526?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-55jh-fwmh-39m4",
"modified" : "2026-07-21T16:14:37Z",
"published" : "2026-07-21T16:14:37Z",
"aliases" : [ "CVE-2026-50526" ],
"summary" : "Microsoft Security Advisory CVE-2026-50526 – .NET Tampering Vulnerability",
"details" : "## Executive summary\n\nMicrosoft is releasing this security advisory to provide information about a vulnerability in .NET SDK (Microsoft.NET.Build.Containers). This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.\n\nA tampering vulnerability exists in the .NET SDK (.NET 8, .NET 9, and .NET 10) container image build process which could allow a local attacker to inject resources that could be incorporated into container images built by other users on the same machine.\n\n## Announcement\n\nAnnouncement for this issue can be found at https://github.com/dotnet/announcements/issues/**TBD**\n\n## CVSS Details\n\n- **Version:** 3.1\n- **Severity:** High\n- **Score:** 7.0\n- **Vector:** `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`\n- **Weakness:** CWE-59 (Improper Link Resolution Before File Access ('Link Following'))\n\n## Affected Platforms\n\n- **Platforms:** All\n- **Architectures:** All\n\n## <a name=\"affected-packages\"></a>Affected Packages\nThe vulnerability affects any Microsoft .NET project if it uses any of affected package versions listed below\n\n### <a name=\".NET 10.0\"></a>.NET 10.0\nPackage name | Affected version | Patched version\n------------ | ---------------- | -------------------------\n[Microsoft.NET.Build.Containers](https://www.nuget.org/packages/Microsoft.NET.Build.Containers) | >= 10.0.0, <= 10.0.9 | 10.0.10\n\n### <a name=\".NET 9.0\"></a>.NET 9.0\nPackage name | Affected version | Patched version\n------------ | ---------------- | -------------------------\n[Microsoft.NET.Build.Containers](https://www.nuget.org/packages/Microsoft.NET.Build.Containers) | >= 9.0.0, <= 9.0.17 | 9.0.18\n\n### <a name=\".NET 8.0\"></a>.NET 8.0\nPackage name | Affected version | Patched version\n------------ | ---------------- | -------------------------\n[Microsoft.NET.Build.Containers](https://www.nuget.org/packages/Microsoft.NET.Build.Containers) | >= 8.0.0, <= 8.0.28 | 8.0.29\n\n## Advisory FAQ\n\n### <a name=\"how-affected\"></a>How do I know if I am affected?\n\nIf using a package listed in [affected packages](#affected-packages), you're exposed to the vulnerability.\n\n### <a name=\"how-fix\"></a>How do I fix the issue?\n\n1. To fix the issue please install the latest version of .NET. If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs.\n2. If your application references the vulnerable nuget package, update the package reference to the patched version. You can list the versions you have installed by running the `dotnet --info` command.\n\nOnce you have installed the updated runtime or SDK, restart your apps for the update to take effect.\n\nAdditionally, if you've deployed [self-contained applications](https://docs.microsoft.com/dotnet/core/deploying/#self-contained-deployments-scd) targeting any of the impacted versions, these applications are also vulnerable and must be recompiled and redeployed.\n\n## Other Information\n\n### Reporting Security Issues\n\nIf you have found a potential security issue in a supported version of .NET, please report it to the Microsoft Security Response Center (MSRC) via the [MSRC Researcher Portal](https://msrc.microsoft.com/report/vulnerability/new). Further information can be found in the MSRC [Report an Issue FAQ](https://www.microsoft.com/msrc/faqs-report-an-issue).\n\nSecurity reports made through MSRC may qualify for the Microsoft .NET Bounty. Details of the Microsoft .NET Bounty Program including terms and conditions are at https://aka.ms/corebounty.\n\n### Support\n\nYou can ask questions about this issue on GitHub in the .NET GitHub organization. The main repos are located at https://github.com/dotnet/runtime. The Announcements repo (https://github.com/dotnet/Announcements) will contain this bulletin as an issue and will include a link to a discussion issue. You can ask questions in the linked discussion issue.\n\n### Disclaimer\n\nThe information provided in this advisory is provided \"as is\" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.\n\n### External Links\n\n[CVE-2026-50526]( https://www.cve.org/CVERecord?id=CVE-2026-50526)\n\n### Acknowledgements\n\n**Anonymous, Siwei Li with Microsoft**\n\n### Revisions\n\nV1.0 (July 14, 2026): Advisory published.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.NET.Build.Containers"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0"
}, {
"fixed" : "10.0.10"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.0.9"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.NET.Build.Containers"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.0.18"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.0.17"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.NET.Build.Containers"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.0.29"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 8.0.28"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dotnet/sdk/security/advisories/GHSA-55jh-fwmh-39m4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-50526"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/announcements/issues/415"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/sdk/issues/55274"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dotnet/sdk"
}, {
"type" : "WEB",
"url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-50526"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-21T16:14:37Z",
"nvd_published_at" : "2026-07-14T20:17:37Z"
}
}