gix-ref
An idiomatic, lean, fast & safe pure Rust implementation of Git
Activity
- Latest release
- 3w ago
- Total releases
- 61
- Cadence
- ~19 days
- Last 12 months
- 16
Reach
- Downloads
- 50.0M
- Stars
- 11.9k
Details
- License
- MIT OR Apache-2.0
- First release
- Feb 17, 2023
| Version | Released | |
|---|---|---|
0.67.1
patch
|
0.67.1
patch
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.67.0
minor
|
0.67.0
minor
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.66.0
unknown
|
0.66.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.65.0
unknown
|
0.65.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.64.0
unknown
|
0.64.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.63.0
unknown
|
0.63.0
unknown
Dependencies (14)
+ 6 more
Changelog
Compare changes
|
|
0.62.0
unknown
|
0.62.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.61.0
unknown
|
0.61.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.60.0
unknown
|
0.60.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.59.0
unknown
|
0.59.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.58.0
unknown
|
0.58.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.57.0
unknown
|
0.57.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.56.0
unknown
|
0.56.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.55.0
unknown
|
0.55.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.54.1
unknown
|
0.54.1
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.54.0
unknown
|
0.54.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.53.1
unknown
|
0.53.1
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.53.0
unknown
|
0.53.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.52.1
unknown
|
0.52.1
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.52.0
unknown
yanked
|
0.52.0
unknown
yanked
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.51.0
unknown
|
0.51.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.50.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.50.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.49.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.49.1
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.49.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.49.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.48.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.48.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.47.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.47.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.46.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.46.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.45.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.45.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.44.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.44.1
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.44.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.51.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.44.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.43.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.43.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.41.1
unknown
yanked
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.41.1
unknown
yanked
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.42.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.42.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.41.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.41.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.40.1
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.40.1
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.40.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.40.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.39.1
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.39.1
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.39.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.39.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.38.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.38.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.37.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.37.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.36.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.36.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.35.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.35.0
unknown
Dependencies (15)
+ 7 more
Changelog
Compare changes
|
|
0.34.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.34.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.33.3
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.33.3
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.33.2
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.33.2
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.33.1
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.33.1
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.33.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.33.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.32.1
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.32.1
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.32.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.32.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|
|
0.31.0
unknown
2 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.51.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.44.0
References
Updated Sep 10, 2026 · Source: OSV.dev |
0.31.0
unknown
Dependencies (16)
+ 8 more
Changelog
Compare changes
|