CVE-2022-1004: Improper handling of keys in go-tuf

Summary

21/09/2022
N/A
Yes i
Unrated
Not published

GO-2022-1004: Improper handling of keys in github.com/theupdateframework/go-tuf. Affects github.com/theupdateframework/go-tuf versions < 0.3.2. Fixed in 0.3.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The go-tuf package is a Go implementation of The Update Framework (TUF), which is a security framework for software update systems. It provides a secure way to distribute and update software packages. The package includes functions for verifying signatures and unmarshaling data from a TUF repository. However, a vulnerability has been discovered in the way go-tuf handles keys in the repository.

Vulnerability Detail

The vulnerability (CVE-2022-1004) arises from improper handling of keys in the go-tuf package. An attacker who can insert public keys into a TUF repository can manipulate clients into accepting a staged change that has not been signed by the correct threshold of signatures. This can lead to unauthorized and potentially malicious updates being installed on client systems.

How To Fix

Latest published version: v0.7.0 as of 23 Oct 2026

go get github.com/theupdateframework/go-tuf@v0.7.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.3.2

This is the first release that contains the fix.

go get github.com/theupdateframework/go-tuf@v0.3.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update to the latest version of the go-tuf package as soon as possible.

Conclusion

In conclusion, the go-tuf package is vulnerable to an improper handling of keys issue that allows attackers to insert unauthorized updates into TUF repositories. To mitigate this vulnerability, users should update to version 0.3.2 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/theupdateframework/go-tuf →

Share this vulnerability

FAQ

Go-tuf is a Go implementation of The Update Framework (TUF), a security framework for software update systems.

This vulnerability allows an attacker to insert unauthorized and potentially malicious updates into a TUF repository, which can then be installed on client systems.

To fix this vulnerability, update your go-tuf package to version 0.3.2 or later.

There is no known workaround for this vulnerability. It is recommended to update to the latest version of the go-tuf package.

For more information, you can visit the vulnerability database at https://pkg.go.dev/vuln/GO-2022-1004.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/theupdateframework/go-tuf.

How To Fix

Latest published version: v0.7.0 as of 23 Oct 2026

go get github.com/theupdateframework/go-tuf@v0.7.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.3.2

This is the first release that contains the fix.

go get github.com/theupdateframework/go-tuf@v0.3.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback