CVE-2013-1348 Symphony Vulnerable to PHP Code Injection via YAML Parsing

High 7.5 Published Updated

Remote attackers can execute arbitrary PHP code via crafted YAML input in the Symfony library, requiring an upgrade to secure the application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-1348?

CVE-2013-1348 is a high-severity code injection vulnerability in Sensiolabs Symfony, published on 2 Jun 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Yaml::parse function in Symfony 2.0.x before 2.0.22 remote attackers to execute arbitrary PHP code via a PHP file, a different vulnerability than CVE-2013-1397.

Weakness: CWE-94

Which versions are affected by CVE-2013-1348?

4 open source packages ship an affected version, including symfony/symfony and symfony/yaml. It affects 1 product.

PackageAffectedFixed in
symfony/symfony PackagistFrom 2.0.02.0.22
symfony/symfony PackagistFrom 2.0.02.0.22
symfony/yaml PackagistFrom 2.0.02.0.22
symfony/yaml PackagistFrom 2.0.02.0.22

Products include Sensiolabs Symfony.

How do I fix CVE-2013-1348?

Upgrade symfony/symfony to 2.0.22 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2013-1348 being exploited?

There is no known exploitation of CVE-2013-1348 in the wild and no public exploit code.

All Sensiolabs Symfony vulnerabilities

Sources

Also known as GHSA-2r5h-6r7v-5m7c.

Is CVE-2013-1348 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free