Skip to content

Commit 8db93cb

Browse files
shinmaodjc
authored andcommitted
Add advisory for gix-date vulnerability
1 parent 63bd4ad commit 8db93cb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "gix-date"
5+
date = "2025-12-29"
6+
url = "https://github.com/GitoxideLabs/gitoxide/issues/2305"
7+
categories = ["memory-corruption"]
8+
keywords = ["utf8", "undefined-behavior"]
9+
10+
[affected.functions]
11+
"gix_date::parse::TimeBuf::as_str" = ["<= 0.11.1"]
12+
13+
[versions]
14+
patched = [">= 0.12.0"]
15+
```
16+
17+
# Non-utf8 String can be created with `TimeBuf::as_str`
18+
19+
The function `gix_date::parse::TimeBuf::as_str` can create an illegal string containing non-utf8 characters. This violates the safety invariant of `TimeBuf` and can lead to undefined behavior when consuming the string.
20+
21+
The bug can be prevented by adding `str::from_utf8` to the function `TimeBuf::write`.

0 commit comments

Comments
 (0)