DSA-3115-1: pyyaml - security update

pyyaml Updated 02 Oct 2025

Summary

29/12/2014
N/A
Yes i
Unrated
Not published

DSA-3115-1: pyyaml - security update. Affects pyyaml versions < 3.10-4+deb7u1. Fixed in 3.10-4+deb7u1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

pyyaml is a YAML parser and emitter for Python. It allows Python applications to easily read and write YAML data. YAML is a human-readable data serialization format commonly used for configuration files and data exchange between languages. pyyaml provides a convenient way to work with YAML in Python applications.

Vulnerability Detail

An assertion failure was discovered in the way wrapped strings are parsed in pyyaml. This vulnerability allows an attacker to crash an application that uses python-yaml by loading specially crafted YAML input. By exploiting this vulnerability, an attacker could potentially disrupt the functionality of the application or cause it to crash, leading to a denial of service (DoS) condition.

How To Fix

Minimum fixed version

3.10-4+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade pyyaml

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

Workaround

There is no known workaround for this vulnerability. It is necessary to upgrade the pyyaml package to the fixed version.

Conclusion

In conclusion, the pyyaml package is vulnerable to an assertion failure when parsing wrapped strings. This vulnerability can be exploited by an attacker to crash an application using python-yaml. To mitigate this issue, it is recommended to upgrade the pyyaml package to the fixed version mentioned in the 'how_to_fix' section. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pyyaml →

Share this vulnerability

FAQ

pyyaml is a YAML parser and emitter for Python. It allows Python applications to easily read and write YAML data.

YAML is a human-readable data serialization format commonly used for configuration files and data exchange between languages.

This vulnerability allows an attacker to crash an application that uses python-yaml by loading specially crafted YAML input. It can lead to a denial of service (DoS) condition.

To fix this vulnerability, you need to upgrade the pyyaml package to the fixed version. Please refer to the 'how_to_fix' section for detailed instructions.

No, there is no known workaround for this vulnerability. It is necessary to upgrade the pyyaml package to the fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for pyyaml.

How To Fix

Minimum fixed version

3.10-4+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade pyyaml

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