CVE-2017-16653
MEDIUM 5.9CVSS 3.0Symfony CSRF Vulnerability
An issue was discovered in Symfony before 2.7.38, 2.8.31, 3.2.14, 3.3.13, 3.4-BETA5, and 4.0-BETA5. The current implementation of CSRF protection in Symfony (Version >=2) does not use different tokens for HTTP and HTTPS; therefore the token is subject to MITM attacks on HTTP and can then be used in an HTTPS context to do CSRF attacks.
- Published
- 6 Aug 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- GHSA-92x6-h2gr-8gxq
- Sources
- NVDJSONOSV GHSA-92x6-h2gr-8gxqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* |
>= 2.7.0, <= 2.7.37 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* |
>= 3.2.0, <= 3.2.13 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* |
>= 3.3.0, <= 3.3.12 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* |
>= 3.8.0, <= 3.8.30 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | Packagist | symfony/security-csrf | >= 2.7.0, < 2.7.38 | 2.7.38 |
| OSV | Packagist | symfony/security-csrf | >= 2.8.0, < 2.8.31 | 2.8.31 |
| OSV | Packagist | symfony/security-csrf | >= 3.0.0, < 3.2.14 | 3.2.14 |
| OSV | Packagist | symfony/security-csrf | >= 3.3.0, < 3.3.13 | 3.3.13 |
| OSV | Packagist | symfony/security | >= 2.7.0, < 2.7.38 | 2.7.38 |
| OSV | Packagist | symfony/security | >= 2.8.0, < 2.8.31 | 2.8.31 |
| OSV | Packagist | symfony/security | >= 3.0.0, < 3.2.14 | 3.2.14 |
| OSV | Packagist | symfony/security | >= 3.3.0, < 3.3.13 | 3.3.13 |
| OSV | Packagist | symfony/symfony | >= 2.7.0, < 2.7.38 | 2.7.38 |
| OSV | Packagist | symfony/symfony | >= 2.8.0, < 2.8.31 | 2.8.31 |
| OSV | Packagist | symfony/symfony | >= 3.0.0, < 3.2.14 | 3.2.14 |
| OSV | Packagist | symfony/symfony | >= 3.3.0, < 3.3.13 | 3.3.13 |
References
- https://github.com/symfony/symfony/pull/24992 · Issue Tracking, Third Party Advisory, WEB
- https://symfony.com/blog/cve-2017-16653-csrf-protection-does-not-use-different-tokens-for-http-and-https · Issue Tracking, Third Party Advisory, WEB
- https://www.debian.org/security/2018/dsa-4262 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-16653 · ADVISORY
- https://github.com/symfony/symfony/commit/b4dbdd7cd8732483d585eacff3428c16b07ad15e · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-csrf/CVE-2017-16653.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2017-16653.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2017-16653.yaml · WEB
- https://github.com/symfony/symfony · PACKAGE
- https://symfony.com/cve-2017-16653 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 6 Aug 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 13 May 2022)