CVE-2013-6393
Heap Based Buffer Overflow in libyaml
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.
Exploit likelihood
What each source reports
NVD Score used
6.8
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.
- Record
CVE-2013-6393- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2013-6393- Updated
- 2026-11-02
EUVDEUVD-2020-0633 No score
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.
- Record
EUVD-2020-0633- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m75h-cghq-c8h5 No score
Heap Based Buffer Overflow in libyaml
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.
- Record
GHSA-m75h-cghq-c8h5- Weakness
- CWE-119
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2013-6393- Updated
- 2026-11-02
OSVDEBIAN-CVE-2013-6393 No score
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.
- Record
DEBIAN-CVE-2013-6393- Updated
- 2026-11-02
Show 7 moreShow less
OSVGHSA-m75h-cghq-c8h5 No score
Heap Based Buffer Overflow in libyaml
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.
- Record
GHSA-m75h-cghq-c8h5- Weakness
- CWE-119
- Updated
- 2026-11-02
OSVMGASA-2014-0040 No score
Updated yaml packages fix CVE-2013-6393
Updated libyaml packages fix security vulnerabilities:
Florian Weimer of the Red Hat Product Security Team discovered a heap-based buffer overflow flaw in LibYAML, a fast YAML 1.1 parser and emitter library. A remote attacker could provide a YAML document with a specially-crafted tag 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 (CVE-2013-6393).
- Record
MGASA-2014-0040- Updated
- 2026-11-02
OSVMGASA-2014-0154 No score
Updated perl-YAML-LibYAML package fixes security vulnerabilies
Updated perl-YAML-LibYAML packages fix security vulnerabilities:
Florian Weimer of the Red Hat Product Security Team discovered a heap-based buffer overflow flaw in LibYAML, a fast YAML 1.1 parser and emitter library. A remote attacker could provide a YAML document with a specially-crafted tag 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 (CVE-2013-6393).
Ivan Fratric of the Google Security Team discovered a heap-based buffer overflow vulnerability in LibYAML, a fast YAML 1.1 parser and emitter library. 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 (CVE-2014-2525).
The perl-YAML-LibYAML package is being updated as it contains an embedded copy of LibYAML.
- Record
MGASA-2014-0154- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10029-1 No score
libyaml-0-2-0.1.6-4.8 on GA media
These are all security issues fixed in the libyaml-0-2-0.1.6-4.8 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10029-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10520-1 No score
perl-YAML-LibYAML-0.59-2.11 on GA media
These are all security issues fixed in the perl-YAML-LibYAML-0.59-2.11 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10520-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:0953-1 No score
Security update for perl-YAML-LibYAML
perl-YAML-LibYAML was updated to fix three security issues.
These security issues were fixed:
- CVE-2013-6393: The yaml_parser_scan_tag_uri function in scanner.c in LibYAML before 0.1.5 performed an incorrect cast, which allowed remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via crafted tags in a YAML document, which triggered a heap-based buffer overflow (bnc#860617, bnc#911782).
- CVE-2014-9130: scanner.c in LibYAML 0.1.5 and 0.1.6, as used in the YAML-LibYAML (aka YAML-XS) module for Perl, allowed context-dependent attackers to cause a denial of service (assertion failure and crash) via vectors involving line-wrapping (bnc#907809, bnc#911782).
- CVE-2014-2525: Heap-based buffer overflow in the yaml_parser_scan_uri_escapes function in LibYAML before 0.1.6 allowed context-dependent attackers to execute arbitrary code via a long sequence of percent-encoded characters in a URI in a YAML file (bnc#868944, bnc#911782).
- Record
SUSE-SU-2015:0953-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:0953-2 No score
Security update for perl-YAML-LibYAML
perl-YAML-LibYAML was updated to fix three security issues.
These security issues were fixed:
- CVE-2013-6393: The yaml_parser_scan_tag_uri function in scanner.c in LibYAML before 0.1.5 performed an incorrect cast, which allowed remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via crafted tags in a YAML document, which triggered a heap-based buffer overflow (bnc#860617, bnc#911782).
- CVE-2014-9130: scanner.c in LibYAML 0.1.5 and 0.1.6, as used in the YAML-LibYAML (aka YAML-XS) module for Perl, allowed context-dependent attackers to cause a denial of service (assertion failure and crash) via vectors involving line-wrapping (bnc#907809, bnc#911782).
- CVE-2014-2525: Heap-based buffer overflow in the yaml_parser_scan_uri_escapes function in LibYAML before 0.1.6 allowed context-dependent attackers to execute arbitrary code via a long sequence of percent-encoded characters in a URI in a YAML file (bnc#868944, bnc#911782).
- Record
SUSE-SU-2015:0953-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libyamlnpm |
before 0.2.3 | 0.2.3 |
libyamlDebian:12 |
before 0.1.4-3 | 0.1.4-3 |
libyamlDebian:13 |
before 0.1.4-3 | 0.1.4-3 |
libyamlDebian:14 |
before 0.1.4-3 | 0.1.4-3 |
libyaml-libyaml-perlDebian:12 |
before 0.41-4 | 0.41-4 |
libyaml-libyaml-perlDebian:13 |
before 0.41-4 | 0.41-4 |
libyaml-libyaml-perlDebian:14 |
before 0.41-4 | 0.41-4 |
libyamlDebian:6.0 |
before 0.1.3-1+deb6u2, plus listed versions 0.1.3-1 |
0.1.3-1+deb6u2 |
libyamlDebian:7 |
before 0.1.4-2+deb7u2, plus listed versions 0.1.4-20.1.4-2+deb7u1 |
0.1.4-2+deb7u2 |
libyaml-libyaml-perlDebian:6.0 |
before 0.33-1+squeeze2, plus listed versions 0.33-10.33-1+squeeze1 |
0.33-1+squeeze2 |
Show 25 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libyaml-libyaml-perlDebian:7 |
before 0.38-3+deb7u1, plus listed versions 0.38-3 |
0.38-3+deb7u1 |
yamlMageia:3 |
before 0.1.5-1.mga3 | 0.1.5-1.mga3 |
yamlMageia:4 |
before 0.1.5-1.mga4 | 0.1.5-1.mga4 |
perl-YAML-LibYAMLMageia:3 From an advisory covering 2 CVEs |
before 0.380.0-3.2.mga3 | 0.380.0-3.2.mga3 |
perl-YAML-LibYAMLMageia:4 From an advisory covering 2 CVEs |
before 0.410.0-2.2.mga4 | 0.410.0-2.2.mga4 |
libyamlRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyaml-debuginfoRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyaml-develRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyamlRed Hat:openstack:4::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyaml-debuginfoRed Hat:openstack:4::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyaml-develRed Hat:openstack:4::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
ruby193-libyamlRed Hat:rhel_software_collections:1::el6 From an advisory covering 2 CVEs |
before 0:0.1.4-5.1.el6 | 0:0.1.4-5.1.el6 |
ruby193-libyaml-debuginfoRed Hat:rhel_software_collections:1::el6 From an advisory covering 2 CVEs |
before 0:0.1.4-5.1.el6 | 0:0.1.4-5.1.el6 |
ruby193-libyaml-develRed Hat:rhel_software_collections:1::el6 From an advisory covering 2 CVEs |
before 0:0.1.4-5.1.el6 | 0:0.1.4-5.1.el6 |
ruby193-libyamlRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:0.1.4-5.1.el6 | 0:0.1.4-5.1.el6 |
ruby193-libyaml-debuginfoRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:0.1.4-5.1.el6 | 0:0.1.4-5.1.el6 |
ruby193-libyaml-develRed Hat:openstack:3::el6 From an advisory covering 2 CVEs |
before 0:0.1.4-5.1.el6 | 0:0.1.4-5.1.el6 |
libyamlRed Hat:rhel_common:6::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyaml-debuginfoRed Hat:rhel_common:6::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
libyaml-develRed Hat:rhel_common:6::el6 From an advisory covering 2 CVEs |
before 0:0.1.3-1.4.el6 | 0:0.1.3-1.4.el6 |
perl-YAML-LibYAMLSUSE:Linux Enterprise Server 12 From an advisory covering 3 CVEs |
before 0.38-10.1 | 0.38-10.1 |
perl-YAML-LibYAMLSUSE:Linux Enterprise Server for SAP Applications 12 From an advisory covering 3 CVEs |
before 0.38-10.1 | 0.38-10.1 |
perl-YAML-LibYAMLSUSE:Linux Enterprise Desktop 12 From an advisory covering 3 CVEs |
before 0.38-10.1 | 0.38-10.1 |
libyamlopenSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 0.1.6-4.8 | 0.1.6-4.8 |
perl-YAML-LibYAMLopenSUSE:Tumbleweed From an advisory covering 4 CVEs |
before 0.59-2.11 | 0.59-2.11 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2013-6393 is a medium vulnerability (CVSS 6.8) in Pyyaml Libyaml, published January 31, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 7.39%, the 94th percentile. Fixed in libyaml 0.2.3.
References
lists.opensuse.org/opensuse-updates/2014-02/msg00065.html
debian.org/security/2014/dsa-2870
archives.neohapsis.com/archives/bugtraq/2014-10/0103.html
bugzilla.redhat.com/show_bug.cgi?id=1033990
archives.neohapsis.com/archives/bugtraq/2014-04/0134.html
osvdb.org/102716
Show 55 moreShow less
bugzilla.redhat.com/attachment.cgi?id=847926&action=diff
mandriva.com/security/advisories?name=MDVSA-2015:060
securityfocus.com/bid/65258
advisories.mageia.org/MGASA-2014-0040.html
lists.opensuse.org/opensuse-updates/2015-02/msg00078.html
rhn.redhat.com/errata/RHSA-2014-0355.html
lists.opensuse.org/opensuse-updates/2014-02/msg00064.html
rhn.redhat.com/errata/RHSA-2014-0354.html
support.apple.com/kb/HT6536
lists.opensuse.org/opensuse-updates/2016-04/msg00050.html
debian.org/security/2014/dsa-2850
rhn.redhat.com/errata/RHSA-2014-0353.html
bitbucket.org/xi/libyaml/commits/tag/0.1.5
puppet.com/security/cve/cve-2013-6393
ubuntu.com/usn/USN-2098-1
bitbucket.org/xi/libyaml/commits/bce8b60f0b9af69fa9fab3093d0a41ba243de048
npmjs.com/advisories/21
cve.mitre.org/cgi-bin/cvename.cgi?name=2013-6393
nvd.nist.gov/vuln/detail/CVE-2013-6393
web.archive.org/web/20140302205713/http://www.securityfocus.com/bid/65258
web.archive.org/web/20150523055002/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:060?name=MDVSA-2015:060
github.com/advisories/GHSA-m75h-cghq-c8h5
security-tracker.debian.org/tracker/CVE-2013-6393
bitbucket.org/xi/libyaml
bugs.mageia.org/show_bug.cgi?id=12583
advisories.mageia.org/MGASA-2014-0154.html
bugs.mageia.org/show_bug.cgi?id=12984
debian.org/security/2014/dsa-2885
access.redhat.com/errata/RHSA-2014:0353
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1078083
security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0353.json
access.redhat.com/security/cve/CVE-2013-6393
cve.org/CVERecord?id=CVE-2013-6393
access.redhat.com/security/cve/CVE-2014-2525
cve.org/CVERecord?id=CVE-2014-2525
nvd.nist.gov/vuln/detail/CVE-2014-2525
access.redhat.com/errata/RHSA-2014:0354
security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0354.json
access.redhat.com/errata/RHSA-2014:0355
security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0355.json
access.redhat.com/errata/RHSA-2014:0364
security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0364.json
access.redhat.com/errata/RHSA-2014:0415
security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0415.json
suse.com/support/update/announcement/2015/suse-su-20150953-1
bugzilla.suse.com/860617
bugzilla.suse.com/868944
bugzilla.suse.com/907809
bugzilla.suse.com/911782
suse.com/security/cve/CVE-2013-6393
suse.com/security/cve/CVE-2014-2525
suse.com/security/cve/CVE-2014-9130
suse.com/support/update/announcement/2015/suse-su-20150953-2
suse.com/security/cve/CVE-2012-1152