Critical Security Update for PyYAML: CVE-2024-11168 and Related Vulnerabilities

PyYAML Updated 18 Dec 2025

Summary

18/12/2025
N/A
Yes i
High
7.6

RHSA-2025:23530: Red Hat Security Advisory: python39:3.9 security update. Affects PyYAML versions < 0:5.4.1-1.module+el8.9.0+19644+d68f775d. Fixed in 0:5.4.1-1.module+el8.9.0+19644+d68f775d. 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

PyYAML is a popular Python library used for parsing and writing YAML, a human-readable data serialization standard. It is widely utilized in various applications for configuration files and data exchange. The library is known for its ease of use and flexibility, making it a staple in many Python projects. However, recent vulnerabilities have been identified that could potentially compromise the security of applications relying on this library.

Vulnerability Detail

The vulnerabilities, including CVE-2024-11168, CVE-2024-5642, and others, stem from improper handling of certain inputs, which could lead to arbitrary code execution or denial of service. Attackers could exploit these vulnerabilities by crafting malicious YAML files that, when processed by the affected application, could execute unintended commands or crash the application. This poses a significant risk, especially for applications that process untrusted input.

How To Fix

Minimum fixed version

0:5.4.1-1.module+el8.9.0+19644+d68f775d

This is the first release that contains the fix.

sudo dnf update PyYAML

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

Workaround

If immediate updating is not possible, consider implementing input validation to sanitize YAML files before processing them. This can help mitigate the risk of exploitation until the packages can be updated.

Conclusion

The identified vulnerabilities in PyYAML pose significant risks to applications that utilize this library. It is crucial to update to the latest patched versions to safeguard against potential attacks. Implementing input validation can serve as a temporary measure until updates are applied.

See every vulnerability recorded for PyYAML →

Share this vulnerability

FAQ

CVE-2024-11168 is a vulnerability in the PyYAML library that allows for arbitrary code execution through crafted YAML files.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Implement input validation to sanitize YAML files before processing them to reduce the risk of exploitation.

Exploitation of this vulnerability could lead to arbitrary code execution, allowing attackers to execute malicious commands on the server.

Yes, the CVSS score for this vulnerability is 7.6, indicating a high severity level.

References

View More

Related vulnerabilities

Recent vulnerabilities recorded for PyYAML.

How To Fix

Minimum fixed version

0:5.4.1-1.module+el8.9.0+19644+d68f775d

This is the first release that contains the fix.

sudo dnf update 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