Every CVE Search/ Get API key

CVE-2013-6393

Heap Based Buffer Overflow in libyaml

6.8 MediumFix available

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

7.39%Up 0.8 points since Feb 4, 2022
90%50%10%1%

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 MediumAV: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

Affected packages
PackageAffectedFixed
libyaml
npm
before 0.2.3
0.2.3
libyaml
Debian:12
before 0.1.4-3
0.1.4-3
libyaml
Debian:13
before 0.1.4-3
0.1.4-3
libyaml
Debian:14
before 0.1.4-3
0.1.4-3
libyaml-libyaml-perl
Debian:12
before 0.41-4
0.41-4
libyaml-libyaml-perl
Debian:13
before 0.41-4
0.41-4
libyaml-libyaml-perl
Debian:14
before 0.41-4
0.41-4
libyaml
Debian:6.0
before 0.1.3-1+deb6u2, plus listed versions
0.1.3-1
0.1.3-1+deb6u2
libyaml
Debian: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-perl
Debian:6.0
before 0.33-1+squeeze2, plus listed versions
0.33-10.33-1+squeeze1
0.33-1+squeeze2
Show 25 moreShow less
Affected packages
PackageAffectedFixed
libyaml-libyaml-perl
Debian:7
before 0.38-3+deb7u1, plus listed versions
0.38-3
0.38-3+deb7u1
yaml
Mageia:3
before 0.1.5-1.mga3
0.1.5-1.mga3
yaml
Mageia:4
before 0.1.5-1.mga4
0.1.5-1.mga4
perl-YAML-LibYAML
Mageia:3
From an advisory covering 2 CVEs
before 0.380.0-3.2.mga3
0.380.0-3.2.mga3
perl-YAML-LibYAML
Mageia:4
From an advisory covering 2 CVEs
before 0.410.0-2.2.mga4
0.410.0-2.2.mga4
libyaml
Red 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-debuginfo
Red 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-devel
Red 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
Red 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-debuginfo
Red 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-devel
Red 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-libyaml
Red 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-debuginfo
Red 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-devel
Red 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
Red 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-debuginfo
Red 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-devel
Red 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
libyaml
Red 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-debuginfo
Red 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-devel
Red 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-LibYAML
SUSE:Linux Enterprise Server 12
From an advisory covering 3 CVEs
before 0.38-10.1
0.38-10.1
perl-YAML-LibYAML
SUSE:Linux Enterprise Server for SAP Applications 12
From an advisory covering 3 CVEs
before 0.38-10.1
0.38-10.1
perl-YAML-LibYAML
SUSE:Linux Enterprise Desktop 12
From an advisory covering 3 CVEs
before 0.38-10.1
0.38-10.1
libyaml
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 0.1.6-4.8
0.1.6-4.8
perl-YAML-LibYAML
openSUSE:Tumbleweed
From an advisory covering 4 CVEs
before 0.59-2.11
0.59-2.11

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 55 moreShow less
MoveEnter Open