PyPi: Pre-Commit

CVE-2017-18342

Safety vulnerability ID: 42949

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Jun 27, 2018 Updated at May 11, 2024
Scan your Python projects for vulnerabilities →

Advisory

Pre-commit 1.10.4 replaces 'yaml.load' with safe alternative to avoid a remote code execution vulnerability.
https://github.com/pre-commit/pre-commit/commit/6853f4aa4c8d7e411839bacc66876baea443186a

Affected package

pre-commit

Latest version: 3.7.1

A framework for managing and maintaining multi-language pre-commit hooks.

Affected versions

Fixed versions

Vulnerability changelog

===================

Fixes
- Replace `yaml.load` with safe alternative
- `yaml.load` can lead to arbitrary code execution, though not where it
was used
- issue by tonybaloney.
- 779 PR by asottile.
- Improve not found error with script paths (`./exe`)
- 782 issue by ssbarnea.
- 785 PR by asottile.
- Fix minor buffering issue during `--show-diff-on-failure`
- 796 PR by asottile.
- Default `language_version: python3` for `python_venv` when running in python2
- 794 issue by ssbarnea.
- 797 PR by asottile.
- `pre-commit run X` only run `X` and not hooks with `stages: [...]`
- 772 issue by asottile.
- 803 PR by mblayman.

Misc.
- Improve travis-ci build times by caching rust / swift artifacts
- 781 PR by expobrain.
- Test against python3.7
- 789 PR by expobrain.

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

CRITICAL 9.8

CVSS v3 Details

CRITICAL 9.8
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
HIGH
Availability Availability (A)
HIGH

CVSS v2 Details

HIGH 7.5
Access Vector (AV)
NETWORK
Access Complexity (AC)
LOW
Authentication (Au)
NONE
Confidentiality Impact (C)
PARTIAL
Integrity Impact (I)
PARTIAL
Availability Impact (A)
PARTIAL