Remote Code Execution Affecting pylint package, versions [1.1.0,2.5.0)
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
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.