CVE-2013-6393
Heap Based Buffer Overflow in libyaml
Also known as GHSA-m75h-cghq-c8h5
Mitigation
- Upgrade libyaml to 0.2.3 or later.
Who should check
- Projects that depend on npm package libyaml (< 0.2.3)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- libyaml < 0.2.3
- Fixed in
- 0.2.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.8 (v2.0, NVD)AV:N/AC:M/Au:N/C:P/I:P/A:P
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Medium
- Authentication: None
- Confidentiality impact: Partial
- Integrity impact: Partial
- Availability impact: Partial
- EPSS
- 7.39% chance of exploitation in 30 days (percentile 95, 2026-11-26)
- CWE
- CWE-119
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm libyaml | < 0.2.3 | 0.2.3 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2013-6393. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2013-6393.md Affected: libyaml < 0.2.3 Fixed in: 0.2.3 Steps: 1. Search this machine and project for libyaml (npm), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- http://lists.opensuse.org/opensuse-updates/2014-02/msg00065.html
- http://www.debian.org/security/2014/dsa-2870
- http://archives.neohapsis.com/archives/bugtraq/2014-10/0103.html
- http://archives.neohapsis.com/archives/bugtraq/2014-04/0134.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:060
- http://lists.opensuse.org/opensuse-updates/2015-02/msg00078.html
- http://rhn.redhat.com/errata/RHSA-2014-0355.html
- http://lists.opensuse.org/opensuse-updates/2014-02/msg00064.html
- http://rhn.redhat.com/errata/RHSA-2014-0354.html
- http://lists.opensuse.org/opensuse-updates/2016-04/msg00050.html
- http://www.debian.org/security/2014/dsa-2850
- http://rhn.redhat.com/errata/RHSA-2014-0353.html
- http://www.ubuntu.com/usn/USN-2098-1
- https://nvd.nist.gov/vuln/detail/CVE-2013-6393
Other
- http://osvdb.org/102716
- https://bugzilla.redhat.com/attachment.cgi?id=847926&action=diff
- http://www.securityfocus.com/bid/65258
- http://advisories.mageia.org/MGASA-2014-0040.html
- https://support.apple.com/kb/HT6536
- https://bitbucket.org/xi/libyaml/commits/tag/0.1.5
- https://puppet.com/security/cve/cve-2013-6393
- https://bitbucket.org/xi/libyaml
- https://bitbucket.org/xi/libyaml/commits/bce8b60f0b9af69fa9fab3093d0a41ba243de048
- https://web.archive.org/web/20140302205713/http://www.securityfocus.com/bid/65258
- https://web.archive.org/web/20150523055002/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:060/?name=MDVSA-2015:060
- https://www.npmjs.com/advisories/21
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=2013-6393
FAQ
Is CVE-2013-6393 being exploited?
There is no confirmed exploitation: CVE-2013-6393 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 7.39% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2013-6393?
Medium: CVSS 6.8 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2013-6393?
libyaml < 0.2.3.
Is there a fix for CVE-2013-6393?
Yes. Fixed in 0.2.3. Upgrade libyaml to 0.2.3 or later.
How do I check if I'm affected by CVE-2013-6393?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.