CVE-2023-47122: Github.com/sigstore/gitsign Gitsign's Rekor Public Keys Fetched Vulnerability

MODERATE
Advisory Identifier: GHSA-xvrc-2wvh-49vc
CVSS 4.2
CWE-347
Published
Advisory Summary

CVE-2023-47122 is a MODERATE (CVSS 4.2) gitsign's rekor public keys fetched vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/sigstore/gitsign libraries in the Go ecosystem. The issue involves gitsign's rekor public keys fetched from upstream api instead of local tuf client.. Remediation is available by upgrading affected packages to version 0.8.0.

CVE-2023-47122 at a Glance

CVE Identifier CVE-2023-47122
GHSA Identifier GHSA-xvrc-2wvh-49vc
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Github.com/sigstore/gitsign
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-47122

To remediate this vulnerability, upgrade all affected Github.com/sigstore/gitsign dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/sigstore/gitsign fixed: 0.8.0
Upgrade github.com/sigstore/gitsign to 0.8.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/sigstore/gitsign

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-47122, inspect your project dependencies for Github.com/sigstore/gitsign:

inspect dependencies for github.com/sigstore/gitsign

Analyze the terminal output to locate any version of Github.com/sigstore/gitsign in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Github.com/sigstore/gitsign, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact In certain versions of gitsign, Rekor public keys were fetched via the Rekor API, instead of through the local TUF client. If the upstream Rekor server happened to be compromised, gitsign clients could potentially be tricked into trusting incorrect signatures. There is no known compromise the default public good instance (`rekor.sigstore.dev`) - anyone using this instance is unlikely to be affected. ### Patches This was fixed in v0.8.0 via https://github.com/sigstore/gitsign/pull/399 ### Workarounds n/a ### References _Are there any links users can visit to find out more?_ https://docs.sigstore.dev/about/threat-model/#sigstore-threat-model

CVE-2023-47122 Affected Github.com/sigstore/gitsign Versions

1 component(s)
Fixed Versions:
0.8.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/sigstore/gitsign
Go
≥ 0.6.0
< 0.8.0
0.8.0

References

Frequently Asked Questions

What is CVE-2023-47122?
CVE-2023-47122 is a security vulnerability in Github.com/sigstore/gitsign involving Gitsign's Rekor public keys fetched from upstream API instead of local TUF client. under CWE-347: Improper Verification of Cryptographic Signature.
Which Github.com/sigstore/gitsign versions are affected?
Affected versions include releases prior to 0.8.0 across affected packages: github.com/sigstore/gitsign.
What version fixes CVE-2023-47122?
Upgrading to 0.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/sigstore/gitsign affected?
Yes, github.com/sigstore/gitsign is affected in releases prior to 0.8.0. Upgrade your dependency to 0.8.0 or later.
What is the CVSS score of CVE-2023-47122?
CVE-2023-47122 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-47122?
CVE-2023-47122 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check Go dependencies for CVE-2023-47122?
Run the dependency tree command: 'inspect dependencies for github.com/sigstore/gitsign'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xvrc-2wvh-49vc",
  "modified" : "2023-11-14T20:31:23Z",
  "published" : "2023-11-14T20:31:23Z",
  "aliases" : [ "CVE-2023-47122" ],
  "summary" : "Gitsign's Rekor public keys fetched from upstream API instead of local TUF client.",
  "details" : "### Impact\n\nIn certain versions of gitsign, Rekor public keys were fetched via the Rekor API, instead of through the local TUF client. If the upstream Rekor server happened to be compromised, gitsign clients could potentially be tricked into trusting incorrect signatures.\n\nThere is no known compromise the default public good instance (`rekor.sigstore.dev`) - anyone using this instance is unlikely to be affected.\n\n### Patches\n\nThis was fixed in v0.8.0 via https://github.com/sigstore/gitsign/pull/399\n\n### Workarounds\n\nn/a\n\n### References\n_Are there any links users can visit to find out more?_\n\nhttps://docs.sigstore.dev/about/threat-model/#sigstore-threat-model",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/sigstore/gitsign"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.6.0"
      }, {
        "fixed" : "0.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sigstore/gitsign/security/advisories/GHSA-xvrc-2wvh-49vc"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-47122"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sigstore/gitsign/pull/399"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sigstore/gitsign/commit/cd66ccb03c86a3600955f0c15f6bfeb75f697236"
  }, {
    "type" : "WEB",
    "url" : "https://docs.sigstore.dev/about/threat-model/#sigstore-threat-model"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sigstore/gitsign"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-14T20:31:23Z",
    "nvd_published_at" : "2023-11-10T22:15:14Z"
  }
}