gix-worktree
An idiomatic, lean, fast & safe pure Rust implementation of Git
Activity
- Latest release
- 3w ago
- Total releases
- 56
- Cadence
- ~21 days
- Last 12 months
- 15
Reach
- Stars
- 11.9k
Details
- License
- MIT OR Apache-2.0
- First release
- Feb 17, 2023
| Version | Released | |
|---|---|---|
0.56.0
minor
|
0.56.0
minor
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.55.0
unknown
|
0.55.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.54.0
unknown
|
0.54.0
unknown
Dependencies (14)
+ 6 more
Changelog
Compare changes
|
|
0.53.0
unknown
|
0.53.0
unknown
Dependencies (14)
+ 6 more
Changelog
Compare changes
|
|
0.52.0
unknown
|
0.52.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.51.0
unknown
|
0.51.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.50.0
unknown
|
0.50.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.49.0
unknown
|
0.49.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.48.0
unknown
|
0.48.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.47.0
unknown
|
0.47.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.46.0
unknown
|
0.46.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.45.0
unknown
|
0.45.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.44.0
unknown
|
0.44.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.43.1
unknown
|
0.43.1
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.43.0
unknown
|
0.43.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.42.0
unknown
|
0.42.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.41.0
unknown
|
0.41.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.40.1
unknown
yanked
|
0.40.1
unknown
yanked
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.40.0
unknown
|
0.40.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.39.0
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.39.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.38.0
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.38.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.37.0
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.37.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.36.0
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.36.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.35.0
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.35.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.34.1
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.34.1
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.34.0
unknown
1 CVE
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.34.0
unknown
Dependencies (13)
+ 5 more
Changelog
Compare changes
|
|
0.33.1
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.33.1
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.33.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.33.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.32.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.32.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.31.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.31.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.30.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.30.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.29.1
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.29.1
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.29.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.29.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.28.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.28.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.27.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.27.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.26.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.26.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.25.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.25.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.24.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.24.0
unknown
Dependencies (12)
+ 4 more
Changelog
Compare changes
|
|
0.23.1
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.23.1
unknown
Dependencies (20)
+ 12 more
Changelog
Compare changes
|
|
0.23.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.23.0
unknown
Dependencies (20)
+ 12 more
Changelog
Compare changes
|
|
0.22.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.22.0
unknown
Dependencies (20)
+ 12 more
Changelog
Compare changes
|
|
0.21.1
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.21.1
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.21.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.21.0
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.20.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.20.0
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.19.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.19.0
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.18.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.18.0
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.17.1
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.17.1
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.17.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.17.0
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.16.0
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.16.0
unknown
Dependencies (18)
+ 10 more
Changelog
Compare changes
|
|
0.15.2
unknown
3 CVEs
CVE-2025-31130
GHSA-2frx-2596-x5r6
RUSTSEC-2025-0021
Apr 04, 2025
gitoxide does not detect SHA-1 collision attacks
6.8
/ 10
Medium
Network
High
None
None
Changed
None
High
None
Summarygitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. Detailsgitoxide uses the The SHA-1 function is considered cryptographically insecure. However, in the wake of the SHAttered attacks, this issue was mitigated in Git 2.13.0 in 2017 by using the sha1collisiondetection algorithm by default and producing an error when known SHA-1 collisions are detected. Git is in the process of migrating to using SHA-256 for object hashes, but this has not been rolled out widely yet and gitoxide does not support SHA-256 object hashes. PoCThe following program demonstrates the problem, using the two SHAttered PDFs:
The output is as follows:
The latter behaviour matches Git. Since the SHAttered PDFs are not in a valid format for Git objects, a direct proof‐of‐concept using higher‐level APIs cannot be immediately demonstrated without significant computational resources. ImpactAn attacker with the ability to mount a collision attack on SHA-1 like the SHAttered or SHA-1 is a Shambles attacks could create two distinct Git objects with the same hash. This is becoming increasingly affordable for well‐resourced attackers, with the Shambles researchers in 2020 estimating $45k for a chosen‐prefix collision or $11k for a classical collision, and projecting less than $10k for a chosen‐prefix collision by 2025. The result could be used to disguise malicious repository contents, or potentially exploit assumptions in the logic of programs using gitoxide to cause further vulnerabilities. This vulnerability affects any user of gitoxide, including Fixed in
0.40.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35197
GHSA-49jc-r788-3fc9
RUSTSEC-2024-0351
RUSTSEC-2024-0352
RUSTSEC-2024-0353
May 22, 2024
gix refs and paths with reserved Windows device names access the devices
Medium
Network
Low
None
SummaryOn Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. DetailsIt is possible to create a Git repository that contains references or filenames that Windows treats as legacy DOS-style aliases for system devices. When such a repository is cloned:
Some such device names refer to devices that are often absent or inaccessible. But a few are guaranteed to be available, allowing some attacks to be carried out with low complexity. For both reading refs and writing paths, one important case is the console:
Another potentially important case is serial ports. For example, Naming Files, Paths, and Namespaces covers most reserved names. PoCRef exampleCreate a repository on a non-Windows system (or in WSL) with at least one commit. Use On a Windows system, clone the repository with However, if desired, input can be provided. Ending input with Ctrl+Z followed by Enter will cause it to be passed to the application. This will lead to an error message, the specific details of which vary by whether the input is empty or nonempty, and whether it matches or does not match the hexadecimal hash of the tagged commit. Path exampleCreate a repository on a non-Windows system (or in WSL) and commit a file named
While that example text serves to illustrate the risk, any distinctive text is sufficient to observe the vulnerability. Place the repository somewhere it can be cloned on Windows. As above, a On a Windows system, clone the repository with
The exact placement of the message is nondeterministic. It usually appears in that position, but may appear elsewhere, such as before the ImpactIf Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. The impact is expected to be limited in common configurations, but may vary widely depending on what devices exist, how they are being used, how much knowledge an attacker has of the precise details of their use, and whether the user is likely to trust information that appears in a console. Accessing devices through refs is expected to be less dangerous than accessing them through filenames, since it is trivial to attempt to write arbitrary data using filenames. For attacks using the A minor degradation in availability may also be possible, such as with a very large file named Fixed in
0.34.0
References
Updated Sep 10, 2026 · Source: OSV.dev
CVE-2024-35186
GHSA-7w47-3wg8-547c
RUSTSEC-2024-0348
RUSTSEC-2024-0349
RUSTSEC-2024-0350
May 22, 2024
gix traversal outside working tree enables arbitrary code execution
High
Network
Low
None
SummaryDuring checkout, gitoxide does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. DetailsAlthough
A number of alternatives that achieve the same effect are also possible, some of which correspond to specific vulnerabilities that have affected Git in the past:
When a checkout creates some files outside the repository directory but fails to complete, the repository directory is usually removed, but the outside files remain. PoCFor simplicity, these examples stage a stand-in file with a valid name, modify the index, and commit. The instructions assume Example: Downward traversal to install hooks
Then, on another or the same machine:
Note that the effect is not limited to modifying the current directory. The payload could be written to perform any action that the user who runs Example: Upward traversal to create a file above the working tree
Then, as above, on the same or another machine, clone the repository with a ImpactAny use of In use cases where no untrusted repository is ever cloned, this vulnerability has no impact. Furthermore, the impact of this vulnerability may be lower when Fixed in
0.34.0
References Updated Sep 10, 2026 · Source: OSV.dev |
0.15.2
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|