CVE-2022-35930: Github.com/sigstore/policy controller PolicyController Before 0.2.1 May Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-739f-hw6h-7wq8
CVSS 7.1
CWE-347
Published
Advisory Summary

CVE-2022-35930 is a HIGH (CVSS 7.1) policycontroller before 0.2.1 may bypass vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Github.com/sigstore/policy controller libraries in the Go ecosystem. The issue involves policycontroller before 0.2.1 may bypass attestation verification. Remediation is available by upgrading affected packages to version 0.2.1.

CVE-2022-35930 at a Glance

CVE Identifier CVE-2022-35930
GHSA Identifier GHSA-739f-hw6h-7wq8
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Github.com/sigstore/policy controller
Package Ecosystem Go
Published Date
Last Updated

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).

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

How to Fix CVE-2022-35930

To remediate this vulnerability, upgrade all affected Github.com/sigstore/policy controller 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/policy-controller fixed: 0.2.1
Upgrade github.com/sigstore/policy-controller to 0.2.1
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/policy-controller

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-35930, inspect your project dependencies for Github.com/sigstore/policy controller:

inspect dependencies for github.com/sigstore/policy-controller

Analyze the terminal output to locate any version of Github.com/sigstore/policy controller in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.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/policy controller, 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

PolicyController will report a false positive, resulting in an admission when it should not be admitted when: * There is at least one attestation with a valid signature * There are NO attestations of the type being verified (--type defaults to "custom") Users should upgrade to cosign version 0.2.1 or greater for a patch. There are no known workarounds at this time.

CVE-2022-35930 Affected Github.com/sigstore/policy controller Versions

1 component(s)
Fixed Versions:
0.2.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/sigstore/policy-controller
Go
< 0.2.1
0.2.1

References

Frequently Asked Questions

What is CVE-2022-35930?
CVE-2022-35930 is a security vulnerability in Github.com/sigstore/policy controller involving PolicyController before 0.2.1 may bypass attestation verification under CWE-347: Improper Verification of Cryptographic Signature.
Which Github.com/sigstore/policy controller versions are affected?
Affected versions include releases prior to 0.2.1 across affected packages: github.com/sigstore/policy-controller.
What version fixes CVE-2022-35930?
Upgrading to 0.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/sigstore/policy-controller affected?
Yes, github.com/sigstore/policy-controller is affected in releases prior to 0.2.1. Upgrade your dependency to 0.2.1 or later.
What is the CVSS score of CVE-2022-35930?
CVE-2022-35930 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-35930?
CVE-2022-35930 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-2022-35930?
Run the dependency tree command: 'inspect dependencies for github.com/sigstore/policy-controller'. 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-739f-hw6h-7wq8",
  "modified" : "2022-08-10T18:38:16Z",
  "published" : "2022-08-10T18:38:16Z",
  "aliases" : [ "CVE-2022-35930" ],
  "summary" : "PolicyController before 0.2.1 may bypass attestation verification",
  "details" : "PolicyController will report a false positive, resulting in an admission when it should not be admitted when:\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\nUsers should upgrade to cosign version 0.2.1 or greater for a patch. There are no known workarounds at this time.",
  "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/policy-controller"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sigstore/policy-controller/security/advisories/GHSA-739f-hw6h-7wq8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-35930"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sigstore/policy-controller/commit/e852af36fb7d42678b21d7e97503c25bd1fd05c8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sigstore/policy-controller"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sigstore/policy-controller/releases/tag/v0.2.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-10T18:38:16Z",
    "nvd_published_at" : "2022-08-04T22:15:00Z"
  }
}