CVE-2023-24941: Microsoft Network File System Remote Code Execution
A remote code execution vulnerability exists in Microsoft Network File System (NFS) when handling NFSv4.1 calls containing utf8strings while the server is low on memory. An unauthenticated attacker could send a crafted call to trigger a failed buffer allocation and write a null byte to an invalid buffer, potentially leading to remote code execution.
Published on zerodayinitiative.com
A remote code execution vulnerability has been reported in Microsoft Network File System (NFS). The vulnerability is triggered when handling incoming NFSv4.1 calls.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code does not properly handle a failed buffer allocation when parsing a utf8string, resulting in a null termination byte being written to an invalid buffer.
Impact
Successful exploitation could result in remote code execution, but the attacker must first cause the server to be low on memory.
What the attacker needed
Server low on memory; NFSv4.1 enabled; network access to port 2049
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 write-up has not been written yet. The Original tab links to the source.
This report describes a flaw in Microsoft's NFS file-sharing service. When the server is low on memory and receives a specially crafted request with a long string, it fails to handle the memory allocation error properly and writes data to the wrong place. An attacker could use this to run their own code on the server without needing to log in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.