CVE-2020-1747CWE-20

A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted…

Critical · published March 24, 2020

CVSS v3.1
9.8
EPSS
5%
Percentile
92.7
In the wild
Unconfirmed
What it is

🚨 A crafty YAML file is all it takes to trigger calamity! In PyYAML versions before 5.3.1, attackers can execute arbitrary code on your system through untrusted input. 🔥 Think of your application as a restaurant kitchen. If you let in a delivery with no inspection, that sneaky chef could be slipping in harmful ingredients without you knowing! An attacker could waltz right in and execute whatever malicious code they desire, giving them control over your system. Imagine the chaos—data breaches, unauthorized access, or even total shutdowns! This vulnerability puts your application’s integrity at serious risk.

Put simply

Think of your application as a restaurant kitchen. If you let in a delivery with no inspection, that sneaky chef could be slipping in harmful ingredients without you knowing! This vulnerability in PyYAML arises from the full_load method and the FullLoader, allowing untrusted YAML files to execute arbitrary code using the python/object/new constructor. If your application processes YAML input without proper checks, you're inviting trouble!

What to do

An attacker could waltz right in and execute whatever malicious code they desire, giving them control over your system. Imagine the chaos—data breaches, unauthorized access, or even total shutdowns! This vulnerability puts your application’s integrity at serious risk. Update to PyYAML version 5.3.1 or later immediately to patch this critical vulnerability. Review how your applications handle untrusted YAML files and ensure you're using safe loaders. Make security a priority and don’t allow unverified input! You've got this! By following these steps, you’ll secure your application like a pro! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.05442 · 92.7th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2020-03-24T13:56Z
EPSS history
Timeline
  • 24 MAR 13:56Z
    A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted…
    cvelistv5