CVE-2022-35929: Github.com/sigstore/cosign Cosign's `cosign Verify-attestaton --type` Can Vulnerability
HIGHCVE-2022-35929 is a HIGH (CVSS 7.1) cosign's `cosign verify-attestaton --type` can vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/sigstore/cosign libraries in the Go ecosystem. The issue involves cosign's `cosign verify-attestaton --type` can report a false positive if any attestation exists. Remediation is available by upgrading affected packages to version 1.10.1.
CVE-2022-35929 at a Glance
Security Impact
CVSS: 7.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-35929
To remediate this vulnerability, upgrade all affected Github.com/sigstore/cosign dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/sigstore/cosign to 1.10.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/sigstore/cosign
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-35929, inspect your project dependencies for Github.com/sigstore/cosign:
inspect dependencies for github.com/sigstore/cosign
Analyze the terminal output to locate any version of Github.com/sigstore/cosign in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.1), 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/cosign, 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
CVE-2022-35929 Affected Github.com/sigstore/cosign Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/sigstore/cosign
|
Go |
< 1.10.1
|
1.10.1
|
References
Frequently Asked Questions
What is CVE-2022-35929?
Which Github.com/sigstore/cosign versions are affected?
What version fixes CVE-2022-35929?
Is github.com/sigstore/cosign affected?
What is the CVSS score of CVE-2022-35929?
What CWE is associated with CVE-2022-35929?
How can I check Go dependencies for CVE-2022-35929?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vjxv-45g9-9296",
"modified" : "2022-08-10T18:40:38Z",
"published" : "2022-08-10T18:40:38Z",
"aliases" : [ "CVE-2022-35929" ],
"summary" : "cosign's `cosign verify-attestaton --type` can report a false positive if any attestation exists",
"details" : "`cosign verify-attestation` used with the `--type` flag will report a false positive verification when:\n\n- There is at least one attestation with a valid signature\n- There are NO attestations of the type being verified (--type defaults to \"custom\")\n\nThis can happen when signing with a standard keypair and with \"keyless\" signing with Fulcio. Users should upgrade to cosign version 1.10.1 or greater for a patch. Currently the only workaround is to upgrade.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/sigstore/cosign"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.10.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sigstore/cosign/security/advisories/GHSA-vjxv-45g9-9296"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-35929"
}, {
"type" : "WEB",
"url" : "https://github.com/sigstore/cosign/commit/c5fda01a8ff33ca981f45a9f13e7fb6bd2080b94"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/sigstore/cosign"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-08-10T18:40:38Z",
"nvd_published_at" : "2022-08-04T19:15:00Z"
}
}