CVE-2020-5255 Prevent cache poisoning via a Response Content-Type header
Attackers can cause cache poisoning leading to denial of service by exploiting missing Content-Type headers in Symfony responses.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-5255?
CVE-2020-5255 is a low-severity vulnerability in Sensiolabs Symfony, published on 30 Mar 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
In Symfony before versions 4.4.7 and 5.0.7, when a `Response` does not contain a `Content-Type` header, affected versions of Symfony can fallback to the format defined in the `Accept` header of the request, leading to a possible mismatch between the response's content and `Content-Type` header. When the response is cached, this can prevent the use of the website by other users. This has been patched in versions 4.4.7 and 5.0.7.
Which versions are affected by CVE-2020-5255?
9 open source packages ship an affected version, including symfony/http-foundation, symfony and symfony/symfony. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
symfony/http-foundation Packagist | From 4.4.0 | 4.4.7 |
symfony/http-foundation Packagist | From 4.4.0 | 4.4.7 |
symfony/http-foundation Packagist | From 5.0.0 | 5.0.7 |
symfony/http-foundation Packagist | From 5.0.0 | 5.0.7 |
symfony Bitnami | From 4.4.0 | 4.4.7, 5.0.7 |
symfony/symfony Packagist | From 4.4.0 | 4.4.7 |
3 more packages
symfony/symfony Packagist | From 4.4.0 | 4.4.7 |
symfony/symfony Packagist | From 5.0.0 | 5.0.7 |
symfony/symfony Packagist | From 5.0.0 | 5.0.7 |
Products include Sensiolabs Symfony.
How do I fix CVE-2020-5255?
Upgrade symfony/http-foundation to a fixed version for your release line: 4.4.7 or 5.0.7.
Is CVE-2020-5255 being exploited?
There is no known exploitation of CVE-2020-5255 in the wild and no public exploit code.
Other vulnerabilities in Sensiolabs Symfony
Sources
Also known as BIT-symfony-2020-5255, DEBIAN-CVE-2020-5255, GHSA-mcx4-f5f5-4859.