Microsoft is releasing this security advisory to provide information about a vulnerability in .NET. This advisory provides guidance on updating affected applications and components.
The VSTest artifact postprocessor can consume a forged executionComplete.json from another local user and execute attacker-controlled output handling.
## Announcement
Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/517
The tables list affected versions of Microsoft.TestPlatform.CLI and their patched versions. The VSTest CLI is also bundled in the .NET SDK; SDK versions are listed separately below. Updating a separately installed CLI package does not replace the SDK-bundled test runner.
Microsoft.TestPlatform.CLI is affected starting with 17.2.0-preview-20220301-01, including the first stable release, 17.2.0. Use a patched version listed below for a compatible servicing line.
Stable 18.10.1 remains affected; use Microsoft.TestPlatform.CLI 18.10.2 on that servicing line.
### Other affected VSTest NuGet versions
Package | Affected version | Patched version
--- | --- | ---
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.4.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.4.1 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.5.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.6.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.6.1 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.6.2 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.6.3 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.7.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.7.1 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.7.2 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.9.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.10.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 17.13.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.3.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.4.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.5.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.5.1 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.6.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.8.0 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.8.1 | Use a compatible patched version listed above
[Microsoft.TestPlatform.CLI](https://www.nuget.org/packages/Microsoft.TestPlatform.CLI) | = 18.9.0 | Use a compatible patched version listed above
These releases have no same-line fixed package in this update. Move to a compatible fixed servicing line listed above.
### Affected VSTest prerelease versions
The following table applies to Microsoft.TestPlatform.CLI.
Affected version | Patched version
--- | ---
= 17.3.0-preview-20220426-02 | Use a compatible patched version listed above
= 17.3.0-preview-20220530-08 | Use a compatible patched version listed above
= 17.3.0-preview-20220612-01 | Use a compatible patched version listed above
= 17.4.0-preview-20220707-01 | Use a compatible patched version listed above
= 17.4.0-preview-20220726-02 | Use a compatible patched version listed above
= 17.4.0-preview-20221003-03 | Use a compatible patched version listed above
= 17.4.0-release-20220926-01 | Use a compatible patched version listed above
= 17.5.0-preview-20221003-04 | Use a compatible patched version listed above
= 17.5.0-preview-20221221-03 | Use a compatible patched version listed above
= 17.6.0-preview-20230223-05 | Use a compatible patched version listed above
= 17.7.0-preview-23364-03 | Use a compatible patched version listed above
= 17.7.0-preview.23280.1 | Use a compatible patched version listed above
= 17.8.0-preview-23371-04 | Use a compatible patched version listed above
= 17.8.0-preview-23424-02 | Use a compatible patched version listed above
= 17.8.0-release-23468-02 | Use a compatible patched version listed above
= 17.9.0-preview-23503-02 | Use a compatible patched version listed above
= 17.9.0-preview-23531-01 | Use a compatible patched version listed above
= 17.9.0-preview-23577-04 | Use a compatible patched version listed above
= 17.9.0-release-23619-01 | Use a compatible patched version listed above
= 17.10.0-preview-24080-01 | Use a compatible patched version listed above
= 17.10.0-release-24177-07 | Use a compatible patched version listed above
= 17.11.0-release-24352-06 | Use a compatible patched version listed above
= 17.11.0-release-24373-02 | Use a compatible patched version listed above
= 17.14.0-preview-25107-01 | Use a compatible patched version listed above
Earlier SDKs in these serviced feature bands must be updated. The first .NET 11 general-availability SDK is fixed; its earlier preview and release-candidate SDKs require an update to 11.0.100.
## Advisory FAQ
### <a name="how-affected"></a>How do I know if I am affected?
Check the version of Microsoft.TestPlatform.CLI used by your standalone VSTest installation.
Run dotnet --list-sdks to list installed SDKs and dotnet --version from the project directory to identify the selected SDK, including any global.json selection.
### <a name="how-fix"></a>How do I fix the issue?
For standalone VSTest CLI installations, replace Microsoft.TestPlatform.CLI with its patched version listed above. For releases without a same-line fix, use a compatible fixed servicing line listed above.
Install a fixed SDK listed above and ensure test invocations select it. Updating a separately installed CLI package does not replace VSTest embedded in an older SDK.
## Other Information
### Reporting Security Issues
If 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).
Security 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.
### Support
You can ask questions about this issue in the VSTest repository at https://github.com/microsoft/vstest. 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.
### Disclaimer
The 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.
Your account is suspended: you cannot comment, reply, edit or report. You can still delete your own comments.
formatting
↵↵
empty line: new paragraph
↵
line break: kept as is
*…*
emphasis
**…**
bold
`…`
inline code
```
on its own line: starts and ends a code block
> …
quote
- …
list
1. …
numbered list
[…](https://…)
link (http and https only)
https://…
bare address: link
CVE-2026-1234
links to that vulnerability on nday
\*
shows the character itself
Headings, images, tables, nested lists and HTML are shown as plain text.
Links from new accounts are shown as plain text; CVE IDs are always linked.
reported
# キーボードショートカット
j / k
次の行 / 前の行(一覧の行またはイベント)
Enter
カーソル位置の脆弱性を開く
/
検索(Esc で入力欄を抜ける)
y
CVE 番号をコピー
o
イベントの出典を開く(脆弱性ページ)
u
戻る
?
このヘルプを表示 / 非表示
sign inaccountmodadminAdminProfileFollowingSecurityDeveloperSign outSigned in.Sign-in method linked to your account.Sign-in was cancelled at the provider; nothing changed.That login already belongs to another nday account, or this account already has one from the same provider. Nothing was linked.Sign-in did not complete. Try again.You are still signed in as before: that login belongs to another nday account, or to none yet. Sign out first to use it.Linking was not completed because your last sign-in is no longer recent. Confirm it's you on the account page, then link again.This account is suspended, so new sign-in methods cannot be linked.Dismissworking…Delete this comment? This cannot be undone.Hidden by a moderator: {reason}text (moderators only)earlier versions: {n}replaced at {time}Posting needs the community rules accepted (version {version}).The community rules changed (version {version}); read and accept them to continue.Reported. A moderator will look at it.You have already reported this comment.You are signed out. Sign in again to continue.The request was refused as cross-site. Reload the page and try again.The session token changed. Reload the page and try again.Your account is suspended.Choose a handle on your account page first.Accept the current community rules first.Only moderators can do this.Only the author can do this.You cannot report your own comment.This comment changed in the meantime. Reload the page to see it as it is now.This comment or vulnerability does not exist (any more).Not a valid CVE ID.Only a visible top-level comment can get replies.This thread has reached its reply limit.You posted the same text here a moment ago.A comment needs 1 to {max} characters.Comments cannot be posted from this site language.Unknown purpose, or a purpose on a reply. Reload the page and try again.The reason is missing or too long.The note is too long.Unknown resolution.This position in the list is no longer valid. Reload the page.The request was malformed. Reload the page and try again.The text is too large.Too many requests. Try again in {seconds} s.Too many requests. Try again later.Daily limit reached. Try again after {time}.The server is busy. Try again in a moment.This address does not take comments. Open the page on the main site.Server error. Try again later.Network error: nday could not be reached. Check the connection and try again.The community rules changed while you were reading. Read them again.Write something first.Too long: {n} characters, at most {max}.Tick the box to accept the community rules first.Something went wrong ({code}). Try again.No comments yet.The discussion could not be loaded right now.more commentsfirst commentsmore repliesreplies[deleted account]link to this commenteditedposted on the {language} siteHidden by a moderator.Deleted by its author.technical analysisreproduction reportfix reportdetection methodquestionPlease include the affected version, the environment (OS, configuration), what you did and what happened, and your source.Please include the fixed version or patch, the environment, how you checked the fix and what happened, and your source.残り {n} 件を表示X で見る投稿を読み込めませんでした。リストの研究者が X でこの CVE に触れた投稿は、まだ収集していません。続きを読む閉じるsending…Sent. An editor will look at it; you can follow its status here.titlesummaryaffected products or versionsfix informationtimeline eventsource linksotherwaiting for an editoracceptednot acceptedsent {at}Editors' note: {note}Sign in first.Your account is suspended.Choose a public handle on your account page first.Accept the current community rules on your account page first.The page's session expired; try again.The request was refused; reload the page and try again.Choose what is wrong.Write what is wrong, within the length limit.The evidence link must be a full http:// or https:// address.You already have several reports on this vulnerability waiting for an editor; wait until they are handled.This vulnerability already has many reports waiting for an editor; try again later.You reached the limit of reports for 24 hours; try again later.Too many requests; wait a moment and try again.This vulnerability was not found.The report is too large.Network error; try again.Write what is wrong first.Too long: at most {max} characters.Something went wrong; try again later.