CVE-2019-9858 Details
Description
Remote code execution was discovered in Horde Groupware Webmail 5.2.22 and 5.2.17. Horde/Form/Type.php contains a vulnerable class that handles image upload in forms. When the Horde_Form_Type_image method onSubmit() is called on uploads, it invokes the functions getImage() and _getUpload(), which uses unsanitized user input as a path to save the image. The unsanitized POST parameter object[photo][img][file] is saved in the $upload[img][file] PHP variable, allowing an attacker to manipulate the $tmp_file passed to move_uploaded_file() to save the uploaded file. By setting the parameter to (for example) ../usr/share/horde/static/bd.php, one can write a PHP backdoor inside the web root. The static/ destination folder is a good candidate to drop the backdoor because it is always writable in Horde installations. (The unsanitized POST parameter went probably unnoticed because it's never submitted by the forms, which default to securely using a random path.)
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://packetstormsecurity.com/files/152476/Horde-Form-Shell-Upload.html | CVE | ExploitThird Party AdvisoryVDB Entry |
| https://lists.debian.org/debian-lts-announce/2019/06/msg00007.html | CVE | Mailing ListThird Party Advisory |
| https://seclists.org/bugtraq/2019/Jun/31 | CVE | Mailing ListThird Party Advisory |
| https://ssd-disclosure.com/?p=3814&preview=true | CVE | ExploitThird Party Advisory |
| https://www.debian.org/security/2019/dsa-4468 | CVE | Third Party Advisory |
| http://packetstormsecurity.com/files/152476/Horde-Form-Shell-Upload.html | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://lists.debian.org/debian-lts-announce/2019/06/msg00007.html | [email protected] | Mailing ListThird Party Advisory |
| https://seclists.org/bugtraq/2019/Jun/31 | [email protected] | Mailing ListThird Party Advisory |
| https://ssd-disclosure.com/?p=3814&preview=true | [email protected] | ExploitThird Party Advisory |
| https://www.debian.org/security/2019/dsa-4468 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| horde groupware | 5.2.17 5.2.22 |
CPE
Remediation
| |
| debian debian linux | 8.0 9.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 18, 2022 | Modified Analysis | [email protected] |
| Jul 21, 2021 | CWE Remap | [email protected] |
| Jun 24, 2019 | CVE Modified | [email protected] |
| Jun 21, 2019 | CVE Modified | [email protected] |
| Jun 17, 2019 | CVE Modified | [email protected] |
| May 30, 2019 | Initial Analysis | [email protected] |