giantswarm / kyverno-policy-operator

Apache License 2.0
0 stars 0 forks source link

github.com/kyverno/kyverno-v1.12.5: 3 vulnerabilities (highest severity is: 3.1) #134

Open mend-bolt-for-github[bot] opened 3 months ago

mend-bolt-for-github[bot] commented 3 months ago
Vulnerable Library - github.com/kyverno/kyverno-v1.12.5

Library home page: https://proxy.golang.org/github.com/kyverno/kyverno/@v/v1.12.5.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/kyverno/kyverno/@v/v1.12.5.mod

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (github.com/kyverno/kyverno-v1.12.5 version) Remediation Possible**
CVE-2024-51744 Low 3.1 github.com/golang-JWT/jwt/v4-v4.5.0 Transitive N/A*
CVE-2024-48921 Low 2.7 github.com/kyverno/kyverno-v1.12.5 Direct github.com/kyverno/kyverno-v1.13.0
CVE-2024-47534 Low 0.0 github.com/theupdateframework/go-tuf-v0.7.0 Transitive N/A*

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-51744 ### Vulnerable Library - github.com/golang-JWT/jwt/v4-v4.5.0

Library home page: https://proxy.golang.org/github.com/golang-!j!w!t/jwt/v4/@v/v4.5.0.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/golang-jwt/jwt/v4/@v/v4.5.0.mod

Dependency Hierarchy: - github.com/kyverno/kyverno-v1.12.5 (Root Library) - github.com/sigstore/k8s-manifest-sigstore-v0.5.4 - github.com/sigstore/cosign/v2-v2.2.4 - github.com/chrismellard/docker-credential-acr-env-v0.0.0-20230304212654-82a0ddb27589 - github.com/Azure/go-autorest/autorest/adal-v0.9.23 - :x: **github.com/golang-JWT/jwt/v4-v4.5.0** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

golang-jwt is a Go implementation of JSON Web Tokens. Unclear documentation of the error behavior in `ParseWithClaims` can lead to situation where users are potentially not checking errors in the way they should be. Especially, if a token is both expired and invalid, the errors returned by `ParseWithClaims` return both error codes. If users only check for the `jwt.ErrTokenExpired ` using `error.Is`, they will ignore the embedded `jwt.ErrTokenSignatureInvalid` and thus potentially accept invalid tokens. A fix has been back-ported with the error handling logic from the `v5` branch to the `v4` branch. In this logic, the `ParseWithClaims` function will immediately return in "dangerous" situations (e.g., an invalid signature), limiting the combined errors only to situations where the signature is valid, but further validation failed (e.g., if the signature is valid, but is expired AND has the wrong audience). This fix is part of the 4.5.1 release. We are aware that this changes the behaviour of an established function and is not 100 % backwards compatible, so updating to 4.5.1 might break your code. In case you cannot update to 4.5.0, please make sure that you are properly checking for all errors ("dangerous" ones first), so that you are not running in the case detailed above.

Publish Date: 2024-11-04

URL: CVE-2024-51744

### CVSS 3 Score Details (3.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/golang-jwt/jwt/security/advisories/GHSA-29wx-vh33-7x7r

Release Date: 2024-11-04

Fix Resolution: github.com/golang-jwt/jwt-v4.5.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-48921 ### Vulnerable Library - github.com/kyverno/kyverno-v1.12.5

Library home page: https://proxy.golang.org/github.com/kyverno/kyverno/@v/v1.12.5.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/kyverno/kyverno/@v/v1.12.5.mod

Dependency Hierarchy: - :x: **github.com/kyverno/kyverno-v1.12.5** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

Kyverno is a policy engine designed for Kubernetes. A kyverno ClusterPolicy, ie. "disallow-privileged-containers," can be overridden by the creation of a PolicyException in a random namespace. By design, PolicyExceptions are consumed from any namespace. Administrators may not recognize that this allows users with privileges to non-kyverno namespaces to create exceptions. This vulnerability is fixed in 1.13.0.

Publish Date: 2024-10-29

URL: CVE-2024-48921

### CVSS 3 Score Details (2.7)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: High - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/kyverno/kyverno/security/advisories/GHSA-qjvc-p88j-j9rm

Release Date: 2024-10-29

Fix Resolution: github.com/kyverno/kyverno-v1.13.0

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2024-47534 ### Vulnerable Library - github.com/theupdateframework/go-tuf-v0.7.0

Library home page: https://proxy.golang.org/github.com/theupdateframework/go-tuf/@v/v0.7.0.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/theupdateframework/go-tuf/@v/v0.7.0.mod

Dependency Hierarchy: - github.com/kyverno/kyverno-v1.12.5 (Root Library) - github.com/sigstore/k8s-manifest-sigstore-v0.5.4 - github.com/SigStore/rekor-v1.3.6 - :x: **github.com/theupdateframework/go-tuf-v0.7.0** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

go-tuf is a Go implementation of The Update Framework (TUF). The go-tuf client inconsistently traces the delegations. For example, if targets delegate to "A", and to "B", and "B" delegates to "C", then the client should trace the delegations in the order "A" then "B" then "C" but it may incorrectly trace the delegations "B"->"C"->"A". This vulnerability is fixed in 2.0.1.

Publish Date: 2024-10-01

URL: CVE-2024-47534

### CVSS 3 Score Details (0.0)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/theupdateframework/go-tuf/security/advisories/GHSA-4f8r-qqr9-fq8j

Release Date: 2024-10-01

Fix Resolution: theupdateframework/go-tuf-v2.0.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
mend-bolt-for-github[bot] commented 1 month ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-bolt-for-github[bot] commented 1 month ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.