Description (CNA)
Horde Virtual File System (VFS) API before 3.0.1 contains an OS command injection vulnerability in the Horde_Vfs_Smb driver where the _escapeShellCommand() method fails to sanitize command substitution sequences, allowing authenticated attackers to inject arbitrary shell commands through user-controlled filenames. Attackers can supply malicious filenames containing unescaped command substitution payloads through operations such as file upload, folder creation, rename, or deletion, which are interpolated into a double-quoted shell context and executed via proc_open() through /bin/sh -c before smbclient runs, resulting in arbitrary command execution on the underlying system.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| horde / Vfs | affected 0 before 3.0.1 |
CWE
CWE-78
References
- https://github.com/horde/Vfs/releases/tag/v3.0.1
- https://github.com/horde/Vfs/pull/10
- https://github.com/horde/Vfs/commit/41f74b4acfc144e09013d04dd121e0a5da808361
- https://www.vulncheck.com/advisories/horde-vfs-os-command-injection-via-horde-vfs-smb-driver
ADP enrichment
No English description supplied.
No references supplied.