{"id":"CVE-2020-5255","state":"PUBLISHED","title":"Prevent cache poisoning via a Response Content-Type header","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&#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.","publishedAt":"2020-03-30T19:30:15.000Z","updatedAt":"2024-08-04T08:22:09.086Z","severity":{"score":2.6,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["symfony symfony"],"affected":[{"vendor":"symfony","product":"symfony","versions":[{"version":">= 4.4.0 and < 4.4.7","status":"affected"},{"version":">= 5.0.0 and < 5.0.7","status":"affected"}]}],"references":["https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859","https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6","https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/"],"weaknesses":["CWE-435"],"ingestedAt":"2026-10-29T19:47:35.543Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/5xxx/CVE-2020-5255.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-5255","state":"PUBLISHED","datePublished":"2020-03-30T19:30:15.000Z","dateUpdated":"2024-08-04T08:22:09.086Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-01-02T00:00:00.000Z"},"containers":{"cna":{"title":"Prevent cache poisoning via a Response Content-Type header","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"symfony","product":"symfony","versions":[{"version":">= 4.4.0 and < 4.4.7","status":"affected"},{"version":">= 5.0.0 and < 5.0.7","status":"affected"}]}],"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/","name":"FEDORA-2020-fade6a8df7","tags":["vendor-advisory","x_refsource_FEDORA"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":2.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-435","description":"CWE-435 Improper Interaction Between Multiple Correctly-Behaving Entities","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2020-04-09T16:06:00.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-mcx4-f5f5-4859","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2020-5255","STATE":"PUBLIC","TITLE":"Prevent cache poisoning via a Response Content-Type header"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"symfony","version":{"version_data":[{"version_value":">= 4.4.0 and < 4.4.7"},{"version_value":">= 5.0.0 and < 5.0.7"}]}}]},"vendor_name":"symfony"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":2.6,"baseSeverity":"LOW","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-435 Improper Interaction Between Multiple Correctly-Behaving Entities"}]}]},"references":{"reference_data":[{"name":"https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859","refsource":"CONFIRM","url":"https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859"},{"name":"https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6","refsource":"MISC","url":"https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6"},{"name":"https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header","refsource":"MISC","url":"https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header"},{"name":"FEDORA-2020-fade6a8df7","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/"}]},"source":{"advisory":"GHSA-mcx4-f5f5-4859","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/","name":"FEDORA-2020-fade6a8df7","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T08:22:09.086Z"}}]}}}