CVE-2026-49103
Deferred Deferred - Pending Action
Remote File Write in Webmin Mailbox Attachment

Publication date: 2026-05-27

Last updated on: 2026-05-27

Assigner: MITRE

Description
Webmin before 2.640 does not safely construct a filename for saving of an attachment within the mailboxes component. This occurs in mailboxes/detachall.cgi.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-27
Last Modified
2026-05-27
Generated
2026-06-16
AI Q&A
2026-05-27
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
webmin webmin to 2.640 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-24 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in Webmin versions before 2.640, specifically in the mailboxes component's detachall.cgi script. The issue is that the software does not safely construct a filename when saving an attachment, which can lead to security risks.

Impact Analysis

Because the filename for saving attachments is not safely constructed, an attacker could potentially exploit this to execute unauthorized actions, such as overwriting files or executing malicious code. This can lead to significant security breaches, including data loss, system compromise, or unauthorized access.

Compliance Impact

The vulnerability in Webmin before version 2.640 involves unsafe construction of filenames when saving attachments in the mailboxes component, which can lead to risks such as path traversal or script execution attacks.

Such security weaknesses can potentially lead to unauthorized access or manipulation of sensitive data, which may impact compliance with data protection standards and regulations like GDPR and HIPAA that require secure handling and protection of personal and health information.

By allowing malicious attachments to be saved or executed improperly, this vulnerability could result in data breaches or unauthorized disclosure, thereby violating confidentiality and integrity requirements mandated by these regulations.

Therefore, until patched, systems using vulnerable versions of Webmin may face increased risk of non-compliance with common security and privacy standards.

Detection Guidance

This vulnerability involves unsafe filename construction in the mailboxes component of Webmin before version 2.640, specifically in mailboxes/detachall.cgi. Detection would involve identifying if your system is running a vulnerable version of Webmin (prior to 2.640) and if the mailboxes component is in use.

Since the vulnerability relates to unsafe handling of attachment filenames, you can check the Webmin version installed on your system using commands like:

  • webmin --version
  • dpkg -l | grep webmin (on Debian-based systems)
  • rpm -qa | grep webmin (on RPM-based systems)

Additionally, monitoring HTTP requests to the mailboxes/detachall.cgi endpoint for suspicious or malformed attachment filenames could help detect exploitation attempts, but no specific detection commands or signatures are provided in the available information.

Mitigation Strategies

The primary mitigation step is to upgrade Webmin to version 2.640 or later, where the vulnerability has been fixed by sanitizing and validating attachment filenames in the mailboxes component.

The fix includes removing dangerous characters from filenames, normalizing path separators, stripping directory paths, and ensuring filenames are safe to prevent path traversal and script execution attacks.

If immediate upgrade is not possible, consider restricting access to the mailboxes/detachall.cgi endpoint and monitoring for suspicious activity related to attachment handling.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-49103. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart