← Vulnerability feed

Vulnerability record · CVE-2008-5619 · published 17 December 2008

CVE-2008-5619: PHPMailer html2text.php preg_replace eval code injection

Roundcube · Webmail

The html2text.php converter bundled with PHPMailer before 5.2.10 (and used by RoundCube Webmail, Mahara and AtMail Open) passes crafted input into preg_replace with the eval switch, allowing injected PHP to run. Because the same library is embedded in multiple webmail and CMS products, a single flaw exposes several applications.

10.0 CVSS 2.0 High EPSS 59% · top 0.9% CWE-94 · Code injection
10.0CVSS 2.0 base score
59%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
34References, 4 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:C/I:C/A:C

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

critical priorityUnauthenticated remote code execution with a CVSS 2.0 score of 10, public exploit code and a very high EPSS percentile.

What it is

The html2text.php converter bundled with PHPMailer before 5.2.10 (and used by RoundCube Webmail, Mahara and AtMail Open) passes crafted input into preg_replace with the eval switch, allowing injected PHP to run. Because the same library is embedded in multiple webmail and CMS products, a single flaw exposes several applications.

Impact

An unauthenticated remote attacker can execute arbitrary code in the context of the web server, leading to full compromise of the host and any data it can reach.

Attack surface

Reachable over the network with no authentication and no user interaction, per the AV:N/AC:L/Au:N vector; the crafted input is whatever text the application feeds to the html2text conversion routine.

Exploitation

Not listed in CISA KEV, but EPSS is 0.586 (99th percentile) and multiple references carry Exploit tags, including RoundCube changesets and Exploit-DB entries 7549 and 7553, indicating public exploit code exists.

What to do

  • Upgrade PHPMailer to 5.2.10 or later, and update RoundCube, Mahara and AtMail Open to versions that bundle the fixed library.
  • If immediate upgrade is impossible, remove or disable the html2text.php converter and avoid passing untrusted input to it.
  • Search deployed code for copies of html2text.php and the preg_replace/eval pattern, since the library is often vendored rather than centrally managed.
  • Restrict outbound and lateral network access from web servers running the affected applications to limit post-exploitation movement.

Detection

  • Scan web server and application logs for requests containing PHP code or preg_replace modifiers such as /e in text submitted to conversion endpoints.
  • Monitor for unexpected child processes, file writes or outbound connections spawned by the web server user.
  • Inventory hosts and containers for PHPMailer versions below 5.2.10 and for embedded html2text.php files.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://mahara.org/interaction/forum/topic.php?id=533
http://osvdb.org/53893
http://secunia.com/advisories/33145
http://secunia.com/advisories/33170 Vendor Advisory
http://secunia.com/advisories/34789
http://sourceforge.net/forum/forum.php?forum_id=898542 Vendor Advisory
http://trac.roundcube.net/changeset/2148 Exploit
http://trac.roundcube.net/ticket/1485618 Exploit
http://www.openwall.com/lists/oss-security/2008/12/12/1
http://www.securityfocus.com/archive/1/499489/100/0/threaded
http://www.vupen.com/english/advisories/2008/3418
http://www.vupen.com/english/advisories/2008/3419
https://github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a
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://secunia.com/advisories/33145
http://secunia.com/advisories/33170 Vendor Advisory
http://secunia.com/advisories/34789
http://sourceforge.net/forum/forum.php?forum_id=898542 Vendor Advisory
http://trac.roundcube.net/changeset/2148 Exploit
http://trac.roundcube.net/ticket/1485618 Exploit
http://www.openwall.com/lists/oss-security/2008/12/12/1
http://www.securityfocus.com/archive/1/499489/100/0/threaded
http://www.vupen.com/english/advisories/2008/3418
http://www.vupen.com/english/advisories/2008/3419
https://github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a
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

Track CVE-2008-5619 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2020-12641Roundcube Webmail OS command injection via image conversion path settingsRoundcube Webmail before 1.4.4 passes the im_convert_path and im_identify_path configuration settings to a shell without sanitization in rcube_image.…KEVEPSS 84%analysed9.3CVE-2024-42009Roundcube Webmail desanitization XSS in message_body()Roundcube Webmail through 1.5.7 and 1.6.x through 1.6.7 contains a cross-site scripting flaw caused by a desanitization issue in message_body() in pr…KEVEPSS 83%analysed8.8CVE-2025-49113Roundcube Webmail PHP Object Deserialization RCE via _from ParameterRoundcube Webmail before 1.5.10 and 1.6.x before 1.6.11 fails to validate the _from parameter in program/actions/settings/upload.php, allowing PHP ob…KEVEPSS 99%analysed7.8CVE-2017-16651Roundcube Webmail file disclosure via attachment pluginRoundcube Webmail before 1.1.10, 1.2.x before 1.2.7, and 1.3.x before 1.3.3 allows an authenticated user to read arbitrary files on the host filesyst…KEVEPSS 46%analysed6.1CVE-2025-68461Roundcube Webmail XSS via SVG animate tagRoundcube Webmail before 1.5.12 and 1.6 before 1.6.12 is vulnerable to cross-site scripting through the animate tag in an SVG document. Because the f…KEVEPSS 27%analysed6.1CVE-2024-37383Roundcube Webmail XSS via SVG animate attributesRoundcube Webmail before 1.5.7 and 1.6.x before 1.6.7 is vulnerable to cross-site scripting through SVG animate attributes. Because the flaw sits in …KEVEPSS 73%analysed6.1CVE-2023-43770Roundcube Webmail XSS via crafted links in plain-text emailsRoundcube before 1.4.14, 1.5.x before 1.5.4, and 1.6.x before 1.6.3 is vulnerable to cross-site scripting because of how rcube_string_replacer.php ha…KEVEPSS 64%analysed

Source: NIST National Vulnerability Database (record CVE-2008-5619), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.