CVE-2016-9920

HIGH

Roundcube Webmail < 1.1.7 and 1.2.x < 1.2.3 - Authenticated Remote Code Execution via Sendmail Envelope-From Address

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2016-9920. PoCs published by t0kx.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2016-9920, a remote code execution vulnerability in Roundcube Webmail versions 1.0.0 to 1.2.2. The exploit leverages unsanitized input in the `mail()` function's fifth argument to execute arbitrary commands via sendmail's `-X` option.

Description

steps/mail/sendmail.inc in Roundcube before 1.1.7 and 1.2.x before 1.2.3, when no SMTP server is configured and the sendmail program is enabled, does not properly restrict the use of custom envelope-from addresses on the sendmail command line, which allows remote authenticated users to execute arbitrary code via a modified HTTP request that sends a crafted e-mail message.

Exploits (1)

nomisec WORKING POC 48 stars
by t0kx · poc
https://github.com/t0kx/exploit-CVE-2016-9920

This repository contains a functional exploit for CVE-2016-9920, a remote code execution vulnerability in Roundcube Webmail versions 1.0.0 to 1.2.2. The exploit leverages unsanitized input in the `mail()` function's fifth argument to execute arbitrary commands via sendmail's `-X` option.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Roundcube Webmail 1.0.0 to 1.2.2
Auth required
Prerequisites: Roundcube configured to use PHP's `mail()` function · PHP's `mail()` function configured to use sendmail · PHP `safe_mode` turned off · Knowledge of the absolute path of the webroot
devstral-2 · analyzed Feb 18, 2026 Full analysis →

References (5)

Core 5
Core References
Exploit, Third Party Advisory x_refsource_misc
https://blog.ripstech.com/2016/roundcube-command-execution-via-email/
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/94858
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/12/08/10
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201612-44
Release Notes, Vendor Advisory x_refsource_confirm
https://roundcube.net/news/2016/11/28/updates-1.2.3-and-1.1.7-released

Scores

CVSS v3 7.5
EPSS 0.0562
EPSS Percentile 91.9%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-284
Status published
Products (4)
roundcube/webmail 1.2.0
roundcube/webmail 1.2.1
roundcube/webmail 1.2.2
roundcube/webmail < 1.1.6
Published Dec 08, 2016
Tracked Since Feb 18, 2026