CVE-2025-5986 in Thunderbirdinfo

Summary

by MITRE • 06/11/2025

A crafted HTML email using mailbox:/// links can trigger automatic, unsolicited downloads of .pdf files to the user's desktop or home directory without prompting, even if auto-saving is disabled. This behavior can be abused to fill the disk with garbage data (e.g. using /dev/urandom on Linux) or to leak Windows credentials via SMB links when the email is viewed in HTML mode. While user interaction is required to download the .pdf file, visual obfuscation can conceal the download trigger. Viewing the email in HTML mode is enough to load external content. This vulnerability affects Thunderbird < 128.11.1 and Thunderbird < 139.0.2.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 06/11/2025

This vulnerability represents a sophisticated sandbox escape mechanism within the Thunderbird email client that exploits the trust relationship between email rendering and external resource loading. The flaw manifests through crafted mailbox:/// protocol links embedded in HTML emails that bypass normal user consent mechanisms for file downloads. When an email containing such malicious links is viewed in HTML mode, the client automatically initiates downloads to the user's desktop or home directory without requiring explicit user confirmation. This behavior constitutes a violation of the principle of least privilege and demonstrates a critical failure in the email client's security model. The vulnerability specifically affects Thunderbird versions prior to 128.11.1 and 139.0.2, indicating a persistent issue in the application's handling of external protocol handlers and file system access permissions. The attack vector leverages the inherent trust users place in email clients to render HTML content, creating an environment where malicious actors can exploit the application's automatic resource loading capabilities.

The technical implementation of this vulnerability involves the manipulation of mailbox:/// protocol handlers to create automatic file download triggers that circumvent standard security boundaries. These protocol links can be crafted to target specific file types including PDF documents, which are then automatically saved to the user's local filesystem. The mechanism operates through the email client's HTML rendering engine which processes external content references without proper validation of the download intent or user consent. The vulnerability is particularly concerning because it can be triggered automatically upon email viewing, requiring only the HTML rendering mode to be enabled. This behavior exposes users to potential disk space exhaustion attacks where malicious actors can flood the filesystem with large files, and credential theft through SMB protocol exploitation. The automatic nature of the download process means that even when auto-saving is disabled at the application level, the malicious protocol handler can still bypass these protections through the specific implementation of mailbox:/// links. This represents a classic case of insufficient input validation and improper access control, as outlined in CWE-20 and CWE-284, where external protocol handlers are not properly sandboxed from the user's file system.

The operational impact of this vulnerability extends beyond simple data theft or system resource consumption to encompass potential credential compromise and persistent system degradation. Attackers can exploit this vulnerability to fill disk space with large files, potentially causing system instability or denial of service conditions, particularly when utilizing /dev/urandom or similar data sources on Linux systems. The ability to automatically download files to the user's desktop or home directory creates opportunities for malicious payload delivery, where additional malware could be silently installed without user awareness. More critically, when combined with SMB protocol exploitation, the vulnerability can facilitate credential theft by automatically attempting to connect to network resources using the user's current authentication context. This attack vector can be particularly devastating in enterprise environments where users may have elevated privileges or access to sensitive network resources. The vulnerability also enables social engineering attacks where visual obfuscation techniques can hide the download trigger from casual inspection, making detection more difficult. The requirement for only HTML mode viewing to trigger the exploit means that users cannot protect themselves by simply viewing emails in plain text format, which undermines traditional email security practices.

Mitigation strategies for this vulnerability must address both the immediate security gap in Thunderbird's protocol handling and the broader implications for email client security. The most effective immediate solution involves upgrading to Thunderbird versions 128.11.1 or 139.0.2, which contain the necessary patches to properly validate and control mailbox:/// protocol handlers. Organizations should implement email filtering policies that block or quarantine emails containing suspicious protocol links, particularly those using mailbox:/// schemes. Network-level controls can be deployed to monitor and restrict access to potentially malicious external resources, though this approach is less effective against local file system attacks. Users should be educated about the risks of viewing HTML emails from untrusted sources and the importance of keeping email clients updated. Security teams should monitor for indicators of compromise related to automatic file downloads or unusual network connections when viewing HTML emails. The vulnerability demonstrates the importance of proper sandboxing and access control mechanisms, aligning with ATT&CK technique T1059.007 for command and script interpreter usage and T1071.004 for application layer protocol usage. Additional defensive measures include implementing file system access monitoring and restricting the ability of email clients to automatically download content to user directories, though these approaches may impact legitimate functionality and user experience.

Responsible

Mozilla

Reservation

06/10/2025

Disclosure

06/11/2025

Moderation

accepted

CPE

ready

EPSS

0.00466

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!