Argument injection in a MimeTypeGuesser in Symfony
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/http-foundation Packagist |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| symfony/http-foundation Packagist |
|
|
| symfony/mime Packagist |
|
|
| symfony/symfony Packagist |
|
|
An issue was discovered in Symfony 2.8.0 through 2.8.50, 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. If an application passes unvalidated user input as the file for which MIME type validation should occur, then arbitrary arguments are passed to the underlying file command. This is related to symfony/http-foundation (and symfony/mime in 4.3.x).
From the CVE record · mitre
Symfony MIME type validation can pass arbitrary arguments to the underlying file command when an application uses unvalidated user input as the file to check. An attacker who can supply that input can trigger this behavior; the input does not specify whether authentication or user interaction is required.
Check applications using symfony/http-foundation or symfony/symfony versions >=2.0.0 <2.8.52, >=3.0.0 <3.4.35, >=4.0.0 <4.2.12, or >=4.3.0 <4.3.8, and symfony/mime versions >=4.3.0 <4.3.8.