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

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 ID SNYK-PYTHON-PYLINT-568073
  • published 4 May 2020
  • disclosed 1 May 2020
  • credit Unknown

Introduced: 1 May 2020

CVE NOT AVAILABLE CWE-94 Open this link 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
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None