5.8 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): HIGH
- Privileges required (PR): HIGH
- User interaction (UI): NONE
- Scope (S): CHANGED
- Confidentiality impact (C): NONE
- Integrity impact (I): HIGH
- Availability impact (A): NONE
sigstore legacy TUF client allows for arbitrary file writes with target cache path traversal
sigstore framework is a common go library shared across sigstore services and clients. In versions 1.10.3 and below, the legacy TUF client (pkg/tuf/client.go) supports caching target files to disk. It constructs a filesystem path by joining a cache base directory with a target name sourced from signed target metadata; however, it does not validate that the resulting path stays within the cache base directory. A malicious TUF repository can trigger arbitrary file overwriting, limited to the permissions that the calling process has. Note that this should only affect clients that are directly using the TUF client in sigstore/sigstore or are using an older version of Cosign. Public Sigstore deployment users are unaffected, as TUF metadata is validated by a quorum of trusted collaborators. This issue has been fixed in version 1.10.4. As a workaround, users can disable disk caching for the legacy client by setting SIGSTORE_NO_CACHE=true in the environment, migrate to https://github.com/sigstore/sigstore-go/tree/main/pkg/tuf, or upgrade to the latest sigstore/sigstore release.
References
- https://github.com/sigstore/sigstore/security/advisories/GHSA-fcv2-xgw5-pqxf x_refsource_CONFIRM
- https://github.com/sigstore/sigstore/commit/8ec410a2993ea78083aecf0e473a85453039496e x_refsource_MISC
- https://github.com/sigstore/sigstore/releases/tag/v1.10.4 x_refsource_MISC
Affected products
- ==< 1.10.4
Matching in nixpkgs
pkgs.k8s-manifest-sigstore
Kubectl plugin for signing Kubernetes manifest YAML files with sigstore
pkgs.python312Packages.sigstore
Codesigning tool for Python packages
pkgs.python313Packages.sigstore
Codesigning tool for Python packages
pkgs.python312Packages.sigstore-models
Pydantic-based, protobuf-free data models for Sigstore
pkgs.python313Packages.sigstore-models
Pydantic-based, protobuf-free data models for Sigstore
pkgs.python312Packages.sigstore-rekor-types
Python models for Rekor's API types
pkgs.python313Packages.sigstore-rekor-types
Python models for Rekor's API types
pkgs.python312Packages.sigstore-protobuf-specs
Library for serializing and deserializing Sigstore messages
pkgs.python313Packages.sigstore-protobuf-specs
Library for serializing and deserializing Sigstore messages
Package maintainers
-
@bbigras Bruno Bigras <bigras.bruno@gmail.com>
-
@Bot-wxt1221 Bot-wxt1221 <3264117476@qq.com>
-
@fabaff Fabian Affolter <mail@fabian-affolter.ch>