opensearch-project / terraform-provider-opensearch

https://registry.terraform.io/providers/opensearch-project/opensearch
Apache License 2.0
74 stars 58 forks source link

github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0: 4 vulnerabilities (highest severity is: 9.8) - autoclosed #157

Closed mend-for-github-com[bot] closed 5 months ago

mend-for-github-com[bot] commented 8 months ago
Vulnerable Library - github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.0.0-20220622213112-05595931fe9d.mod

Found in HEAD commit: 734961a3e06800cd5f2d13a7e0bca8c7bcba2d18

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0 version) Remediation Possible**
CVE-2023-49569 Critical 9.8 github.com/go-git/go-git/v5-v5.4.2 Transitive N/A*
CVE-2023-49568 High 7.5 github.com/go-git/go-git/v5-v5.4.2 Transitive N/A*
CVE-2023-44487 High 7.5 google.golang.org/grpc-v1.45.0 Transitive N/A*
CVE-2023-48795 Medium 5.9 golang.org/x/crypto-v0.0.0-20220622213112-05595931fe9d 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-2023-49569 ### Vulnerable Library - github.com/go-git/go-git/v5-v5.4.2

A highly extensible Git implementation in pure Go.

Library home page: https://proxy.golang.org/github.com/go-git/go-git/v5/@v/v5.4.2.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/go-git/go-git/v5/@v/v5.4.2.mod

Dependency Hierarchy: - github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0 (Root Library) - github.com/hashicorp/hc-install-v0.4.0 - :x: **github.com/go-git/go-git/v5-v5.4.2** (Vulnerable Library)

Found in HEAD commit: 734961a3e06800cd5f2d13a7e0bca8c7bcba2d18

Found in base branch: main

### Vulnerability Details

A path traversal vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to create and amend files across the filesystem. In the worse case scenario, remote code execution could be achieved. Applications are only affected if they are using the ChrootOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#BoundOS  or in-memory filesystems are not affected by this issue. This is a go-git implementation issue and does not affect the upstream git cli.

Publish Date: 2024-01-12

URL: CVE-2023-49569

### CVSS 3 Score Details (9.8)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88

Release Date: 2024-01-12

Fix Resolution: v5.11.0

CVE-2023-49568 ### Vulnerable Library - github.com/go-git/go-git/v5-v5.4.2

A highly extensible Git implementation in pure Go.

Library home page: https://proxy.golang.org/github.com/go-git/go-git/v5/@v/v5.4.2.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/github.com/go-git/go-git/v5/@v/v5.4.2.mod

Dependency Hierarchy: - github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0 (Root Library) - github.com/hashicorp/hc-install-v0.4.0 - :x: **github.com/go-git/go-git/v5-v5.4.2** (Vulnerable Library)

Found in HEAD commit: 734961a3e06800cd5f2d13a7e0bca8c7bcba2d18

Found in base branch: main

### Vulnerability Details

A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.

Publish Date: 2024-01-12

URL: CVE-2023-49568

### CVSS 3 Score Details (7.5)

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: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88

Release Date: 2024-01-12

Fix Resolution: v5.11.0

CVE-2023-44487 ### Vulnerable Library - google.golang.org/grpc-v1.45.0

The Go language implementation of gRPC. HTTP/2 based RPC

Library home page: https://proxy.golang.org/google.golang.org/grpc/@v/v1.45.0.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/google.golang.org/grpc/@v/v1.45.0.mod

Dependency Hierarchy: - github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0 (Root Library) - github.com/hashicorp/go-plugin-v1.4.3 - :x: **google.golang.org/grpc-v1.45.0** (Vulnerable Library)

Found in HEAD commit: 734961a3e06800cd5f2d13a7e0bca8c7bcba2d18

Found in base branch: main

### Vulnerability Details

The HTTP/2 protocol allows a denial of service (server resource consumption) because request cancellation can reset many streams quickly, as exploited in the wild in August through October 2023.

Publish Date: 2023-10-10

URL: CVE-2023-44487

### CVSS 3 Score Details (7.5)

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: High

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2023-44487

Release Date: 2023-10-10

