CVE-2020-5255 Prevent cache poisoning via a Response Content-Type header

Low 2.6 Published Updated

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.

Weakness: CWE-20, CWE-435

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.

PackageAffectedFixed in
symfony/http-foundation PackagistFrom 4.4.04.4.7
symfony/http-foundation PackagistFrom 4.4.04.4.7
symfony/http-foundation PackagistFrom 5.0.05.0.7
symfony/http-foundation PackagistFrom 5.0.05.0.7
symfony BitnamiFrom 4.4.04.4.7, 5.0.7
symfony/symfony PackagistFrom 4.4.04.4.7
3 more packages
symfony/symfony PackagistFrom 4.4.04.4.7
symfony/symfony PackagistFrom 5.0.05.0.7
symfony/symfony PackagistFrom 5.0.05.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.

All Sensiolabs Symfony vulnerabilities

Sources

Also known as BIT-symfony-2020-5255, DEBIAN-CVE-2020-5255, GHSA-mcx4-f5f5-4859.

Is CVE-2020-5255 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free