VDB
Sign up
LOW

GHSA-pm3m-32r3-7mfh

Etcd embed auto compaction retention negative value causing a compaction loop or a crash

Quick fix

GHSA-pm3m-32r3-7mfh — go.etcd.io/etcd/v3: upgrade to the fixed version with the command below.

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

Details

### Impact Data Validation

### Detail The parseCompactionRetention function in embed/etcd.go allows the retention variable value to be negative and causes the node to execute the history compaction in a loop, taking more CPU than usual and spamming logs.

### 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#product-security-committee-psc)

Are you affected?

Enter the version of the package you're using.

Affected packages

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

References