Lookup for vulnerable packages by Package URL.

Purlpkg:pypi/gitpython@3.1.32
Typepypi
Namespace
Namegitpython
Version3.1.32
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_version3.1.41
Latest_non_vulnerable_version3.1.41
Affected_by_vulnerabilities
0
url VCID-2wzu-49nj-8be5
vulnerability_id VCID-2wzu-49nj-8be5
summary GitPython is a python library used to interact with Git repositories. In order to resolve some git references, GitPython reads files from the `.git` directory, in some places the name of the file being read is provided by the user, GitPython doesn't check if this file is located outside the `.git` directory. This allows an attacker to make GitPython read any file from the system. This vulnerability is present in https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175. That code joins the base directory with a user given string without checking if the final path is located outside the base directory. This vulnerability cannot be used to read the contents of files but could in theory be used to trigger a denial of service for the program. This issue has not yet been addressed.
references
0
reference_url https://github.com/gitpython-developers/GitPython
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython
1
reference_url https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
url https://github.com/gitpython-developers/GitPython/blob/1c8310d7cae144f74a671cbe17e51f63a830adbf/git/refs/symbolic.py#L174-L175
2
reference_url https://github.com/gitpython-developers/GitPython/commit/74e55ee4544867e1bd976b7df5a45869ee397b0b
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/commit/74e55ee4544867e1bd976b7df5a45869ee397b0b
3
reference_url https://github.com/gitpython-developers/GitPython/commit/e98f57b81f792f0f5e18d33ee658ae395f9aa3c4
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/commit/e98f57b81f792f0f5e18d33ee658ae395f9aa3c4
4
reference_url https://github.com/gitpython-developers/GitPython/pull/1672
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/pull/1672
5
reference_url https://github.com/gitpython-developers/GitPython/releases/tag/3.1.37
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/releases/tag/3.1.37
6
reference_url https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-cwvm-v4w8-q58c
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
url https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-cwvm-v4w8-q58c
7
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-165.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-165.yaml
8
reference_url https://lists.debian.org/debian-lts-announce/2023/09/msg00036.html
reference_id
reference_type
scores
url https://lists.debian.org/debian-lts-announce/2023/09/msg00036.html
9
reference_url https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html
reference_id
reference_type
scores
url https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html
10
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-41040
reference_id CVE-2023-41040
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-41040
11
reference_url https://github.com/advisories/GHSA-cwvm-v4w8-q58c
reference_id GHSA-cwvm-v4w8-q58c
reference_type
scores
url https://github.com/advisories/GHSA-cwvm-v4w8-q58c
fixed_packages
0
url pkg:pypi/gitpython@3.1.35
purl pkg:pypi/gitpython@3.1.35
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-baz5-ra3v-9qeh
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/gitpython@3.1.35
1
url pkg:pypi/gitpython@3.1.37
purl pkg:pypi/gitpython@3.1.37
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-baz5-ra3v-9qeh
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/gitpython@3.1.37
aliases CVE-2023-41040, GHSA-cwvm-v4w8-q58c, PYSEC-2023-165
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-2wzu-49nj-8be5
1
url VCID-baz5-ra3v-9qeh
vulnerability_id VCID-baz5-ra3v-9qeh
summary GitPython is a python library used to interact with Git repositories. There is an incomplete fix for CVE-2023-40590. On Windows, GitPython uses an untrusted search path if it uses a shell to run `git`, as well as when it runs `bash.exe` to interpret hooks. If either of those features are used on Windows, a malicious `git.exe` or `bash.exe` may be run from an untrusted repository. This issue has been patched in version 3.1.41.
references
0
reference_url https://github.com/gitpython-developers/GitPython
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython
1
reference_url https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f
2
reference_url https://github.com/gitpython-developers/GitPython/pull/1792
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://github.com/gitpython-developers/GitPython/pull/1792
3
reference_url https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx
4
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml
5
reference_url https://nvd.nist.gov/vuln/detail/CVE-2024-22190
reference_id CVE-2024-22190
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2024-22190
6
reference_url https://github.com/advisories/GHSA-2mqj-m65w-jghx
reference_id GHSA-2mqj-m65w-jghx
reference_type
scores
url https://github.com/advisories/GHSA-2mqj-m65w-jghx
fixed_packages
0
url pkg:pypi/gitpython@3.1.41
purl pkg:pypi/gitpython@3.1.41
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/gitpython@3.1.41
aliases CVE-2024-22190, GHSA-2mqj-m65w-jghx, PYSEC-2024-4
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-baz5-ra3v-9qeh
2
url VCID-sgae-p557-9uhk
vulnerability_id VCID-sgae-p557-9uhk
summary GitPython is a python library used to interact with Git repositories. When resolving a program, Python/Windows look for the current working directory, and after that the PATH environment. GitPython defaults to use the `git` command, if a user runs GitPython from a repo has a `git.exe` or `git` executable, that program will be run instead of the one in the user's `PATH`. This is more of a problem on how Python interacts with Windows systems, Linux and any other OS aren't affected by this. But probably people using GitPython usually run it from the CWD of a repo. An attacker can trick a user to download a repository with a malicious `git` executable, if the user runs/imports GitPython from that directory, it allows the attacker to run any arbitrary commands. There is no fix currently available for windows users, however there are a few mitigations. 1: Default to an absolute path for the git program on Windows, like `C:\\Program Files\\Git\\cmd\\git.EXE` (default git path installation). 2: Require users to set the `GIT_PYTHON_GIT_EXECUTABLE` environment variable on Windows systems. 3: Make this problem prominent in the documentation and advise users to never run GitPython from an untrusted repo, or set the `GIT_PYTHON_GIT_EXECUTABLE` env var to an absolute path. 4: Resolve the executable manually by only looking into the `PATH` environment variable.
references
0
reference_url https://docs.python.org/3/library/subprocess.html#popen-constructor
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://docs.python.org/3/library/subprocess.html#popen-constructor
1
reference_url https://github.com/gitpython-developers/GitPython
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython
2
reference_url https://github.com/gitpython-developers/GitPython/commit/8b75434e2c8a082cdeb4971cc6f0ee2bafec45bc
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/commit/8b75434e2c8a082cdeb4971cc6f0ee2bafec45bc
3
reference_url https://github.com/gitpython-developers/GitPython/issues/1635
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/issues/1635
4
reference_url https://github.com/gitpython-developers/GitPython/pull/1636
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/pull/1636
5
reference_url https://github.com/gitpython-developers/GitPython/releases/tag/3.1.33
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/releases/tag/3.1.33
6
reference_url https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4
reference_id
reference_type
scores
0
value 7.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
url https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4
7
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-161.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-161.yaml
8
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-40590
reference_id CVE-2023-40590
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-40590
9
reference_url https://github.com/advisories/GHSA-wfm5-v35h-vwf4
reference_id GHSA-wfm5-v35h-vwf4
reference_type
scores
url https://github.com/advisories/GHSA-wfm5-v35h-vwf4
fixed_packages
0
url pkg:pypi/gitpython@3.1.33
purl pkg:pypi/gitpython@3.1.33
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-2wzu-49nj-8be5
1
vulnerability VCID-baz5-ra3v-9qeh
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/gitpython@3.1.33
aliases CVE-2023-40590, GHSA-wfm5-v35h-vwf4, PYSEC-2023-161
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-sgae-p557-9uhk
Fixing_vulnerabilities
0
url VCID-3mf6-vqf2-pug2
vulnerability_id VCID-3mf6-vqf2-pug2
summary GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.
references
0
reference_url https://github.com/gitpython-developers/GitPython
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython
1
reference_url https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd
2
reference_url https://github.com/gitpython-developers/GitPython/pull/1609
reference_id
reference_type
scores
url https://github.com/gitpython-developers/GitPython/pull/1609
3
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-137.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-137.yaml
4
reference_url https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html
reference_id
reference_type
scores
url https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html
5
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
6
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
7
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
8
reference_url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
9
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-40267
reference_id CVE-2023-40267
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-40267
10
reference_url https://github.com/advisories/GHSA-pr76-5cm5-w9cj
reference_id GHSA-pr76-5cm5-w9cj
reference_type
scores
url https://github.com/advisories/GHSA-pr76-5cm5-w9cj
fixed_packages
0
url pkg:pypi/gitpython@3.1.32
purl pkg:pypi/gitpython@3.1.32
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-2wzu-49nj-8be5
1
vulnerability VCID-baz5-ra3v-9qeh
2
vulnerability VCID-sgae-p557-9uhk
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/gitpython@3.1.32
aliases CVE-2023-40267, GHSA-pr76-5cm5-w9cj, PYSEC-2023-137
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-3mf6-vqf2-pug2
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:pypi/gitpython@3.1.32