Denial-of-Service Vulnerability in yaml-cpp Package

yaml-cpp Updated 02 Oct 2025

Summary

15/01/2019
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2019-6292: An issue was discovered in singledocparser.cpp in yaml-cpp (aka LibYaml-C++) 0.6.2. Affects yaml-cpp versions < 0.6.3-1. Fixed in 0.6.3-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

yaml-cpp is a YAML parser and emitter in C++ that allows developers to read and write YAML files easily. It is widely used in various applications for configuration management and data serialization. The package is known for its simplicity and efficiency in handling YAML data structures. However, a vulnerability has been identified in version 0.6.2, which can lead to stack exhaustion and potential denial-of-service attacks.

Vulnerability Detail

An issue was discovered in singledocparser.cpp in yaml-cpp (also known as LibYaml-C++) version 0.6.2. The vulnerability arises from a stack consumption problem caused by recursive stack frames in functions such as HandleCompactMap, HandleMap, HandleFlowSequence, HandleSequence, and HandleNode. Remote attackers could exploit this vulnerability to cause a denial-of-service by sending specially crafted YAML files, leading to application crashes or unresponsiveness.

How To Fix

Minimum fixed version

0.6.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade yaml-cpp

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you are unable to update the package immediately, consider implementing input validation to restrict the types of YAML files that can be processed by your application. This can help mitigate the risk of denial-of-service attacks until a proper update can be applied.

Conclusion

The yaml-cpp package has a critical vulnerability that can lead to denial-of-service attacks. It is essential to update to the patched version 0.6.3-1 or later to protect your applications. Additionally, consider using Vulert to monitor for vulnerabilities in your software and ensure timely updates.

See every vulnerability recorded for yaml-cpp →

Share this vulnerability

FAQ

The vulnerability is a stack exhaustion issue that can lead to denial-of-service attacks when processing specially crafted YAML files.

The vulnerability affects yaml-cpp version 0.6.2 and earlier. Versions 0.6.3-1 and later contain the necessary fixes.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, such as package-lock.json, you can receive real-time alerts about vulnerabilities.

Exploitation of this vulnerability can lead to application crashes or unresponsiveness, impacting the availability of services relying on yaml-cpp.

Yes, implementing input validation to restrict the types of YAML files processed can help mitigate the risk of denial-of-service attacks.

Related vulnerabilities

Recent vulnerabilities recorded for yaml-cpp.

How To Fix

Minimum fixed version

0.6.3-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade yaml-cpp

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback