CVE-2019-9858: debian debian_linux Path Traversal
Vulnerability summary
CVE-2019-9858 is a high (CVSS 8.8) Path Traversal vulnerability in debian debian_linux. EPSS estimates a 18.83% chance of exploitation in the next 30 days, higher than 97.2% of scored vulnerabilities. 3 public exploits are recorded.
Timeline
- 29-05-2019PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.)
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
18.83%
Chance of exploitation in the next 30 days
Percentile
97%
Versus all other CVEs
30-day change
0.00 pp
From 18.83% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundExploit Reference (ssd-disclosure.com)
Maturity: unknown
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
Horde Form File Upload Vulnerability
exploit/multi/http/horde_form_file_upload
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Debian2 products
- php-horde-form< 2.0.18-3.1 | < 2.0.15-1+deb9u1 | < 2.0.8-2+deb8u1
- debian_linuxEOL8.0 | 9.0
Horde1 product
- groupware5.2.17 | 5.2.22
Ubuntu1 product
- php-horde-formAll versions (No fix recorded)
3 vendors · 4 products
References
10 links- packetstormsecurity.com/files/152476/Horde-Form-Shell-Upload.htmlX Refsource MISCREPORTExploitThird Party AdvisoryVDB Entry
- lists.debian.org/debian-lts-announce/2019/06/msg00007.htmlMailing ListX Refsource MLISTREPORTThird Party Advisory