CVE-2013-6393: Buffer Overflow

Published Nov 25, 2013
·
Updated

A heap-based buffer overflow flaw was found in the way libyaml parsed YAML tags. A remote attacker could provide a specially-crafted YAML document that, when parsed by an application using libyaml, would cause the application to crash or, potentially, execute arbitrary code with the privileges of the user running the application.

Acknowledgements:

This issue was discovered by Florian Weimer of the Red Hat Product Security Team.

Other sources

The yamlparserscantaguri 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.

Versions 0.2.2 and earlier depend on native libyaml version 0.1.5 or earlier. As such, they are affected by a heap-based buffer overflow vulnerability that may result in a crash or arbitrary code execution when parsing YAML tags.

Recommendation

- Update to version 0.2.3 that includes a version of LibYAML that contains a fix for this issue.

Affected Software

18 affected componentsFixes available
npm/libyaml<0.2.3
0.2.3
PyYAML Libyaml<=0.1.4
PyYAML Libyaml=0.0.1
PyYAML Libyaml=0.1.1
PyYAML Libyaml=0.1.2
PyYAML Libyaml=0.1.3
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=12.10
Canonical Ubuntu Linux=13.10
redhat Openstack=3.0
redhat Openstack=4.0
Debian Debian Linux=6.0
Debian Debian Linux=7.0
openSUSE Leap=42.1
openSUSE openSUSE=11.4
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
redhat/libyaml<0.1.5
0.1.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/libyaml to a version that resolves this vulnerability.

    Fixed in 0.2.3
  2. Upgrade

    Upgrade redhat/libyaml to a version that resolves this vulnerability.

    Fixed in 0.1.5
  3. Upgrade

    Upgrade LibYAML to a version that resolves this vulnerability.

    Fixed in 0.2.3
  4. Compensating control

    If you cannot update, note that versions 0.2.2 and earlier depend on native libyaml version 0.1.5 or earlier, which are affected—reduce exposure by limiting/isolating YAML processing for untrusted input until the update to LibYAML 0.2.3 is applied.

Event History

Nov 25, 2013
Data Sourced
via Red Hat·01:11 AM
DescriptionSeverityAffected Software
Feb 6, 2014
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
10:55 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 31, 2020
Advisory Published
10:51 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2013-6393?

CVE-2013-6393 has a high severity rating due to its potential for remote code execution.

2

How do I fix CVE-2013-6393?

To fix CVE-2013-6393, upgrade libyaml to version 0.1.5 or higher.

3

What systems are affected by CVE-2013-6393?

CVE-2013-6393 affects various systems, including certain versions of Ubuntu, Debian, and OpenSUSE that utilize vulnerable libyaml versions.

4

What are the risks associated with CVE-2013-6393?

The risks of CVE-2013-6393 include application crashes and potential arbitrary code execution by an attacker.

5

Is CVE-2013-6393 still a concern today?

While CVE-2013-6393 is an older vulnerability, it remains a concern for systems that have not been updated and still use the vulnerable versions of libyaml.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203