CVE-2008-5619: Phpmailer/phpmailer PHPMailer Susceptible To Arbitrary Code Vulnerability
HIGHCVE-2008-5619 is a HIGH phpmailer susceptible to arbitrary code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Phpmailer/phpmailer libraries in the Packagist ecosystem. The issue involves phpmailer susceptible to arbitrary code execution. Remediation is available by upgrading affected packages to version 5.2.10.
CVE-2008-5619 at a Glance
How to Fix CVE-2008-5619
To remediate this vulnerability, upgrade all affected Phpmailer/phpmailer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade phpmailer/phpmailer to 5.2.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for phpmailer/phpmailer
How to Check if You Are Affected
To determine whether your application is affected by CVE-2008-5619, inspect your project dependencies for Phpmailer/phpmailer:
inspect dependencies for phpmailer/phpmailer
Analyze the terminal output to locate any version of Phpmailer/phpmailer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Phpmailer/phpmailer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2008-5619 Affected Phpmailer/phpmailer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
phpmailer/phpmailer
|
Packagist |
< 5.2.10
|
5.2.10
|
References
Frequently Asked Questions
What is CVE-2008-5619?
Which Phpmailer/phpmailer versions are affected?
What version fixes CVE-2008-5619?
Is phpmailer/phpmailer affected?
What CWE is associated with CVE-2008-5619?
How can I check Packagist dependencies for CVE-2008-5619?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v5c9-mmw9-829q",
"modified" : "2022-06-17T21:23:30Z",
"published" : "2022-05-14T02:39:43Z",
"aliases" : [ "CVE-2008-5619" ],
"summary" : "PHPMailer susceptible to arbitrary code execution",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "phpmailer/phpmailer"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.2.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-5619"
}, {
"type" : "WEB",
"url" : "https://github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a"
}, {
"type" : "WEB",
"url" : "https://github.com/PHPMailer/PHPMailer"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/7549"
}, {
"type" : "WEB",
"url" : "https://www.exploit-db.com/exploits/7553"
}, {
"type" : "WEB",
"url" : "https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00783.html"
}, {
"type" : "WEB",
"url" : "https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00802.html"
}, {
"type" : "WEB",
"url" : "http://mahara.org/interaction/forum/topic.php?id=533"
}, {
"type" : "WEB",
"url" : "http://osvdb.org/53893"
}, {
"type" : "WEB",
"url" : "http://sourceforge.net/forum/forum.php?forum_id=898542"
}, {
"type" : "WEB",
"url" : "http://trac.roundcube.net/changeset/2148"
}, {
"type" : "WEB",
"url" : "http://trac.roundcube.net/ticket/1485618"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2008/12/12/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T21:23:30Z",
"nvd_published_at" : "2008-12-17T02:30:00Z"
}
}