PHPMailer susceptible to arbitrary code execution
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 5.2.10Ecosystem versions | 5.2.10 |
Version evidence: OSV · GHSA-v5c9-mmw9-829q
View original version evidence (7 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2008-5619
- Patch github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a
- Source reference github.com/PHPMailer/PHPMailer
- Public exploit reference www.exploit-db.com/exploits/7549
- Public exploit reference www.exploit-db.com/exploits/7553
- Source reference www.redhat.com/archives/fedora-package-announce/2008-December/msg00783.html
- Source reference www.redhat.com/archives/fedora-package-announce/2008-December/msg00802.html
- Source reference mahara.org/interaction/forum/topic.php
- Source reference osvdb.org/53893
- Source reference sourceforge.net/forum/forum.php
- Patch trac.roundcube.net/changeset/2148
- Source reference trac.roundcube.net/ticket/1485618
- Security advisory www.openwall.com/lists/oss-security/2008/12/12/1