Skip to content
RCE Advisory Advanced CVE-2024-43581

Microsoft OpenSSH for Windows Remote Code Execution Vulnerability (CVE-2024-43581)

A vulnerability in Microsoft OpenSSH for Windows could allow an attacker with low privileges to achieve remote code execution by planting a malicious file in a location the victim later uses. Exploitation requires the victim to perform a specific file management operation, such as copying files or running a command, and the attacker must know the target environment.

Tom Deseyn Follow

Originally disclosed on Microsoft

High 7.1 View original

FAQ

According to the CVSS metric, privileges required is low (PR:L). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to have access to the location where the target file will be run. They would then need to plant a specific file that would be used as part of the exploitation.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to gather information specific to the environment and take additional actions prior to exploitation to prepare the target environment.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Successful exploitation of this vulnerability requires the victim to perform a specific file management operation to trigger the vulnerability.

FAQ

According to the CVSS metric, the attack vector is network (AV:N) and the user interaction is required (UI:R). What is the target context of the remote code execution? This attack requires a victim to perform a specific action, such as copying files or executing a command, and for an attacker with appropriate access to have pre-planted malicious files with knowledge of where they should be placed on the victim's system.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? The user would have to access a malicious folder or directory. Users should never open anything that they do not know or trust to be safe.

OpenSSH for Windows

OpenSSH for Windows

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Tom Deseyn with Red Hat. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 the OpenSSH for Windows component does not properly validate or restrict files it loads from a location an attacker can write to, allowing a planted file to be executed.

Impact

An attacker with low privileges and knowledge of the environment could achieve remote code execution if the victim performs a specific file management operation, though the attack complexity is high and user interaction is required.

What the attacker needed

Attacker has low-privilege access; attacker can plant a file in target location; attacker knows target environment details; victim performs a file operation

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.

OpenSSH is software that lets people connect to a computer remotely and run commands on it. This bug means that if an attacker can put a specially crafted file where the victim's machine will use it, and the victim then does something like copying files or running a command, the attacker's file could run as code. The attacker needs some access already and has to know details about the victim's setup, so it is not something anyone can trigger from the internet alone.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.