OS command execution via forward-slash UNC path
Published Jun 7, 2024 · Updated Feb 13, 2025
Command injection in Roundcube Webmail before 1.5.7 and 1.6.0 through 1.6.6 on Windows allows remote attackers to execute OS commands. The rcube_image.php getCommand() check rejects only backslash-prefixed network shares, so forward-slash UNC values in im_convert_path or im_identify_path pass file_exists() and become executable command paths. Exploitation requires Windows and a crafted non-default image-tool setting, and commands run with the web server process privileges.
Summary
What happened
Command injection in Roundcube Webmail before 1.5.7 and 1.6.0 through 1.6.6 on Windows allows remote attackers to execute OS commands. The rcube_image.php getCommand() check rejects only backslash-prefixed network shares, so forward-slash UNC values in im_convert_path or im_identify_path pass file_exists() and become executable command paths. Exploitation requires Windows and a crafted non-default image-tool setting, and commands run with the web server process privileges.
The record
- CVE
- CVE-2024-37385
- Published
- Jun 7, 2024
- Updated
- Feb 13, 2025
- Vendor
- Roundcube
- Product
- Roundcube Webmail
- Classifications
- CWE-77, CAPEC-248, T1059
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 7, 2024CVE publishedPublication date reported by the CVE source.
- Feb 13, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <1.5.7
- Affected versionversion=1.6.0 <1.6.7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo