CVE-2025–24071 Simplified
A specially crafted .library-ms file inside a zip archive causes Windows Explorer to automatically send an SMB authentication request to an attacker-controlled server, leaking the victim's NTLM hash. An attacker could capture this hash for offline cracking or relay attacks.
medium.com
Published on medium.com
CVE-2025–24071 is a vulnerability in Windows File Explorer that allows unauthorized disclosure of NTLM hashes. When a user extracts a specially crafted .zip archive containing a malicious .library-ms file, Windows Explorer automatically parses the file and initiates an SMB authentication request to an…
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 Windows Explorer automatically processes .library-ms files without warning, causing an outbound SMB authentication request to a remote server specified in the file.
Impact
The victim's NTLM hash could be leaked, allowing an attacker to crack it offline or use it in relay attacks; blocking outbound SMB traffic or using SMB signing can prevent or limit this.
What the attacker needed
Victim extracts a malicious zip archive; outbound SMB traffic allowed; attacker controls an SMB server
The fix
Apply Microsoft security patches for CVE-2025-24071; additionally block outbound SMB traffic, disable NTLM where possible, and use SMB signing.
How it was found
- The attacker creates a malicious .library-ms file pointing to their SMB server
- Attacker packages the file into a .zip archive
- The victim extracts the archive on a Windows machine
- Windows Explorer automatically parses the .library-ms file
- SMB request is sent to the attacker’s server with the victim’s NTLM hash
- The attacker captures the hash using responder or impacket-smbserver for offline cracking or relay attacks
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.
When you extract a zip file, Windows Explorer may automatically open certain files inside it. A malicious file can trick Windows into contacting a server controlled by an attacker and sending a secret password hash (a scrambled version of your login credential) without you doing anything else. The attacker can then try to crack that hash or use it to impersonate you.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.