Code Injection Affecting ymlref package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.83% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-YMLREF-1583447
  • published8 Sept 2021
  • disclosed19 Dec 2018
  • creditbigbigliang-malwarebenchmark

Introduced: 19 Dec 2018

CVE-2018-20133  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for ymlref.

Overview

ymlref is a package that allows you to load Yaml documents with the possibility to resolve references.

Affected versions of this package are vulnerable to Code Injection. ymlref allows code injection via the load method.

PoC

import ymlref.api

test_str ='!!python/object/apply:os.system ["dir"]' ymlref.api.load(test_str,)

References

CVSS Base Scores

version 3.1