PHPMailer susceptible to arbitrary code execution
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | phpmailer/phpmailer | < 5.2.10 | 5.2.10 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2008-5619
- https://github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a
- https://github.com/PHPMailer/PHPMailer
- https://www.exploit-db.com/exploits/7549
- https://www.exploit-db.com/exploits/7553
- https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00783.html
- https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00802.html
- http://mahara.org/interaction/forum/topic.php?id=533
- http://osvdb.org/53893
- http://sourceforge.net/forum/forum.php?forum_id=898542
- http://trac.roundcube.net/changeset/2148
- http://trac.roundcube.net/ticket/1485618
- http://www.openwall.com/lists/oss-security/2008/12/12/1
- Weakness (CWE)
CWE-94- Platform
- Composer
- Package
phpmailer/phpmailer- Disclosed
- 14.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v5c9-mmw9-829q - CC BY 4.0
Vulnerability history: phpmailer/phpmailer
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 13
- First → latest
- 12.2016 02.2024
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 7
- Medium 3
- Low 1
Disclosures per year
- 2017: 0
- 2018: 0
- 2019: 0
- 2020: 5
- 2021: 3
- 2022: 2
- 2023: 0
- 2024: 2
- 2025: 0
- 2026: 0
earlier: 1
-
PHPMailer susceptible to arbitrary code execution this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.