CVE-2017-16653
Symfony 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.9
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.
- Record
CVE-2017-16653- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:N - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2017-16653- Updated
- 2026-11-02
EUVDEUVD-2022-3279 No score
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.
- Record
EUVD-2022-3279- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-92x6-h2gr-8gxq
5.9
Symfony 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.
- Record
GHSA-92x6-h2gr-8gxq- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
OSV
5.9
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.
- Record
CVE-2017-16653- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-16653
5.9
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.
- Record
DEBIAN-CVE-2017-16653- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVGHSA-92x6-h2gr-8gxq
5.9
Symfony 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.
- Record
GHSA-92x6-h2gr-8gxq- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-352
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-16653
5.9
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.
- Record
UBUNTU-CVE-2017-16653- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
symfony/security-csrfPackagist |
2.7.0 up to 2.7.38 | 2.7.38 |
symfony/security-csrfPackagist |
2.8.0 up to 2.8.31 | 2.8.31 |
symfony/security-csrfPackagist |
3.0.0 up to 3.2.14 | 3.2.14 |
symfony/security-csrfPackagist |
3.3.0 up to 3.3.13 | 3.3.13 |
symfony/securityPackagist |
2.7.0 up to 2.7.38 | 2.7.38 |
symfony/securityPackagist |
2.8.0 up to 2.8.31 | 2.8.31 |
symfony/securityPackagist |
3.0.0 up to 3.2.14 | 3.2.14 |
symfony/securityPackagist |
3.3.0 up to 3.3.13 | 3.3.13 |
symfony/symfonyPackagist |
2.7.0 up to 2.7.38 | 2.7.38 |
symfony/symfonyPackagist |
2.8.0 up to 2.8.31 | 2.8.31 |
Show 19 moreShow less
| Package | Affected | Fixed |
|---|---|---|
symfony/symfonyPackagist |
3.0.0 up to 3.2.14 | 3.2.14 |
symfony/symfonyPackagist |
3.3.0 up to 3.3.13 | 3.3.13 |
symfonyDebian:12 |
before 3.4.0+dfsg-1 | 3.4.0+dfsg-1 |
symfonyDebian:13 |
before 3.4.0+dfsg-1 | 3.4.0+dfsg-1 |
symfonyDebian:14 |
before 3.4.0+dfsg-1 | 3.4.0+dfsg-1 |
symfonyDebian:9 From an advisory covering 8 CVEs |
before 2.8.7+dfsg-1.3+deb9u1, plus listed versions 2.8.7+dfsg-1.3 |
2.8.7+dfsg-1.3+deb9u1 |
symfony/security-csrfPackagist |
2.7.0 up to 2.7.38, plus listed versions v2.7.0v2.7.1v2.7.10v2.7.11v2.7.12 Show 33 moreShow lessv2.7.13v2.7.14v2.7.15v2.7.16v2.7.17v2.7.18v2.7.19v2.7.2v2.7.20v2.7.21v2.7.22v2.7.23v2.7.24v2.7.25v2.7.26v2.7.27v2.7.28v2.7.29v2.7.3v2.7.30v2.7.31v2.7.32v2.7.33v2.7.34v2.7.35v2.7.36v2.7.37v2.7.4v2.7.5v2.7.6v2.7.7v2.7.8v2.7.9 |
2.7.38 |
symfony/security-csrfPackagist |
2.8.0 up to 2.8.31, plus listed versions v2.8.0v2.8.1v2.8.10v2.8.11v2.8.12 Show 26 moreShow lessv2.8.13v2.8.14v2.8.15v2.8.16v2.8.17v2.8.18v2.8.19v2.8.2v2.8.20v2.8.21v2.8.22v2.8.23v2.8.24v2.8.25v2.8.26v2.8.27v2.8.28v2.8.29v2.8.3v2.8.30v2.8.4v2.8.5v2.8.6v2.8.7v2.8.8v2.8.9 |
2.8.31 |
symfony/security-csrfPackagist |
3.0.0 up to 3.2.14, plus listed versions v3.0.0v3.0.1v3.0.2v3.0.3v3.0.4 Show 35 moreShow lessv3.0.5v3.0.6v3.0.7v3.0.8v3.0.9v3.1.0v3.1.0-BETA1v3.1.0-RC1v3.1.1v3.1.10v3.1.2v3.1.3v3.1.4v3.1.5v3.1.6v3.1.7v3.1.8v3.1.9v3.2.0v3.2.0-BETA1v3.2.0-RC1v3.2.0-RC2v3.2.1v3.2.10v3.2.11v3.2.12v3.2.13v3.2.2v3.2.3v3.2.4v3.2.5v3.2.6v3.2.7v3.2.8v3.2.9 |
3.2.14 |
symfony/security-csrfPackagist |
3.3.0 up to 3.3.13, plus listed versions v3.3.0v3.3.1v3.3.10v3.3.11v3.3.12 Show 8 moreShow lessv3.3.2v3.3.3v3.3.4v3.3.5v3.3.6v3.3.7v3.3.8v3.3.9 |
3.3.13 |
symfony/securityPackagist |
2.7.0 up to 2.7.38, plus listed versions v2.7.0v2.7.1v2.7.10v2.7.11v2.7.12 Show 33 moreShow lessv2.7.13v2.7.14v2.7.15v2.7.16v2.7.17v2.7.18v2.7.19v2.7.2v2.7.20v2.7.21v2.7.22v2.7.23v2.7.24v2.7.25v2.7.26v2.7.27v2.7.28v2.7.29v2.7.3v2.7.30v2.7.31v2.7.32v2.7.33v2.7.34v2.7.35v2.7.36v2.7.37v2.7.4v2.7.5v2.7.6v2.7.7v2.7.8v2.7.9 |
2.7.38 |
symfony/securityPackagist |
2.8.0 up to 2.8.31, plus listed versions v2.8.0v2.8.1v2.8.10v2.8.11v2.8.12 Show 26 moreShow lessv2.8.13v2.8.14v2.8.15v2.8.16v2.8.17v2.8.18v2.8.19v2.8.2v2.8.20v2.8.21v2.8.22v2.8.23v2.8.24v2.8.25v2.8.26v2.8.27v2.8.28v2.8.29v2.8.3v2.8.30v2.8.4v2.8.5v2.8.6v2.8.7v2.8.8v2.8.9 |
2.8.31 |
symfony/securityPackagist |
3.0.0 up to 3.2.14, plus listed versions v3.0.0v3.0.1v3.0.2v3.0.3v3.0.4 Show 35 moreShow lessv3.0.5v3.0.6v3.0.7v3.0.8v3.0.9v3.1.0v3.1.0-BETA1v3.1.0-RC1v3.1.1v3.1.10v3.1.2v3.1.3v3.1.4v3.1.5v3.1.6v3.1.7v3.1.8v3.1.9v3.2.0v3.2.0-BETA1v3.2.0-RC1v3.2.0-RC2v3.2.1v3.2.10v3.2.11v3.2.12v3.2.13v3.2.2v3.2.3v3.2.4v3.2.5v3.2.6v3.2.7v3.2.8v3.2.9 |
3.2.14 |
symfony/securityPackagist |
3.3.0 up to 3.3.13, plus listed versions v3.3.0v3.3.1v3.3.10v3.3.11v3.3.12 Show 8 moreShow lessv3.3.2v3.3.3v3.3.4v3.3.5v3.3.6v3.3.7v3.3.8v3.3.9 |
3.3.13 |
symfony/symfonyPackagist |
2.7.0 up to 2.7.38, plus listed versions v2.7.0v2.7.1v2.7.10v2.7.11v2.7.12 Show 33 moreShow lessv2.7.13v2.7.14v2.7.15v2.7.16v2.7.17v2.7.18v2.7.19v2.7.2v2.7.20v2.7.21v2.7.22v2.7.23v2.7.24v2.7.25v2.7.26v2.7.27v2.7.28v2.7.29v2.7.3v2.7.30v2.7.31v2.7.32v2.7.33v2.7.34v2.7.35v2.7.36v2.7.37v2.7.4v2.7.5v2.7.6v2.7.7v2.7.8v2.7.9 |
2.7.38 |
symfony/symfonyPackagist |
2.8.0 up to 2.8.31, plus listed versions v2.8.0v2.8.1v2.8.10v2.8.11v2.8.12 Show 26 moreShow lessv2.8.13v2.8.14v2.8.15v2.8.16v2.8.17v2.8.18v2.8.19v2.8.2v2.8.20v2.8.21v2.8.22v2.8.23v2.8.24v2.8.25v2.8.26v2.8.27v2.8.28v2.8.29v2.8.3v2.8.30v2.8.4v2.8.5v2.8.6v2.8.7v2.8.8v2.8.9 |
2.8.31 |
symfony/symfonyPackagist |
3.0.0 up to 3.2.14, plus listed versions v3.0.0v3.0.1v3.0.2v3.0.3v3.0.4 Show 35 moreShow lessv3.0.5v3.0.6v3.0.7v3.0.8v3.0.9v3.1.0v3.1.0-BETA1v3.1.0-RC1v3.1.1v3.1.10v3.1.2v3.1.3v3.1.4v3.1.5v3.1.6v3.1.7v3.1.8v3.1.9v3.2.0v3.2.0-BETA1v3.2.0-RC1v3.2.0-RC2v3.2.1v3.2.10v3.2.11v3.2.12v3.2.13v3.2.2v3.2.3v3.2.4v3.2.5v3.2.6v3.2.7v3.2.8v3.2.9 |
3.2.14 |
symfony/symfonyPackagist |
3.3.0 up to 3.3.13, plus listed versions v3.3.0v3.3.1v3.3.10v3.3.11v3.3.12 Show 8 moreShow lessv3.3.2v3.3.3v3.3.4v3.3.5v3.3.6v3.3.7v3.3.8v3.3.9 |
3.3.13 |
symfonyUbuntu:16.04:LTS |
All versions, plus listed versions 2.7.1+dfsg-12.7.5+dfsg-12.7.9+dfsg-12.7.9+dfsg-1ubuntu22.7.10-0ubuntu2 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-16653 is a medium vulnerability (CVSS 5.9) in Sensiolabs Symfony, published August 3, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.49%, the 74th percentile. Fixed in symfony/security-csrf 2.7.38.
References
symfony.com/blog/cve-2017-16653-csrf-protection-does-not-use-different-tokens-for-http-and-https
github.com/symfony/symfony/pull/24992
debian.org/security/2018/dsa-4262
nvd.nist.gov/vuln/detail/CVE-2017-16653
github.com/symfony/symfony/commit/b4dbdd7cd8732483d585eacff3428c16b07ad15e
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-csrf/CVE-2017-16653.yaml
Show 8 moreShow less
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2017-16653.yaml
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2017-16653.yaml
symfony.com/cve-2017-16653
github.com/advisories/GHSA-92x6-h2gr-8gxq
security-tracker.debian.org/tracker/CVE-2017-16653
github.com/symfony/symfony
ubuntu.com/security/CVE-2017-16653
cve.org/CVERecord?id=CVE-2017-16653