Skip to content

← Public intelligence

Packagist package

symfony/security

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

17 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.8PackagistPublished

    Symfony Incorrect Access Control

    CVE-2017-11365 · GHSA-q87v-q8fw-gmj5

    Affected
    • Packagist symfony/security >= 2.7.30, < 2.7.32; >= 2.8.23, < 2.8.25; >= 3.2.10, < 3.2.12; >= 3.3.3, < 3.3.5
    Fixed in
    2.7.323.2.123.3.52.8.25· Vendor fix available
    Issue
    Certain Symfony products are affected by: Incorrect Access Control. This affects Symfony 2.7.30 and Symfony 2.8.23 and Symfony 3.2.10 and Symfony 3.3.3. The type of exploitation is: remote. The component is: Password validator.

    Recommended action: Upgrade to 3.3.5, 3.2.12, 2.8.25 or 2.7.32 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. UnratedPackagistPublished

    Symfony Allows URI Restrictions Bypass Via Double-Encoded String

    CVE-2012-6431 · GHSA-83c3-qx27-2rwr

    Affected
    • Packagist symfony/security >= 2.0.0, < 2.0.19
    Fixed in
    2.0.19· Vendor fix available
    Issue
    On the Symfony 2.0.x version, there's a security issue that allows access to routes protected by a firewall even when the user is not logged in. Both the Routing component and the Security component uses the path returned by getPathInfo() to match a Request. The getPathInfo() returns a decoded path, but the Routing component (Symfony\Component\Routing\Matcher\UrlMatcher) decodes the path a second time; whereas the Security component, Symfony\Component\HttpFoundation\RequestMatcher, does not. This difference causes Symfony 2.0 to be vulnerable to double encoding attacks.

    Recommended action: Upgrade to 2.0.19 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  3. UnratedPackagistPublished

    Symfony Denial of Service Via Long Password Hashing

    CVE-2013-5958 · GHSA-cr49-fx2v-9p57

    Affected
    • Packagist symfony/security >= 2.0.0, < 2.0.25; >= 2.1.0, < 2.1.13; >= 2.2.0, < 2.2.9; >= 2.3.0, < 2.3.6
    Fixed in
    2.0.252.1.132.3.62.2.9· Vendor fix available
    Issue
    The Security component in Symfony 2.0.x before 2.0.25, 2.1.x before 2.1.13, 2.2.x before 2.2.9, and 2.3.x before 2.3.6 allows remote attackers to cause a denial of service (CPU consumption) via a long password that triggers an expensive hash computation, as demonstrated by a PBKDF2 computation, a similar issue to CVE-2013-5750.

    Recommended action: Upgrade to 2.3.6, 2.2.9, 2.1.13 or 2.0.25 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  4. High, CVSS 7.5PackagistPublished

    Symphony Denial of Service Via Overlong Usernames

    CVE-2016-4423 · GHSA-whgv-8cg3-7hcm

    Affected
    • Packagist symfony/security >= 2.3.0, < 2.3.41; >= 2.4.0, < 2.7.13; >= 2.8.0, < 2.8.6; >= 3.0.0, < 3.0.6
    Fixed in
    2.8.63.0.62.7.132.3.41· Vendor fix available
    Issue
    The attemptAuthentication function in Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php in Symfony before 2.3.41, 2.7.x before 2.7.13, 2.8.x before 2.8.6, and 3.0.x before 3.0.6 does not limit the length of a username stored in a session, which allows remote attackers to cause a denial of service (session storage consumption) via a series of authentication attempts with long, non-existent usernames.

    Recommended action: Upgrade to 3.0.6, 2.8.6, 2.7.13 or 2.3.41 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  5. High, CVSS 7.5PackagistPublished

    Symfony Cryptographic Vulnerability

    CVE-2016-1902 · GHSA-jjx5-fq5g-8xpc

    Affected
    • Packagist symfony/security >= 2.3.0, < 2.3.37; >= 2.4.0, < 2.6.13; >= 2.7.0, < 2.7.9
    Fixed in
    2.6.132.7.92.3.37· Vendor fix available
    Issue
    The nextBytes function in the SecureRandom class in Symfony before 2.3.37, 2.6.x before 2.6.13, and 2.7.x before 2.7.9 does not properly generate random numbers when used with PHP 5.x without the paragonie/randomcompat library and the opensslrandompseudobytes function fails, which makes it easier for attackers to defeat cryptographic protection mechanisms via unspecified vectors.

    Recommended action: Upgrade to 2.7.9, 2.6.13 or 2.3.37 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  6. UnratedPackagistPublished

    Symfony Vulnerable to Timing Attack

    CVE-2015-8125 · GHSA-g97c-jfx6-xvxh

    Affected
    • Packagist symfony/security >= 2.3.0, < 2.3.35; >= 2.4.0, < 2.6.12; >= 2.7.0, < 2.7.7
    Fixed in
    2.6.122.7.72.3.35· Vendor fix available
    Issue
    Symfony 2.3.x before 2.3.35, 2.6.x before 2.6.12, and 2.7.x before 2.7.7 might allow remote attackers to have unspecified impact via a timing attack involving the (1) Symfony/Component/Security/Http/RememberMe/PersistentTokenBasedRememberMeServices or (2) Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener class in the Symfony Security Component, or (3) legacy CSRF implementation from the Symfony/Component/Form/Extension/Csrf/CsrfProvider/DefaultCsrfProvider class in the Symfony Form component.

    Recommended action: Upgrade to 2.7.7, 2.6.12 or 2.3.35 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  7. Critical, CVSS 9.8PackagistPublished

    Symfony Authentication Bypass

    CVE-2018-11407 · GHSA-35c5-28pg-2qg4

    Affected
    • Packagist symfony/security >= 2.8.0, < 2.8.37; >= 3.0.0, < 3.3.17; >= 3.4.0, < 3.4.7; >= 4.0.0, < 4.0.7
    Fixed in
    3.4.74.0.73.3.172.8.37· Vendor fix available
    Issue
    An issue was discovered in the LDAP component in Symfony 2.8.x before 2.8.37, 3.3.x before 3.3.17, 3.4.x before 3.4.7, and 4.0.x before 4.0.7. It allows remote attackers to bypass authentication by logging in with a "null" password and valid username, which triggers an unauthenticated bind. NOTE: this issue exists because of an incomplete fix for CVE-2016-2403.

    Recommended action: Upgrade to 4.0.7, 3.4.7, 3.3.17 or 2.8.37 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  8. Critical, CVSS 9.8PackagistPublished

    Symfony Authentication Bypass

    CVE-2016-2403 · GHSA-wvj5-r78r-hhfq

    Affected
    • Packagist symfony/security >= 2.8.0, < 2.8.6; >= 3.0.0, < 3.0.6
    Fixed in
    2.8.63.0.6· Vendor fix available
    Issue
    Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty password and valid username, which triggers an unauthenticated bind.

    Recommended action: Upgrade to 3.0.6 or 2.8.6 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  9. Low, CVSS 3.1PackagistPublished

    Symfony Session Fixation Vulnerability

    CVE-2015-8124 · GHSA-j5jh-hpr4-h332

    Affected
    • Packagist symfony/security >= 2.3.0, < 2.3.35; >= 2.4.0, < 2.6.12; >= 2.7.0, < 2.7.7
    Fixed in
    2.6.122.7.72.3.35· Vendor fix available
    Issue
    A session fixation vulnerability within the "Remember Me" login feature allows an attacker to impersonate the victim towards the web application if the session id value was previously known to the attacker. This issue has been fixed in Symfony 2.3.35, 2.6.12, and 2.7.7. Note that no fixes are provided for Symfony 2.4 and 2.5 as they are not maintained anymore. Symfony 2.8 and 3.0 haven't been released yet and the fix will be included in their first stable releases.

    Recommended action: Upgrade to 2.7.7, 2.6.12 or 2.3.35 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  10. High, CVSS 8.1PackagistPublished

    Symfony Session Fixation Vulnerability

    CVE-2018-11385 · GHSA-g4rg-rw65-8hfg

    Affected
    • Packagist symfony/security >= 2.7.0, < 2.7.48; >= 2.8.0, < 2.8.41; >= 3.0.0, < 3.3.17; >= 3.4.0, < 3.4.11; >= 4.0.0, < 4.0.11
    Fixed in
    2.7.484.0.112.8.413.3.173.4.11· Vendor fix available
    Issue
    An issue was discovered in the Security component in Symfony 2.7.x before 2.7.48, 2.8.x before 2.8.41, 3.3.x before 3.3.17, 3.4.x before 3.4.11, and 4.0.x before 4.0.11. A session fixation vulnerability within the "Guard" login feature may allow an attacker to impersonate a victim towards the web application if the session id value was previously known to the attacker.

    Recommended action: Upgrade to 4.0.11, 3.4.11, 3.3.17 or 2 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  11. Medium, CVSS 6.1PackagistPublished

    Symfony Open Redirect

    CVE-2017-16652 · GHSA-r7p7-qr7p-2rrf

    Affected
    • Packagist symfony/security >= 2.7.0, < 2.7.38; >= 2.8.0, < 2.8.31; >= 3.2.0, < 3.2.14; >= 3.3.0, < 3.3.13
    Fixed in
    2.8.312.7.383.3.133.2.14· Vendor fix available
    Issue
    An issue was discovered in Symfony 2.7.x before 2.7.38, 2.8.x before 2.8.31, 3.2.x before 3.2.14, and 3.3.x before 3.3.13. DefaultAuthenticationSuccessHandler or DefaultAuthenticationFailureHandler takes the content of the targetpath parameter and generates a redirect response, but no check is performed on the path, which could be an absolute URL to an external domain. This Open redirect vulnerability can be exploited for example to mount effective phishing attacks.

    Recommended action: Upgrade to 3.3.13, 3.2.14, 2.8.31 or 2.7.38 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  12. High, CVSS 8.8PackagistPublished

    Symfony CSRF Token Fixation

    CVE-2018-11406 · GHSA-g4g7-q726-v5hg

    Affected
    • Packagist symfony/security >= 2.7.0, < 2.7.48; >= 2.8.0, < 2.8.41; >= 3.0.0, < 3.3.17; >= 3.4.0, < 3.4.11; >= 4.0.0, < 4.0.11
    Fixed in
    2.7.484.0.112.8.413.3.173.4.11· Vendor fix available
    Issue
    An issue was discovered in the Security component in Symfony 2.7.x before 2.7.48, 2.8.x before 2.8.41, 3.3.x before 3.3.17, 3.4.x before 3.4.11, and 4.0.x before 4.0.11. By default, a user's session is invalidated when the user is logged out. This behavior can be disabled through the invalidatesession option. In this case, CSRF tokens were not erased during logout which allowed for CSRF token fixation.

    Recommended action: Upgrade to 4.0.11, 3.4.11, 3.3.17 or 2 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  13. Medium, CVSS 6.1PackagistPublished

    Symfony Open Redirect

    CVE-2018-19790 · GHSA-89r2-5g34-2g47

    Affected
    • Packagist symfony/security >= 2.7.38, < 2.7.50; >= 2.8.0, < 2.8.49; >= 3.0.0, < 3.4.19; >= 4.0.0, < 4.0.15; >= 4.1.0, < 4.1.9; >= 4.2.0, < 4.2.1
    Fixed in
    4.2.12.8.494.1.93.4.194.0.152.7.50· Vendor fix available
    Issue
    An open redirect was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9 and 4.2.x before 4.2.1. By using backslashes in the failurepath input field of login forms, an attacker can work around the redirection target restrictions and effectively redirect the user to any domain after login.

    Recommended action: Upgrade to 4.2.1, 4.1.9, 4.0.15 or 3 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  14. Medium, CVSS 5.9PackagistPublished

    Symfony CSRF Vulnerability

    CVE-2017-16653 · GHSA-92x6-h2gr-8gxq

    Affected
    • 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
    Fixed in
    2.8.312.7.383.3.133.2.14· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 3.3.13, 3.2.14, 2.8.31 or 2.7.38 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  15. Medium, CVSS 5.3PackagistPublished

    Prevent user enumeration using Guard or the new Authenticator-based Security

    CVE-2021-21424 · GHSA-5pv8-ppvj-4h68

    Affected
    • Packagist symfony/security >= 5.0.0, < 5.2.8; >= 2.8.0, < 3.4.49; >= 4.0.0, < 4.4.24
    Fixed in
    4.4.245.2.83.4.49· Vendor fix available
    Issue
    ----------- The ability to enumerate users was possible without relevant permissions due to different exception messages depending on whether the user existed or not. It was also possible to enumerate users by using a timing attack, by comparing time elapsed when authenticating an existing user and authenticating a non-existing user. Resolution ---------- We now ensure that 403s are returned whether the user exists or not if the password is invalid or if the user does not exist. The patch for this issue is available here for branch 3.4. Credits ------- I would like to thank James Isaac and Mathias Brodala for reporting the issue and Robin Chalas for fixing the issue.

    Recommended action: Upgrade to 5.2.8, 4.4.24 or 3.4.49 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  16. High, CVSS 7.6PackagistPublished

    Firewall configured with unanimous strategy was not actually unanimous in Symfony

    CVE-2020-5275 · GHSA-g4m9-5hpf-hx72

    Affected
    • Packagist symfony/security >= 4.4.0, < 4.4.7; >= 5.0.0, < 5.0.7
    Fixed in
    4.4.75.0.7· Vendor fix available
    Issue
    ----------- On Symfony before 4.4.0, when a Firewall checks an access control rule (using the unanimous strategy), it iterates over all rule attributes and grant access only if all calls to the accessDecisionManager decide to grant access. As of Symfony 4.4.0, a bug was introduced that prevents the check of attributes as soon as accessDecisionManager decide to grant access on one attribute. Resolution ---------- The accessDecisionManager is now called with all attributes at once, allowing the unanimous strategy being applied on each attribute. The patch for this issue is available here for the 4.4 branch. Credits ------- I would like to thank Antonio J. García Lagar for reporting & Robin Chalas for fixing the issue.

    Recommended action: Upgrade to 5.0.7 or 4.4.7 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  17. High, CVSS 7.5PackagistPublished

    Improper authentication in Symfony

    CVE-2019-10911 · GHSA-cchx-mfrc-fwqr

    Affected
    • Packagist symfony/security >= 2.7.0, < 2.7.51; >= 2.8.0, < 2.8.50; >= 3.0.0, < 3.4.26; >= 4.0.0, < 4.1.12; >= 4.2.0, < 4.2.7
    Fixed in
    2.8.504.1.122.7.514.2.73.4.26· Vendor fix available
    Issue
    In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, a vulnerability would allow an attacker to authenticate as a privileged user on sites with user registration and remember me login functionality enabled. This is related to symfony/security.

    Recommended action: Upgrade to 4.2.7, 4.1.12, 3.4.26 or 2 more by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →