Arbitrary Code Execution Affecting confire package, versions [,0.2.0]


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
4.47% (92nd 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 Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-CONFIRE-40708
  • published28 Nov 2017
  • disclosed9 Nov 2017
  • creditJoel-MalwareBenchmark

Introduced: 9 Nov 2017

CVE-2017-16763  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

The fix was pushed into the master branch but not yet published.

Overview

confire is a simple app configuration scheme using YAML and class based defaults.

Affected versions of the package are vulnerable to Arbitrary Code Execution. An exploitable vulnerability exists in the YAML parsing functionality in config.py in Confire 0.2.0. Due to the user-specific configuration being loaded from "/.confire.yaml" using the yaml.load function, a YAML parser can execute arbitrary Python commands resulting in command execution. An attacker can insert Python into loaded YAML to trigger this vulnerability.

CVSS Base Scores

version 3.1