CVE-2013-6393 Heap Based Buffer Overflow in libyaml
Remote attackers can cause denial of service or execute arbitrary code via crafted YAML tags due to a heap-based buffer overflow in LibYAML.
- 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-6393?
CVE-2013-6393 is a medium-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 6 Feb 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The yaml_parser_scan_tag_uri function in scanner.c in LibYAML before 0.1.5 performs an incorrect cast, which allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via crafted tags in a YAML document, which triggers a heap-based buffer overflow.
Weakness: CWE-119
Which versions are affected by CVE-2013-6393?
2 open source packages ship an affected version, including libyaml. It affects 6 products.
| Package | Affected | Fixed in |
|---|---|---|
libyaml npm | All versions | 0.2.3 |
libyaml npm | All versions | 0.2.3 |
Products include Canonical Ubuntu Linux, Debian Debian Linux, Opensuse Leap, Opensuse Opensuse, Pyyaml Libyaml, Redhat Openstack.
How do I fix CVE-2013-6393?
Upgrade libyaml to 0.2.3 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2013-6393 being exploited?
There is no known exploitation of CVE-2013-6393 in the wild and no public exploit code.
Other vulnerabilities in Canonical Ubuntu Linux
Sources
Also known as DEBIAN-CVE-2013-6393, DSA-2850-1, DSA-2870-1, GHSA-m75h-cghq-c8h5, MGASA-2014-0040.