Sceawere
Vulnerability Detail
CVE-2026-93012UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
Email::Sender::Transport::Sendmail OS Command Injection
Vulnerability Metadata
- Severity
- Critical
- Score / CVSS
- 9.8
- Creation Date
- 1d ago
- Vendor
- —
- Product
- N/A
- Attack Type
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Complexity
- LOW
Narrative and Response
Description
Email::Sender::Transport::Sendmail versions before 2.602 for Perl allow arbitrary command execution on Windows sending a message whose envelope address reaches the shell in _sendmail_pipe. On MSWin32 the envelope sender and every recipient go into a single command string, which open() passes to a shell. Every other platform gets the list form, which runs sendmail directly. When the caller supplies no envelope, Email::Sender::Simple takes the recipients from the To and Cc headers and the sender from the From header. An attacker who controls one of those header addresses runs commands as the sending process.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "9.8",
"pubDate": "2026-09-21T18:17:16.137Z",
"pubdate": "2026-09-21T18:17:16.137Z",
"executiveSummary": "The Email::Sender::Transport::Sendmail module, specifically versions prior to 2.602, contains a critical OS command injection vulnerability when executing on the MSWin32 platform.\nThe vulnerability arises from the insecure handling of envelope sender and recipient addresses within the _sendmail_pipe function, which utilizes the open() function to pass command strings directly to the system shell.\nAn attacker capable of influencing the 'From', 'To', or 'Cc' headers in an email—often processed by Email::Sender::Simple—can inject arbitrary shell commands.\nThe execution of these commands occurs with the privileges of the process running the application, leading to potential Remote Code Execution (RCE).\nThis flaw is specific to Windows environments, as other platforms correctly invoke the sendmail binary using the list-form of open(), which bypasses the shell interpreter.\nSuccessful exploitation requires the application to process attacker-controlled email headers and execute the transport mechanism on a Windows host, posing a severe risk to system integrity and data confidentiality.",
"technicalDetails": "The root cause of this vulnerability lies in the platform-specific implementation of the _sendmail_pipe function within Email::Sender::Transport::Sendmail. On the MSWin32 platform, the module concatenates envelope sender and recipient addresses into a single command string that is subsequently passed to the system shell via Perl's open() function.\nUnlike Unix-like systems, where the list form of open() is utilized to bypass shell interpolation by executing the binary directly, the Windows implementation relies on the shell to interpret the command string. This behavior exposes the system to command injection when metadata extracted from email headers is treated as part of the shell execution chain.\nThe attack flow begins when Email::Sender::Simple is used to dispatch mail. If the caller does not explicitly provide an envelope, the library automatically populates the sender and recipient addresses by parsing the 'From', 'To', and 'Cc' headers. An attacker who can influence the contents of these headers can inject shell metacharacters (such as '&', '|', or ';') into the address strings.\nWhen _sendmail_pipe constructs the command line, these injected characters are interpreted by the Windows shell, allowing for the execution of arbitrary commands. For example, by providing a malformed email address containing shell-specific operators, an attacker can terminate the intended command and append malicious payloads. The command is then executed in the context of the user or service process that triggered the email transmission.\nBecause the payload is executed directly by the shell, the attacker gains the ability to perform any action permitted by the application's service account, including file system modification, data exfiltration, or the installation of persistent malicious code. There is no requirement for prior authentication to the module itself; the vulnerability is triggered automatically as part of the standard message handling pipeline, provided the attacker-controlled input is passed to the transport layer without proper sanitization.\nThis vulnerability is confined to MSWin32 environments, as other platforms utilize a safer execution pattern that does not involve the shell for command construction, thereby neutralizing the primary attack vector."
}