CVE-2015-8125: Symfony/symfony Symfony Vulnerable To Timing Attack Vulnerability

HIGH
Advisory Identifier: GHSA-g97c-jfx6-xvxh
CWE-208
Published
Advisory Summary

CVE-2015-8125 is a HIGH symfony vulnerable to timing attack vulnerability (CWE-208: Observable Timing Discrepancy) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves symfony vulnerable to timing attack. Remediation is available by upgrading affected packages to version 2.3.35, 2.7.7, 2.6.12.

CVE-2015-8125 at a Glance

CVE Identifier CVE-2015-8125
GHSA Identifier GHSA-g97c-jfx6-xvxh
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-208: Observable Timing Discrepancy
Affected Product Symfony/symfony
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2015-8125

To remediate this vulnerability, upgrade all affected Symfony/symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/symfony fixed: 2.3.35
Upgrade symfony/symfony to 2.3.35
symfony/symfony fixed: 2.7.7
Upgrade symfony/symfony to 2.7.7
symfony/form fixed: 2.3.35
Upgrade symfony/form to 2.3.35
symfony/form fixed: 2.6.12
Upgrade symfony/form to 2.6.12
symfony/form fixed: 2.7.7
Upgrade symfony/form to 2.7.7
symfony/security-http fixed: 2.6.12
Upgrade symfony/security-http to 2.6.12
symfony/security-http fixed: 2.7.7
Upgrade symfony/security-http to 2.7.7
symfony/security fixed: 2.3.35
Upgrade symfony/security to 2.3.35
symfony/security fixed: 2.6.12
Upgrade symfony/security to 2.6.12
symfony/security fixed: 2.7.7
Upgrade symfony/security to 2.7.7
symfony/symfony fixed: 2.6.12
Upgrade symfony/symfony to 2.6.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/symfony

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-8125, inspect your project dependencies for Symfony/symfony:

inspect dependencies for symfony/symfony

Analyze the terminal output to locate any version of Symfony/symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.35), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-208: Observable Timing Discrepancy, where two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not. In Symfony/symfony, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2015-8125 Affected Symfony/symfony Versions

11 component(s)
Fixed Versions:
2.3.352.7.72.6.12
Product / Package Ecosystem Affected Versions Fixed Version
symfony/symfony
Packagist
≥ 2.3.0
< 2.3.35
2.3.35
symfony/symfony
Packagist
≥ 2.7.0
< 2.7.7
2.7.7
symfony/form
Packagist
≥ 2.3.0
< 2.3.35
2.3.35
symfony/form
Packagist
≥ 2.4.0
< 2.6.12
2.6.12
symfony/form
Packagist
≥ 2.7.0
< 2.7.7
2.7.7
symfony/security-http
Packagist
≥ 2.4.0
< 2.6.12
2.6.12
symfony/security-http
Packagist
≥ 2.7.0
< 2.7.7
2.7.7
symfony/security
Packagist
≥ 2.3.0
< 2.3.35
2.3.35
symfony/security
Packagist
≥ 2.4.0
< 2.6.12
2.6.12
symfony/security
Packagist
≥ 2.7.0
< 2.7.7
2.7.7
symfony/symfony
Packagist
≥ 2.4.0
< 2.6.12
2.6.12

References

NVD — CVE-2015-8125 NVD
https://nvd.nist.gov/vuln/detail/CVE-2015-8125
Symfony/symfony Source Repository REPOSITORY
https://github.com/symfony/symfony/pull/16630
Symfony/symfony Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/form/CVE-2015-8125.yaml
Symfony/symfony Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2015-8125.yaml
Symfony/symfony Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2015-8125.yaml
Symfony/symfony Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2015-8125.yaml
Symfony/symfony Security Information SECURITY
https://symfony.com/blog/cve-2015-8125-potential-remote-timing-attack-vulnerability-in-security-remember-me-service
symfony.com/cve-2015-8125 WEB
https://symfony.com/cve-2015-8125
Symfony/symfony Security Information SECURITY
https://web.archive.org/web/20200228050051/http://www.securityfocus.com/bid/77692
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-December/173271.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2015-December/173300.html
Symfony/symfony Security Information SECURITY
http://www.debian.org/security/2015/dsa-3402
Symfony/symfony Security Information SECURITY
http://www.securityfocus.com/bid/77692

Frequently Asked Questions

What is CVE-2015-8125?
CVE-2015-8125 is a security vulnerability in Symfony/symfony involving Symfony Vulnerable to Timing Attack under CWE-208: Observable Timing Discrepancy.
Which Symfony/symfony versions are affected?
Affected versions include releases prior to 2.3.35, 2.7.7, 2.6.12 across affected packages: symfony/symfony, symfony/form, symfony/security-http, symfony/security.
What version fixes CVE-2015-8125?
Upgrading to 2.3.35, 2.7.7, 2.6.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 2.3.35, 2.7.7, 2.6.12. Upgrade your dependency to 2.3.35, 2.7.7, 2.6.12 or later.
Is symfony/form affected?
Yes, symfony/form is affected in releases prior to 2.3.35, 2.6.12, 2.7.7. Upgrade your dependency to 2.3.35, 2.6.12, 2.7.7 or later.
What CWE is associated with CVE-2015-8125?
CVE-2015-8125 is classified under CWE-208: Observable Timing Discrepancy (Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.).
How can I check Packagist dependencies for CVE-2015-8125?
Run the dependency tree command: 'inspect dependencies for symfony/symfony'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g97c-jfx6-xvxh",
  "modified" : "2023-08-03T21:48:26Z",
  "published" : "2022-05-17T03:25:24Z",
  "aliases" : [ "CVE-2015-8125" ],
  "summary" : "Symfony Vulnerable to Timing Attack",
  "details" : "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.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/form"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/form"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.6.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/form"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.6.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "fixed" : "2.3.35"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.6.12"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.7.0"
      }, {
        "fixed" : "2.7.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "fixed" : "2.6.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8125"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/pull/16630"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/form/CVE-2015-8125.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2015-8125.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2015-8125.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2015-8125.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/blog/cve-2015-8125-potential-remote-timing-attack-vulnerability-in-security-remember-me-service"
  }, {
    "type" : "WEB",
    "url" : "https://symfony.com/cve-2015-8125"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228050051/http://www.securityfocus.com/bid/77692"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-December/173271.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.fedoraproject.org/pipermail/package-announce/2015-December/173300.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2015/dsa-3402"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/77692"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-208" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T21:48:26Z",
    "nvd_published_at" : "2015-12-07T20:59:00Z"
  }
}