SB2023031540 - Ubuntu update for libphp-phpmailer
Published: March 15, 2023 Updated: July 7, 2025
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 7 secuirty vulnerabilities.
1) Remote code injection (CVE-ID: CVE-2016-10033)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to insufficient sanitization of user-supplied input passed via specially crafted “From” address to mailSend() function. A remote attacker can use backslashed double quote character (e.g. \") to pass additional commands to original mail command and execute them with privileges of the current web server user.
Successful exploitation of the vulnerability may result in system compromise.
2) Remote code injection (CVE-ID: CVE-2016-10045)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists in PHPMailer due to insufficient sanitization of user-supplied input, when Sender property is not set. A remote attacker can use backslashed double quote character (e.g. \”) to pass additional commands to original mail command and execute them with privileges of the current web server user.
Successful exploitation of the vulnerability may result in system compromise.
Note: this vulnerability exists due to incorrect fix for vulnerability SB2016122601 (CVE-2016-10033)
3) Cross-site scripting (CVE-ID: CVE-2017-11503)
The disclosed vulnerability allows a remote unauthenticated attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient validation of user-supplied data passed via specially crafted parameter to 'code_generator.phps' example script. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in victim’s browser in security context of vulnerable website.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
4) Information disclosure (CVE-ID: CVE-2017-5223)
The vulnerability allows a remote attacker to obtain access to potentially sensitive information.The vulnerability exists in PHPMailer before 5.2.22 when handling HTML documents using msgHTML() method. A remote attacker can create a specially crafted message, containing relative links to images withing message and attach arbitrary local file to e-mail message.
Successful exploitation of this vulnerability may allow an attacker to send out arbitrary system files as email attachments.
5) Object injection attack (CVE-ID: CVE-2018-19296)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to object injection attack. A remote unauthenticated attacker can send a specially crafted request, conduct object injection attack and execute arbitrary code with elevated privileges.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
6) Input validation error (CVE-ID: CVE-2020-13625)
The vulnerability allows a remote attacker to bypass implemented security restrictions
The vulnerability exists due to insufficient validation of user-supplied file attachments with a double quote character. A remote attacker can pass specially crafted filename to the application and bypass implemented security restrictions.
7) Code Injection (CVE-ID: CVE-2021-3603)
The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.
The vulnerability exists due to improper input validation. If the $patternselect parameter to validateAddress() is set to 'php' (the default, defined by PHPMailer::$validator), and the global namespace contains a function called php, it will be called in preference to the built-in validator of the same name. A remote attacker can send a specially crafted request and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Remediation
Install update from vendor's website.