Feed
2.6LOW
CVE-2020-5255Prevent cache poisoning via a Response Content-Type header in Symfony
A low-severity vulnerability reachable over the network, needing low privileges and user interaction. EPSS estimates a 1.3% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.3%
- percentile 70%
- Fix
- Named by a source
- CVE published 30 Mar 2020 (approx.)
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.3% (+1) · Network attack vector (+10)
Immediate actions
- symfony/http-foundation (Packagist): upgrade to 4.4.7 / 5.0.7 or later on your release line.
- symfony/symfony (Packagist): upgrade to 4.4.7 / 5.0.7 or later on your release line.
- Commit / pull request: https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6
Who should check
symfony/http-foundation (Packagist) pkg:composer/symfony/http-foundation
- Affected>= 4.4.0, < 4.4.7Fixed in4.4.7OSV (GHSA-mcx4-f5f5-4859)
- Affected>= 5.0.0, < 5.0.7Fixed in5.0.7OSV (GHSA-mcx4-f5f5-4859)
symfony/symfony (Packagist) pkg:composer/symfony/symfony
- Affected>= 4.4.0, < 4.4.7Fixed in4.4.7OSV (GHSA-mcx4-f5f5-4859)
- Affected>= 5.0.0, < 5.0.7Fixed in5.0.7OSV (GHSA-mcx4-f5f5-4859)
Confirmed facts
- CVSS
- 2.6 LOW (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-mcx4-f5f5-4859)
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- low
- User interaction
- required
- Weakness
- CWE-435
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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](https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6) 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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- otherhttps://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-5255
- commit / pull requesthttps://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6
- otherhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2020-5255.yaml
- otherhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5255.yaml
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ
- otherhttps://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header
- otherhttps://symfony.com/cve-2020-5255
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-mcx4-f5f5-4859 (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 7 min ago · osv 7 min ago · nvd 68 min ago · epss 7 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-symfony-2020-5255, GHSA-mcx4-f5f5-4859