CVE-2017-16653 json
Symfony CSRF Vulnerability
published 2018-08-06 8 y ago modified 2026-06-17 4 mo ago also GHSA-92x6-h2gr-8gxq , EUVD-2022-3279
- cvss
- 5.9
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist symfony/security-csrf 2.7.38, 2.8.31, 3.2.14, 3.3.13
- packagist symfony/security 2.7.38, 2.8.31, 3.2.14, 3.3.13
- packagist symfony/symfony 2.7.38, 2.8.31, 3.2.14, 3.3.13
- symfony Debian 14, Debian 13, Debian 12 3.4.0+dfsg-1
debian advisories DEBIAN-CVE-2017-16653
- github.com/symfony/symfony@b4dbdd7 commit
- github.com/symfony/symfony#24992 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-16653 updated cvss 7.3
php-symfony: improper CSRF token generation for HTTP and HTTPS
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.49% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | symfony/security-csrf | >=2.7.0, <2.7.38 >=2.8.0, <2.8.31 >=3.0.0, <3.2.14 >=3.3.0, <3.3.13 |
2.7.38 2.8.31 3.2.14 3.3.13 |
| packagist | symfony/security | >=2.7.0, <2.7.38 >=2.8.0, <2.8.31 >=3.0.0, <3.2.14 >=3.3.0, <3.3.13 |
2.7.38 2.8.31 3.2.14 3.3.13 |
| packagist | symfony/symfony | >=2.7.0, <2.7.38 >=2.8.0, <2.8.31 >=3.0.0, <3.2.14 >=3.3.0, <3.3.13 |
2.7.38 2.8.31 3.2.14 3.3.13 |
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/symfony/symfony/pull/24992
web, issue-tracking, third-party-advisory
-
github.com
/symfony/symfony/commit/b4dbdd7cd8732483d585eacff3428c16b07ad15e
web
-
debian.org
/security/2018/dsa-4262
vendor-advisory, web, third-party-advisory
-
symfony.com
/blog/cve-2017-16653-csrf-protection-does-not-use-different-tokens-for-http-and-https
web, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-16653
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/security-csrf/CVE-2017-16653.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2017-16653.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2017-16653.yaml
web
-
github.com
/symfony/symfony
package
-
symfony.com
/cve-2017-16653
web
Sources
- CVE List CVE-2017-16653
- GitHub Advisory GHSA-92x6-h2gr-8gxq
- NVD CVE-2017-16653
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.