Description
html2text.php in Chuggnutt HTML to Text Converter, as used in PHPMailer before 5.2.10, RoundCube Webmail (roundcubemail) 0.2-1.alpha and 0.2-3.beta, Mahara, and AtMail Open 1.03, allows remote attackers to execute arbitrary code via crafted input that is processed by the preg_replace function with the eval switch.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | roundcube | 0.1.1-9 | — |
| Debian 13 | roundcube | 0.1.1-9 | — |
| Debian 12 | roundcube | 0.1.1-9 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 2
- Roundcube Webmail 0.2-3 Beta - Code Execution EDB-7549 · webapps · Dec 22, 2008 · verified
- Roundcube Webmail 0.2b - Remote Code Execution EDB-7553 · webapps · Dec 22, 2008 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phpmailer/phpmailer | < 5.2.10 | 5.2.10 | GHSA-v5c9-mmw9-829q |
References
- http://mahara.org/interaction/forum/topic.php?id=533
- 7549 exploit
- 7553 exploit
- FEDORA-2008-11234 vendor-advisory
- ADV-2008-3418 vdb-entry
- https://github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a
- http://trac.roundcube.net/changeset/2148
- 53893 vdb-entry
- http://sourceforge.net/forum/forum.php?forum_id=898542
- 34789 third-party-advisory
- ADV-2008-3419 vdb-entry
- http://trac.roundcube.net/ticket/1485618
- FEDORA-2008-11220 vendor-advisory
- [oss-security] 20081212 CVE Request - roundcubemail mailing-list
- 33170 third-party-advisory
- 33145 third-party-advisory
- 20081222 POC for CVE-2008-5619 (roundcubemail PHP arbitrary code injection) mailing-list