Vulnerabilities

5 via 5 paths

Dependencies

17

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 5
  • 1
Severity
  • 1
  • 4
  • 1
Status
  • 6
  • 0
  • 0

critical severity

Arbitrary Argument Injection

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.1.45

Detailed paths

  • Introduced through: aquatix/webhaak@aquatix/webhaak gitpython@3.1.45
    Remediation: Upgrade to gitpython@3.1.47.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Arbitrary Argument Injection in the multi_options parameter of the _clone function, which may be passed in via the clone_from(), clone(), or Submodule.update() functions. An attacker can execute arbitrary code by supplying specially crafted input that manipulates Git configuration options, leading to the execution of malicious hooks during cloning.

Remediation

Upgrade GitPython to version 3.1.47 or higher.

References

high severity

Directory Traversal

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.1.45

Detailed paths

  • Introduced through: aquatix/webhaak@aquatix/webhaak gitpython@3.1.45
    Remediation: Upgrade to gitpython@3.1.48.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Directory Traversal through insufficient validation of reference paths in the creation, renaming, and deletion. An attacker can write, overwrite, move, or delete files outside the intended directory by supplying crafted reference paths to the relevant APIs.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade GitPython to version 3.1.48 or higher.

References

high severity

Command Injection

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.1.45

Detailed paths

  • Introduced through: aquatix/webhaak@aquatix/webhaak gitpython@3.1.45
    Remediation: Upgrade to gitpython@3.1.47.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Command Injection via the upload_pack or receive_pack kwargs in the Repo.clone_from, Remote.fetch, Remote.pull, or Remote.push functions. An attacker can execute arbitrary commands on the host system by supplying malicious keyword arguments.

Remediation

Upgrade GitPython to version 3.1.47 or higher.

References

high severity

Command Injection

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.1.45

Detailed paths

  • Introduced through: aquatix/webhaak@aquatix/webhaak gitpython@3.1.45
    Remediation: Upgrade to gitpython@3.1.50.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Command Injection via the set_value function when the section parameter is not properly validated for newline characters. An attacker can execute arbitrary code by injecting malicious section headers into the .git/config file, which can redirect core.hooksPath to an attacker-controlled directory and trigger execution when a git hook runs.

Note: This vulnerability bypasses the patch for CVE-2026-42215.

Remediation

Upgrade GitPython to version 3.1.50 or higher.

References

high severity

Arbitrary Code Injection

  • Vulnerable module: gitpython
  • Introduced through: gitpython@3.1.45

Detailed paths

  • Introduced through: aquatix/webhaak@aquatix/webhaak gitpython@3.1.45
    Remediation: Upgrade to gitpython@3.1.49.

Overview

GitPython is a python library used to interact with Git repositories

Affected versions of this package are vulnerable to Arbitrary Code Injection via the set_value function. An attacker can achieve arbitrary code execution by injecting newline characters into configuration values, which allows the creation of malicious Git configuration entries such as core.hooksPath. This enables execution of attacker-controlled scripts during Git operations that invoke hooks.

Remediation

Upgrade GitPython to version 3.1.49 or higher.

References

medium severity

MPL-2.0 license

  • Module: certifi
  • Introduced through: certifi@2025.11.12 and sentry-sdk@2.44.0

Detailed paths

  • Introduced through: aquatix/webhaak@aquatix/webhaak certifi@2025.11.12
  • Introduced through: aquatix/webhaak@aquatix/webhaak sentry-sdk@2.44.0 certifi@2025.11.12

MPL-2.0 license