Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/yaml
  4. ›
  5. CVE-2013-1397

CVE-2013-1397: Symfony Arbitrary PHP code Execution

May 17, 2022 (updated April 14, 2025)

Symfony 2.0.x before 2.0.22, 2.1.x before 2.1.7, and 2.2.x remote attackers to execute arbitrary PHP code via a serialized PHP object to the (1) Yaml::parse or (2) Yaml\Parser::parse function, a different vulnerability than CVE-2013-1348.

References

  • exchange.xforce.ibmcloud.com/vulnerabilities/81551
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2013-1397.yaml
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/yaml/CVE-2013-1397.yaml
  • github.com/advisories/GHSA-7w53-hfpw-rg3g
  • github.com/symfony/symfony
  • github.com/symfony/symfony/commit/ba6e3159c0eeb3b6e21db32fce8fa2535cb3aa77
  • nvd.nist.gov/vuln/detail/CVE-2013-1397
  • symfony.com/blog/security-release-symfony-2-0-22-and-2-1-7-released

Code Behaviors & Features

Detect and mitigate CVE-2013-1397 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0 before 2.0.22, all versions starting from 2.1.0 before 2.1.7, all versions starting from 2.2.0-BETA1 before 2.2.0-BETA2

Fixed versions

  • 2.0.22
  • 2.1.7
  • 2.2.0-BETA2

Solution

Upgrade to versions 2.0.22, 2.1.7, 2.2.0-BETA2 or above.

Impact 7.5 HIGH

AV:N/AC:L/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/symfony/yaml/CVE-2013-1397.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.