Skip to content

Commit 500f8e4

Browse files
committed
Remove support for serde with pre-built binaries
This is a potential security vulnerability, particularly as the binaries have not yet been reproduced. cc serde-rs/serde#2538
1 parent a98fe2d commit 500f8e4

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ The format is based on [Keep a Changelog]. This project adheres to [Semantic Ver
66

77
---
88

9+
## 0.3.26 [2023-08-18]
10+
11+
This release contains only a single change. `serde` is required to be a version prior to 1.0.171.
12+
This is due to the decision by the maintainer of `serde` to include pre-built binaries that are
13+
executed without the end user's knowledge. As of the time of publishing, the included binary has not
14+
even been reproduced. This is a security risk, and the `time` project strongly opposes this
15+
decision. While this may break some users' builds due to conflicting versions, it is a necessary
16+
step to ensure the security.
17+
918
## 0.3.25 [2023-08-02]
1019

1120
### Fixed

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resolver = "2"
55

66
[workspace.dependencies]
77
time-core = { path = "time-core", version = "=0.1.1" }
8-
time-macros = { path = "time-macros", version = "=0.2.11" }
8+
time-macros = { path = "time-macros", version = "=0.2.12" }
99

1010
criterion = { version = "0.5.1", default-features = false }
1111
deranged = { version = "0.3.7", default-features = false }
@@ -16,7 +16,8 @@ num_threads = "0.1.2"
1616
quickcheck = { version = "1.0.3", default-features = false }
1717
quickcheck_macros = "1.0.0"
1818
rand = { version = "0.8.4", default-features = false }
19-
serde = { version = "1.0.126", default-features = false }
19+
# <= 1.0.171 due to serde-rs/serde#2538
20+
serde = { version = ">= 1.0.126, <= 1.0.171", default-features = false }
2021
serde_json = "1.0.68"
2122
serde_test = "1.0.126"
2223
trybuild = "1.0.68"

time-macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time-macros"
3-
version = "0.2.11"
3+
version = "0.2.12"
44
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
55
edition = "2021"
66
rust-version = "1.67.0"

time/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "time"
3-
version = "0.3.25"
3+
version = "0.3.26"
44
authors = ["Jacob Pratt <[email protected]>", "Time contributors"]
55
edition = "2021"
66
rust-version = "1.67.0"

0 commit comments

Comments
 (0)