Skip to content

Commit 0849a28

Browse files
committed
Auto merge of #11556 - pietroalbini:cve-2022-46176, r=weihanglo
Add fix for CVE-2022-46176 r? `@ehuss`
2 parents 247b22f + d992ab4 commit 0849a28

File tree

11 files changed

+903
-12
lines changed

11 files changed

+903
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@
119119
- Added documentation of config option `registries.crates-io.protocol`.
120120
[#11350](https://github.com/rust-lang/cargo/pull/11350)
121121

122+
## Cargo 1.66.1 (2023-01-10)
123+
124+
### Fixed
125+
- [CVE-2022-46176](https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j):
126+
Added validation of SSH host keys for git URLs.
127+
See [the docs](https://doc.rust-lang.org/cargo/appendix/git-authentication.html#ssh-known-hosts) for more information on how to configure the known host keys.
128+
122129
## Cargo 1.66 (2022-12-15)
123130
[08250398...rust-1.66.0](https://github.com/rust-lang/cargo/compare/08250398...rust-1.66.0)
124131

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ name = "cargo"
1616
path = "src/cargo/lib.rs"
1717

1818
[dependencies]
19+
base64 = "0.13.1"
1920
bytesize = "1.0"
2021
cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" }
2122
cargo-util = { path = "crates/cargo-util", version = "0.2.3" }
@@ -27,10 +28,11 @@ pretty_env_logger = { version = "0.4", optional = true }
2728
anyhow = "1.0.47"
2829
filetime = "0.2.9"
2930
flate2 = { version = "1.0.3", default-features = false, features = ["zlib"] }
30-
git2 = "0.15.0"
31-
git2-curl = "0.16.0"
31+
git2 = "0.16.0"
32+
git2-curl = "0.17.0"
3233
glob = "0.3.0"
3334
hex = "0.4"
35+
hmac = "0.12.1"
3436
home = "0.5"
3537
http-auth = { version = "0.1.6", default-features = false }
3638
humantime = "2.0.0"
@@ -42,7 +44,7 @@ jobserver = "0.1.24"
4244
lazycell = "1.2.0"
4345
libc = "0.2"
4446
log = "0.4.6"
45-
libgit2-sys = "0.14.0"
47+
libgit2-sys = "0.14.1"
4648
memchr = "2.1.3"
4749
opener = "0.5"
4850
os_info = "3.5.0"
@@ -55,6 +57,7 @@ serde = { version = "1.0.123", features = ["derive"] }
5557
serde_ignored = "0.1.0"
5658
serde_json = { version = "1.0.30", features = ["raw_value"] }
5759
serde-value = "0.7.0"
60+
sha1 = "0.10.5"
5861
shell-escape = "0.1.4"
5962
strip-ansi-escapes = "0.1.0"
6063
tar = { version = "0.4.38", default-features = false }

crates/cargo-test-support/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ filetime = "0.2"
1717
flate2 = { version = "1.0", default-features = false, features = ["zlib"] }
1818
pasetors = { version = "0.6.4", features = ["v3", "paserk", "std", "serde"] }
1919
time = { version = "0.3", features = ["parsing", "formatting"]}
20-
git2 = "0.15.0"
20+
git2 = "0.16.0"
2121
glob = "0.3"
2222
itertools = "0.10.0"
2323
lazy_static = "1.0"

0 commit comments

Comments
 (0)