Fix Resolution: org.eclipse.jetty.http2:http2-server:9.4.53.v20231009,10.0.17,11.0.17, org.eclipse.jetty.http2:jetty-http2-server:12.0.2, org.eclipse.jetty.http2:http2-common:9.4.53.v20231009,10.0.17,11.0.17, org.eclipse.jetty.http2:jetty-http2-common:12.0.2, nghttp - v1.57.0, swift-nio-http2 - 1.28.0, io.netty:netty-codec-http2:4.1.100.Final, trafficserver - 9.2.3, org.apache.tomcat:tomcat-coyote:8.5.94,9.0.81,10.1.14, org.apache.tomcat.embed:tomcat-embed-core:8.5.94,9.0.81,10.1.14, Microsoft.AspNetCore.App - 6.0.23,7.0.12, contour - v1.26.1, proxygen - v2023.10.16.00, grpc-go - v1.56.3, v1.57.1, v1.58.3

CVE-2023-48795 ### Vulnerable Library - golang.org/x/crypto-v0.0.0-20220622213112-05595931fe9d

Library home page: https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20220622213112-05595931fe9d.zip

Path to dependency file: /go.mod

Path to vulnerable library: /go/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.0.0-20220622213112-05595931fe9d.mod

Dependency Hierarchy: - github.com/hashicorp/terraform-plugin-sdk/v2-v2.12.0 (Root Library) - :x: **golang.org/x/crypto-v0.0.0-20220622213112-05595931fe9d** (Vulnerable Library)

Found in HEAD commit: 734961a3e06800cd5f2d13a7e0bca8c7bcba2d18

Found in base branch: main

### Vulnerability Details

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against SSH's use of ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in chacha20-poly1305@openssh.com and (if CBC is used) the -etm@openssh.com MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, PuTTY before 0.80, AsyncSSH before 2.14.2, golang.org/x/crypto before 0.17.0, libssh before 0.10.6, libssh2 through 1.11.0, Thorn Tech SFTP Gateway before 3.4.6, Tera Term before 5.1, Paramiko before 3.4.0, jsch before 0.2.15, SFTPGo before 2.5.6, Netgate pfSense Plus through 23.09.1, Netgate pfSense CE through 2.7.2, HPN-SSH through 18.2.0, ProFTPD before 1.3.8b (and before 1.3.9rc2), ORYX CycloneSSH before 2.3.4, NetSarang XShell 7 before Build 0144, CrushFTP before 10.6.0, ConnectBot SSH library before 2.2.22, Apache MINA sshd through 2.11.0, sshj through 0.37.0, TinySSH through 20230101, trilead-ssh2 6401, LANCOM LCOS and LANconfig, FileZilla before 3.66.4, Nova before 11.8, PKIX-SSH before 14.4, SecureCRT before 9.4.3, Transmit5 before 5.10.4, Win32-OpenSSH before 9.5.0.0p1-Beta, WinSCP before 6.2.2, Bitvise SSH Server before 9.32, Bitvise SSH Client before 9.33, KiTTY through 0.76.1.13, the net-ssh gem 7.2.0 for Ruby, the mscdex ssh2 module before 1.15.0 for Node.js, the thrussh library before 0.35.1 for Rust, and the Russh crate before 0.40.2 for Rust.

Publish Date: 2023-12-18

URL: CVE-2023-48795

### CVSS 3 Score Details (5.9)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://security-tracker.debian.org/tracker/CVE-2023-48795

Release Date: 2023-12-18

Fix Resolution: putty - 0.80, openssh - V_9_6_P1, golang/crypto - v0.17.0, asyncssh - 2.14.2, libssh-0.9.8, libssh-0.10.6, teraterm - v5.1, paramiko - 3.4.0, russh - 0.40.2, com.github.mwiede:jsch:0.2.15, proftpd - v1.3.8b, thrussh - 0.35.1, teraterm - v5.1, org.connectbot:sshlib:2.2.22, mscdex/ssh2 - 1.15.0, jtesta/ssh-audit - v3.1.0, Oryx-Embedded/CycloneSSH - v2.3.4, opnsense/src - 23.7, winscp - 6.2.2, PowerShell/openssh-portable - v9.5.0.0

prudhvigodithi commented 7 months ago

[Triage] Adding @jmaitrehenry can you please take a look at this, is this can also be pushed in this PR https://github.com/opensearch-project/terraform-provider-opensearch/pull/150 ? Thanks Adding @bbarani @rblcoder

mend-for-github-com[bot] commented 5 months 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.

prudhvigodithi commented 5 months ago

Completed as part of https://github.com/opensearch-project/terraform-provider-opensearch/pull/187. @bbarani @rblcoder.