CVE-2019-9858
Reported by mitre · Published May 29, 2019
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.)
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
Timeline
- Apr 9, 2019 PoC Published (3 in total, the first dated here)
- May 29, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 CVE Updated
- Apr 5, 2026 Distribution Patch
- Apr 5, 2026 Security Advisory (2 in total, the first dated here)
- Sep 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-9858
vulnetix vdb fixes CVE-2019-9858
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-9858/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- [debian-lts-announce] 20190616 [SECURITY] [DLA 1822-1] php-horde-form security update mailing-listx_refsource_MLIST
- DSA-4468 vendor-advisoryx_refsource_DEBIAN
- 20190624 [SECURITY] [DSA 4468-1] php-horde-form security update mailing-listx_refsource_BUGTRAQ