Skip to content

Commit e4cbca8

Browse files
authored
chore(deps): bump Go version to 1.23.5 (cometbft#4888)
due to sec vuln Vulnerability #1: GO-2025-3420 Sensitive headers incorrectly sent after cross-domain redirect in net/http More info: https://pkg.go.dev/vuln/GO-2025-3420 Standard library Found in: net/[email protected] Fixed in: net/[email protected] Example traces found: Error: #1: rpc/jsonrpc/client/http_json_client.go:231:34: client.Client.Call calls http.Client.Do Error: #2: libs/cli/setup.go:89:26: cli.Executor.Execute calls cobra.Command.Execute, which eventually calls http.Client.Get Error: #3: cmd/cometbft/commands/debug/util.go:70:23: debug.dumpProfile calls http.Get Vulnerability #2: GO-2025-3373 Usage of IPv6 zone IDs can bypass URI name constraints in crypto/x509 More info: https://pkg.go.dev/vuln/GO-2025-3373 Standard library Found in: crypto/[email protected] Fixed in: crypto/[email protected] Example traces found: Error: #1: abci/tutorials/abci-v2-forum-app/model/db.go:143:20: model.DB.Close calls badger.DB.Close, which eventually calls x509.CertPool.AppendCertsFromPEM Error: #2: internal/autofile/group.go:468:30: autofile.GroupReader.Read calls bufio.Reader.Read, which eventually calls x509.Certificate.Verify Error: #3: rpc/jsonrpc/client/ws_client.go:290:29: client.WSClient.dial calls websocket.Dialer.Dial, which eventually calls x509.Certificate.VerifyHostname Error: #4: light/errors.go:483:84: light.errBadWitness.Error calls x509.HostnameError.Error Error: #5: rpc/jsonrpc/server/http_server.go:166:19: server.ServeTLSWithShutdown calls http.Server.ServeTLS, which eventually calls x509.ParseCertificate Error: #6: rpc/jsonrpc/server/http_server.go:166:19: server.ServeTLSWithShutdown calls http.Server.ServeTLS, which eventually calls x509.ParseECPrivateKey Error: #7: rpc/jsonrpc/server/http_server.go:166:19: server.ServeTLSWithShutdown calls http.Server.ServeTLS, which eventually calls x509.ParsePKCS1PrivateKey Error: #8: rpc/jsonrpc/server/http_server.go:166:19: server.ServeTLSWithShutdown calls http.Server.ServeTLS, which eventually calls x509.ParsePKCS8PrivateKey
1 parent 7695739 commit e4cbca8

File tree

11 files changed

+18
-17
lines changed

11 files changed

+18
-17
lines changed

.github/workflows/go-version.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# .github/workflows/go-version.env
2-
GO_VERSION=1.23.1
2+
GO_VERSION=1.23.5

.golangci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ linters:
99
- contextcheck
1010
- cyclop
1111
- dupword
12-
- errorlint
13-
- errname
1412
- err113
13+
- errname
14+
- errorlint
15+
- execinquery
1516
- exhaustive
1617
- exhaustruct
17-
- execinquery
1818
- forbidigo
1919
- forcetypeassert
2020
- funlen
@@ -24,6 +24,7 @@ linters:
2424
- gocyclo
2525
- godox
2626
- gomnd
27+
- gomoddirectives
2728
- interfacebloat
2829
- intrange
2930
- ireturn

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Please see [SECURITY.md](./SECURITY.md).
7575

7676
| CometBFT version | Requirement | Version | Tested with |
7777
|------------------|-------------|----------------|--------------|
78-
| main | Go version | 1.23 or higher | up to 1.23.1 |
78+
| main | Go version | 1.23 or higher | up to 1.23.5 |
7979
| v1.x | Go version | 1.23 or higher | up to 1.23.1 |
8080
| v0.38.x | Go version | 1.22 or higher | up to 1.22 |
8181

api/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cometbft/cometbft/api
22

3-
go 1.23.1
3+
go 1.23.5
44

55
require (
66
github.com/cosmos/gogoproto v1.4.12

docs/tutorials/go-built-in.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ have installed and the computer platform):
4848

4949
```bash
5050
$ go version
51-
go version go1.23.1 darwin/amd64
51+
go version go1.23.5 darwin/amd64
5252

5353
```
5454

@@ -122,7 +122,7 @@ go: to add module requirements and sums:
122122
go mod tidy
123123
```
124124

125-
go 1.23.1
125+
go 1.23.5
126126
Now, lets add `cometbft` as a dependency to our project. Run the `go get` command below:
127127

128128
```bash
@@ -143,7 +143,7 @@ The go.mod file should look similar to:
143143
```go
144144
module kvstore
145145

146-
go 1.23.1
146+
go 1.23.5
147147

148148
require github.com/cometbft/cometbft v1.0.0 // indirect
149149
```

docs/tutorials/go.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Verify that you have the latest version of Go installed (refer to the [official
4646

4747
```bash
4848
$ go version
49-
go version go1.23.1 darwin/amd64
49+
go version go1.23.5 darwin/amd64
5050
```
5151

5252
## 1.1 Installing CometBFT
@@ -137,7 +137,7 @@ The go.mod file should look similar to:
137137
```go
138138
module kvstore
139139
140-
go 1.23.1
140+
go 1.23.5
141141
142142
143143
require github.com/cometbft/cometbft v1.0.0 // indirect

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/cometbft/cometbft
22

3-
go 1.23.1
3+
go 1.23.5
4+
5+
replace github.com/cometbft/cometbft/api => ./api
46

57
require (
68
github.com/BurntSushi/toml v1.4.0

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ github.com/cometbft/cometbft-db v1.0.1 h1:SylKuLseMLQKw3+i8y8KozZyJcQSL98qEe2CGM
8181
github.com/cometbft/cometbft-db v1.0.1/go.mod h1:EBrFs1GDRiTqrWXYi4v90Awf/gcdD5ExzdPbg4X8+mk=
8282
github.com/cometbft/cometbft-load-test v0.3.0 h1:z6iZZvFwhci29ca/EZQaWh/d92NLe8bK4eBvFyv2EKY=
8383
github.com/cometbft/cometbft-load-test v0.3.0/go.mod h1:zKrQpRm3Ay5+RfeRTNWoLniFJNIPnw9JPEM1wuWS3TA=
84-
github.com/cometbft/cometbft/api v1.0.0 h1:gGBwvsJi/gnHJEtwYfjPIGs2AKg/Vfa1ZuKCPD1/Ko4=
85-
github.com/cometbft/cometbft/api v1.0.0/go.mod h1:EkQiqVSu/p2ebrZEnB2z6Re7r8XNe//M7ylR0qEwWm0=
8684
github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg=
8785
github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM=
8886
github.com/cosmos/gogoproto v1.7.0 h1:79USr0oyXAbxg3rspGh/m4SWNyoz/GLaAh0QlCe2fro=

go.work

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.23.1
1+
go 1.23.5
22

33
use (
44
.

test/e2e/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# We need to build in a Linux environment to support C libraries, e.g. RocksDB.
22
# We use Debian instead of Alpine, so that we can use binary database packages
33
# instead of spending time compiling them.
4-
FROM cometbft/cometbft-db-testing:v1.0.1
4+
FROM cometbft/cometbft-db-testing:v1.0.2
55

66
RUN apt-get -qq update -y && apt-get -qq upgrade -y >/dev/null
77

test/e2e/docker/Dockerfile.debug

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# We need to build in a Linux environment to support C libraries, e.g. RocksDB.
22
# We use Debian instead of Alpine, so that we can use binary database packages
33
# instead of spending time compiling them.
4-
FROM cometbft/cometbft-db-testing:v1.0.1
4+
FROM cometbft/cometbft-db-testing:v1.0.2
55

66
RUN apt-get -qq update -y && apt-get -qq upgrade -y >/dev/null
77
RUN apt-get -qq install -y zsh vim >/dev/null

0 commit comments

Comments
 (0)