Skip to content

gitpython version 3.1.29 has a RCE vulnerability (CVE-2022-24439) #971

@CrypticGuru

Description

@CrypticGuru

Describe the bug

There is a Remote Code Execution vulnerability in all versions of gitpython.

See: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24439

Reproduction steps

1. Install bandit version 1.7.4
2. It requires gitpython >=1.0.1 (but installs 3.1.29)
3. gitpython 3.1.29 has the reported vulnerability

Expected behavior

Proper input validation for git URLs needs to exist so that it is NOT possible to inject a maliciously crafted remote URL into the clone command.

Bandit version

1.7.4 (Default)

Python version

3.11 (Default)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions