Remote Code Execution Affecting pylint package, versions [1.1.0,2.5.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 Remote Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYLINT-568073
  • published4 May 2020
  • disclosed1 May 2020
  • creditUnknown

Introduced: 1 May 2020

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade pylint to version 2.5.0 or higher.

Overview

pylint is a Python static code analysis tool which looks for programming errors, helps enforcing a coding standard, sniffs for code smells and offers simple refactoring suggestions.

Affected versions of this package are vulnerable to Remote Code Execution. python -m pylint imports user code. It adds the current working directory as the first element of sys.path this opens up a security hole where pylint imports user level code as long as that code resides in modules with the same name as stdlib or pylint's own modules.

CVSS Scores

version 3.1