CVE-2022-29173: Improper Validation of Integrity Check Value in go-tuf
8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29923%
CWE
Published
5/24/2022
Updated
2/17/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/theupdateframework/go-tuf | go | < 0.3.0 | 0.3.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from 1) not using previous metadata versions for validation and 2) premature persistence of metadata. Key issues were in decodeTimestamp
/decodeSnapshot
which handle version validation logic, and getLocalMeta
which manages trusted state loading. The timestamp/snapshot metadata saving (SetMeta
) occurred before full validation in the workflow. The util.TimestampFileMetaEqual
function's strict requirements could bypass spec-mandated checks. Commit fixes show added version comparisons (e.g., snapshot.Meta['targets.json'].Version
checks) and corrected validation order.