CVE-2020-5255
published 2020-03-30CVE-2020-5255: 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…
PriorityP420medium4.3CVSS 3.1
AVNACLPRLUINSUCNINAL
EPSS
1.30%
67.2th percentile
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.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | symfony | < symfony 4.4.8-1 (bookworm) | symfony 4.4.8-1 (bookworm) |
| sensiolabs | symfony | >= 4.4.0 < 4.4.7 | 4.4.7 |
| sensiolabs | symfony | >= 5.0.0 < 5.0.7 | 5.0.7 |
| symfony | http-foundation | >= 4.4.0 < 4.4.7 | 4.4.7 |
| symfony | http-foundation | >= 5.0.0 < 5.0.7 | 5.0.7 |
| symfony | symfony | — | — |
| symfony | symfony | — | — |
| symfony | symfony | >= 0 < 4.4.8-1 | 4.4.8-1 |
| symfony | symfony | >= 0 < 4.4.8-1 | 4.4.8-1 |
| symfony | symfony | >= 0 < 4.4.8-1 | 4.4.8-1 |
| symfony | symfony | >= 0 < 4.4.8-1 | 4.4.8-1 |
| symfony | symfony | >= 4.4.0 < 4.4.7 | 4.4.7 |
| symfony | symfony | >= 5.0.0 < 5.0.7 | 5.0.7 |
CVSS provenance
nvdv3.14.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
nvdv2.04.0MEDIUMAV:N/AC:L/Au:S/C:N/I:N/A:P
osv4.3MEDIUM
vendor_debian2.6LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Prevent cache poisoning via a Response Content-Type header in Symfony
ghsa·2020-03-30
CVE-2020-5255 [LOW] CWE-435 Prevent cache poisoning via a Response Content-Type header in Symfony
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](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.
OSV
Prevent cache poisoning via a Response Content-Type header in Symfony
osv·2020-03-30
CVE-2020-5255 [LOW] Prevent cache poisoning via a Response Content-Type header in Symfony
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](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.
OSV
CVE-2020-5255: In Symfony before versions 4
osv·2020-03-30·CVSS 4.3
CVE-2020-5255 [MEDIUM] CVE-2020-5255: In Symfony before versions 4
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.
Debian
CVE-2020-5255: symfony - In Symfony before versions 4.4.7 and 5.0.7, when a `Response` does not contain a...
vendor_debian·2020·CVSS 2.6
CVE-2020-5255 [LOW] CVE-2020-5255: symfony - In Symfony before versions 4.4.7 and 5.0.7, when a `Response` does not contain a...
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.
Scope: local
bookworm: resolved (fixed in 4.4.8-1)
bullseye: resolved (fixed in 4.4.8-1)
forky: resolved (fixed in 4.4.8-1)
sid: resolved (fixed in 4.4.8-1)
trixie: resolved (fixed in 4.4.8-1)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-5255 php-symfony: Response without Content-Type header could result in cache poisoning
bugzilla·2020-04-09·CVSS 2.6
CVE-2020-5255 [LOW] CVE-2020-5255 php-symfony: Response without Content-Type header could result in cache poisoning
CVE-2020-5255 php-symfony: Response without Content-Type header could result in cache poisoning
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.
Discussion:
External References:
https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859
---
Created php-symfony4 tracking bugs for this issue:
Affects: fedora-all [bug 1822708]
---
This CVE Bugzilla entry is for community support informationa
Bugzilla
CVE-2020-5255 php-symfony4: php-symfony: Response without Content-Type header could result in cache poisoning [fedora-all]
bugzilla·2020-04-09·CVSS 2.6
CVE-2020-5255 [LOW] CVE-2020-5255 php-symfony4: php-symfony: Response without Content-Type header could result in cache poisoning [fedora-all]
CVE-2020-5255 php-symfony4: php-symfony: Response without Content-Type header could result in cache poisoning [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: t
https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-headerhttps://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header
2020-03-30
Published