{"id":"CVE-2020-5255","published":"2020-03-30T19:30:15Z","modified":"2024-08-04T08:22:09Z","title":"Prevent cache poisoning via a Response Content-Type header","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"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&#39;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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01297,"percentile":0.71099,"provenance":"source"},"cwes":[{"id":"CWE-435","name":"Improper Interaction Between Multiple Correctly-Behaving Entities"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6","tags":["x_refsource_MISC"]},{"url":"https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":14.22},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":[">= 4.4.0 and < 4.4.7",">= 5.0.0 and < 5.0.7"]}],"affected":[{"ecosystem":"Packagist","package":"symfony/http-foundation","vulnerableRanges":[">=4.4.0, <4.4.7",">=5.0.0, <5.0.7"],"patched":["4.4.7","5.0.7"],"from":["GHSA-mcx4-f5f5-4859"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=4.4.0, <4.4.7",">=5.0.0, <5.0.7"],"patched":["4.4.7","5.0.7"],"from":["GHSA-mcx4-f5f5-4859"],"provenance":"source"}],"summary":{"text":"The flaw is in Symfony's HTTP response handling: when a Response lacks a Content-Type header, Symfony falls back to the format from the request's Accept header, so the content and declared type can mismatch. An attacker with network access and low privileges can exploit this, but only with user interaction and a cache in front of the application, where the mismatched cached response can then be served to other users and degrade the site's availability for them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:48Z"},"euvd":{"id":"EUVD-2020-0351","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-18888","published":"2019-11-21","fixed":"4.3.8","kev":false},{"cve":"CVE-2019-18889","published":"2019-11-21","fixed":"4.3.8","kev":false},{"cve":"CVE-2020-5274","published":"2020-03-30","fixed":"5.0.4","kev":false,"link":{"from":"CVE-2020-5274","to":"CVE-2020-5255","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"4.4.4","toFixed":"4.4.7","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"5.0.4","toFixed":"5.0.7","daysApart":0}]}},{"cve":"CVE-2020-5255","published":"2020-03-30","fixed":"5.0.7","kev":false},{"cve":"CVE-2020-5275","published":"2020-03-30","fixed":"5.0.7","kev":false},{"cve":"CVE-2020-15094","published":"2020-09-02","fixed":"5.1.5","kev":false},{"cve":"CVE-2021-21424","published":"2021-05-13","fixed":"5.2.9","kev":false}],"package":"Packagist:symfony/symfony"}}