OS Command Injection in Symfony - CVE-2019-18888

 

OS Command Injection in Symfony - CVE-2019-18888

Published: November 19, 2019


Vulnerability identifier: #VU22852
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-18888
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists in MimeTypeGuesser within the Symfony HttpFoundation component when parsing data passed via the $path variable. A remote attacker can with ability to upload files can execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Symfony
symfony (Debian package)
php-symfony
php-symfony3
Fedora

How to mitigate CVE-2019-18888

Install updates from vendor's website.

Symfony - addressed in versions 2.8.52, 3.4.35, 4.2.12, 4.3.8
symfony (Debian package) - addressed in versions 2.8.7+dfsg-1.3+deb9u3, 3.4.22+dfsg-2+deb10u1
php-symfony - addressed in versions 2.8.52-1.fc30, 2.8.52-1.fc31
php-symfony3 - update to 3.4.35-2.fc31

External References

Related Security Bulletins