Visual Studio Code Elevation of Privilege Vulnerability (CVE-2022-38020)
Visual Studio Code had an elevation of privilege vulnerability where a user opening a malicious file in a directory could allow an attacker to execute code in the context of another VS Code user. The text does not provide technical details of the flaw.
FAQ
According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? The user would have be enticed to open a malicious file in a directory. Users should never open anything that they do not know or trust to be safe.
FAQ
What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could execute code in the context of another Visual Studio Code user on the vulnerable system.
Visual Studio Code
Visual Studio Code
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 flaw in how Visual Studio Code handles files opened from a directory, allowing code execution in another user's context.
What the attacker needed
User opens a malicious file in a directory
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.
This is a security flaw in Visual Studio Code, a code editor. It means that if someone opens a harmful file, another person could run their own code as if they were that user, potentially taking control. The exact cause is not explained here.
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.