Aspire Elevation of Privilege Vulnerability (CVE-2026-120778)
A temporary file was created in a directory with insecure permissions in .NET Aspire, allowing an authorised attacker to elevate privileges locally. An attacker could execute code with the permissions of another user on the affected system, gaining access to that user's data and resources.
Description
Creation of temporary file in directory with insecure permissions in .NET Aspire allows an authorized attacker to elevate privileges locally.
FAQ
What privileges could an attacker gain by successfully exploiting this vulnerability? An attacker could execute code with the permissions of another user on the affected system. This could give the attacker access to data and resources available to that user.
Aspire
Aspire
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a temporary file was created in a directory whose permissions allowed other local users to read, replace or otherwise interfere with it.
Impact
An attacker could execute code with the permissions of another user on the affected system, potentially reaching that user's data and resources.
What the attacker needed
Local access to the affected system; an authorised account on that system
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When a program creates a temporary file, it should put it somewhere only the right people can reach. Here, the folder was too open, so someone already on the machine could interfere with that file. That let them run their own code as a different user, which is a step up in power.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.