CVE-2020-5255
Prevent cache poisoning via a Response Content-Type header
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
2.6
Prevent cache poisoning via a Response Content-Type header
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.
- Record
CVE-2020-5255- CVSS 3.1
- 2.6 Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L - Weakness
- CWE-435
- Updated
- 2026-11-02
EUVDEUVD-2020-0351
2.6
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.
- Record
EUVD-2020-0351- CVSS 3.1
- 2.6 Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mcx4-f5f5-4859
2.6
Prevent cache poisoning via a Response Content-Type header in Symfony
Description
When a Response does not contain a Content-Type header, Symfony falls back 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 lead to a corrupted cache where the cached format is not the right one.
Resolution
Symfony does not use the Accept header anymore to guess the Content-Type.
The patch for this issue is available here for the 4.4 branch.
Credits
I would like to thank Xavier Lacot from JoliCode for reporting & Yonel Ceruto and Tobias Schultze for fixing the issue.
- Record
GHSA-mcx4-f5f5-4859- CVSS 3.1
- 2.6 Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L - Weakness
- CWE-435
- Updated
- 2026-11-02
NVD
2.6
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.
- Record
CVE-2020-5255- CVSS 3.1
- 2.6 Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L - CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - CVSS 2.0
- 4.0 Medium
AV:N/AC:L/Au:S/C:N/I:N/A:P - Weakness
- CWE-435, CWE-20
- Updated
- 2026-11-02
OSV
4.3
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.
- Record
CVE-2020-5255- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-5255
4.3
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.
- Record
DEBIAN-CVE-2020-5255- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVGHSA-mcx4-f5f5-4859
2.6
Prevent cache poisoning via a Response Content-Type header in Symfony
Description
When a Response does not contain a Content-Type header, Symfony falls back 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 lead to a corrupted cache where the cached format is not the right one.
Resolution
Symfony does not use the Accept header anymore to guess the Content-Type.
The patch for this issue is available here for the 4.4 branch.
Credits
I would like to thank Xavier Lacot from JoliCode for reporting & Yonel Ceruto and Tobias Schultze for fixing the issue.
- Record
GHSA-mcx4-f5f5-4859- CVSS 3.1
- 2.6 Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L - Weakness
- CWE-435
- Updated
- 2026-11-02
OSVBIT-symfony-2020-5255 No score
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.
- Record
BIT-symfony-2020-5255- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
symfony/http-foundationPackagist |
4.4.0 up to 4.4.7 | 4.4.7 |
symfony/http-foundationPackagist |
5.0.0 up to 5.0.7 | 5.0.7 |
symfony/symfonyPackagist |
4.4.0 up to 4.4.7 | 4.4.7 |
symfony/symfonyPackagist |
5.0.0 up to 5.0.7 | 5.0.7 |
symfonyBitnami |
4.4.0 up to 4.4.7, 5.0.0 up to 5.0.7 | 4.4.75.0.7 |
symfonyDebian:12 |
before 4.4.8-1 | 4.4.8-1 |
symfonyDebian:13 |
before 4.4.8-1 | 4.4.8-1 |
symfonyDebian:14 |
before 4.4.8-1 | 4.4.8-1 |
symfony/http-foundationPackagist |
4.4.0 up to 4.4.7, plus listed versions v4.4.0v4.4.1v4.4.2v4.4.3v4.4.4v4.4.5v4.4.6 |
4.4.7 |
symfony/http-foundationPackagist |
5.0.0 up to 5.0.7, plus listed versions v5.0.0v5.0.1v5.0.2v5.0.3v5.0.4v5.0.5v5.0.6 |
5.0.7 |
symfony/symfonyPackagist |
4.4.0 up to 4.4.7, plus listed versions v4.4.0v4.4.1v4.4.2v4.4.3v4.4.4v4.4.5v4.4.6 |
4.4.7 |
symfony/symfonyPackagist |
5.0.0 up to 5.0.7, plus listed versions v5.0.0v5.0.1v5.0.2v5.0.3v5.0.4v5.0.5v5.0.6 |
5.0.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-5255 is a low vulnerability (CVSS 2.6) in Sensiolabs Symfony, published March 30, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.30%, the 70th percentile. Fixed in symfony/http-foundation 4.4.7.
References
github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859
github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6
symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ
nvd.nist.gov/vuln/detail/CVE-2020-5255
lists.fedoraproject.org/archives/list/[email protected]/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ
Show 5 moreShow less
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2020-5255.yaml
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5255.yaml
symfony.com/cve-2020-5255
github.com/advisories/GHSA-mcx4-f5f5-4859
security-tracker.debian.org/tracker/CVE-2020-5255