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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libyaml | 0.1.4-3 | — |
| Debian 14 | libyaml-libyaml-perl | 0.41-4 | — |
| Debian 13 | libyaml | 0.1.4-3 | — |
| Debian 13 | libyaml-libyaml-perl | 0.41-4 | — |
| Debian 12 | libyaml | 0.1.4-3 | — |
| Debian 12 | libyaml-libyaml-perl | 0.41-4 | — |
| Debian 7 | libyaml | 0.1.4-2+deb7u2 | DSA-2850-1 |
| Debian 7 | libyaml-libyaml-perl | 0.38-3+deb7u1 | DSA-2870-1 |
| Debian 6.0 | libyaml | 0.1.3-1+deb6u2 | DSA-2850-1 |
| Debian 6.0 | libyaml-libyaml-perl | 0.33-1+squeeze2 | DSA-2870-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 1 | ruby193-libyaml +1 | 0.1.4-5.1.el6 | RHSA-2014:0355 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhel Common 6 | libyaml +1 | 0.1.3-1.4.el6 | RHSA-2014:0415 |
| Red Hat OpenStack 4 | libyaml +1 | 0.1.3-1.4.el6 | RHSA-2014:0354 |
| Red Hat OpenStack 3 | libyaml +1 | 0.1.3-1.4.el6 | RHSA-2014:0353 |
| Red Hat OpenStack 3 | ruby193-libyaml +1 | 0.1.4-5.1.el6 | RHSA-2014:0364 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 | perl-YAML-LibYAML | 0.38-10.1 | SUSE-SU-2015:0953-2, SUSE-SU-2015:0953-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 | perl-YAML-LibYAML | 0.38-10.1 | SUSE-SU-2015:0953-2, SUSE-SU-2015:0953-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libyaml | 0.1.6-4.8 | openSUSE-SU-2024:10029-1 |
| openSUSE Tumbleweed | perl-YAML-LibYAML | 0.59-2.11 | openSUSE-SU-2024:10520-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | libyaml | < 0.2.3 | 0.2.3 | GHSA-m75h-cghq-c8h5 |
Advisories 11
- RHSA-2014:0415 Red Hat Security Advisory: libyaml security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:0364 Red Hat Security Advisory: ruby193-libyaml security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:0354 Red Hat Security Advisory: libyaml security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:0355 Red Hat Security Advisory: ruby193-libyaml security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2014:0353 Red Hat Security Advisory: libyaml security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-2870-1 libyaml-libyaml-perl - heap-based buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-2850-1 libyaml - heap-based buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10029-1 libyaml-0-2-0.1.6-4.8 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:0953-1 Security update for perl-YAML-LibYAML SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10520-1 perl-YAML-LibYAML-0.59-2.11 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:0953-2 Security update for perl-YAML-LibYAML SUSE / openSUSE Security Updates · Feb 4, 2026
References
- openSUSE-SU-2014:0273 vendor-advisory
- DSA-2870 vendor-advisory
- APPLE-SA-2014-10-16-3 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1033990
- APPLE-SA-2014-04-22-1 vendor-advisory
- 102716 vdb-entry
- https://bugzilla.redhat.com/attachment.cgi?id=847926&action=diff
- MDVSA-2015:060 vendor-advisory
- 65258 vdb-entry
- http://advisories.mageia.org/MGASA-2014-0040.html
- openSUSE-SU-2015:0319 vendor-advisory
- RHSA-2014:0355 vendor-advisory
- openSUSE-SU-2014:0272 vendor-advisory
- RHSA-2014:0354 vendor-advisory
- https://support.apple.com/kb/HT6536
- openSUSE-SU-2016:1067 vendor-advisory
- DSA-2850 vendor-advisory
- RHSA-2014:0353 vendor-advisory
- https://bitbucket.org/xi/libyaml/commits/tag/0.1.5
- https://puppet.com/security/cve/cve-2013-6393
- USN-2098-1 vendor-advisory