VDB
Sign up
MEDIUM5.3

GHSA-m332-53r6-2w93

etcd's WAL `ReadAll` method vulnerable to an entry with large index causing panic

Quick fix

GHSA-m332-53r6-2w93 — go.etcd.io/etcd/v3: upgrade to the fixed version with the command below.

go get go.etcd.io/etcd/v3@v3.3.23

Details

### Vulnerability type Data Validation

### Detail In the ReadAll method in wal/wal.go, it is possible to have an entry index greater then the number of entries. This could cause issues when WAL entries are being read during consensus as an arbitrary etcd consensus participant could go down from a runtime panic when reading the entry.

### References Find out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)

### For more information If you have any questions or comments about this advisory: * Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md)

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/go.etcd.io/etcd/v3
Introduced in: 0Fixed in: 3.3.23
Fixgo get go.etcd.io/etcd/v3@v3.3.23
Go/go.etcd.io/etcd/v3
Introduced in: 3.4.0Fixed in: 3.4.10
Fixgo get go.etcd.io/etcd/v3@v3.4.10

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:golang/go.etcd.io/etcd/v3"]}'