Snyk - Open Source Security

Snyk test report

January 5th 2025, 12:19:42 am (UTC+00:00)

Scanned the following paths:
  • ghcr.io/dexidp/dex:v2.41.1/dexidp/dex (apk)
  • ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4//usr/local/bin/gomplate (gomodules)
  • ghcr.io/dexidp/dex:v2.41.1/dexidp/dex//usr/local/bin/docker-entrypoint (gomodules)
  • ghcr.io/dexidp/dex:v2.41.1/dexidp/dex//usr/local/bin/dex (gomodules)
24 known vulnerabilities
45 vulnerable dependency paths
969 dependencies

Incorrect Implementation of Authentication Algorithm

critical severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Vulnerable module: golang.org/x/crypto/ssh
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and golang.org/x/crypto/ssh@v0.24.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* golang.org/x/crypto/ssh@v0.24.0

Overview

golang.org/x/crypto/ssh is a SSH client and server

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm when the key passed in the last call before a connection is established is assumed to be the key used for authentication. It is not necessarily the authentication key in use, and this allows attackers who can control the key cache by making their own carefully-timed connections to bypass authorization with subsequent legitimate ServerConfig.PublicKeyCallback callbacks.

Note: The assumed caching behavior of this callback is not documented and is therefore considered human error, but the project maintainers have observed reliance on it for authorization decisions in production. In fact, the assumption is negated in the documentation, which states "A call to this function does not guarantee that the key offered is in fact used to authenticate." The behavior after upgrading still allows the possibility of an attacker forcing their own key to be the one in the cache when the callback is invoked if the client is using a different authentication method such as PasswordCallback, KeyboardInteractiveCallback, or NoClientAuth. It is therefore recommended to rely on the return values of the connection itself, found in ServerConn.Permissions for further authorization steps.

Remediation

Upgrade golang.org/x/crypto/ssh to version 0.31.0 or higher.

References


Denial of Service (DoS)

high severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/dexidp/dex /usr/local/bin/dex
  • Package Manager: golang
  • Vulnerable module: golang.org/x/net/html
  • Introduced through: github.com/dexidp/dex@* and golang.org/x/net/html@v0.27.0

Detailed paths

  • Introduced through: github.com/dexidp/dex@* golang.org/x/net/html@v0.27.0

Overview

golang.org/x/net/html is a package that implements an HTML5-compliant tokenizer and parser.

Affected versions of this package are vulnerable to Denial of Service (DoS) through the functions parseDoctype, htmlIntegrationPoint, inBodyIM and inTableIM due to inefficient usage of the method strings.ToLower combining with the == operator to convert strings to lowercase and then comparing them.

An attacker can cause the application to slow down significantly by crafting inputs that are processed non-linearly.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade golang.org/x/net/html to version 0.33.0 or higher.

References


Insertion of Sensitive Information into Log File

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Vulnerable module: google.golang.org/grpc/metadata
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and google.golang.org/grpc/metadata@v1.64.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* google.golang.org/grpc/metadata@v1.64.0

Overview

google.golang.org/grpc/metadata is a package that defines the structure of the metadata supported by the gRPC library

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File in the form of gRPC metadata. If the metadata contains sensitive information an attacker can expose it.

Remediation

Upgrade google.golang.org/grpc/metadata to version 1.64.1 or higher.

References


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/vault/api
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/vault/api@v1.14.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/vault/api@v1.14.0

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/serf/coordinate
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/serf/coordinate@v0.10.1

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/serf/coordinate@v0.10.1

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/dexidp/dex /usr/local/bin/dex
  • Package Manager: golang
  • Module: github.com/hashicorp/hcl/v2
  • Introduced through: github.com/dexidp/dex@* and github.com/hashicorp/hcl/v2@v2.13.0

Detailed paths

  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/ext/customdecode@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/ext/tryfunc@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/gohcl@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/hclparse@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/hclsyntax@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/hclwrite@v2.13.0
  • Introduced through: github.com/dexidp/dex@* github.com/hashicorp/hcl/v2/json@v2.13.0

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/hcl
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/hcl@v1.0.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/hcl@v1.0.0
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/hcl/hcl/token@v1.0.0

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/golang-lru/simplelru
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/golang-lru/simplelru@v1.0.2

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/golang-lru/simplelru@v1.0.2

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-uuid
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-uuid@v1.0.3

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-uuid@v1.0.3

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-sockaddr
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-sockaddr@v1.0.6

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-sockaddr@v1.0.6
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-sockaddr/template@v1.0.6

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-secure-stdlib/strutil
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-secure-stdlib/strutil@v0.1.2

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-secure-stdlib/strutil@v0.1.2

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-secure-stdlib/parseutil
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-secure-stdlib/parseutil@v0.1.8

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-secure-stdlib/parseutil@v0.1.8

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-secure-stdlib/awsutil
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-secure-stdlib/awsutil@v0.3.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-secure-stdlib/awsutil@v0.3.0

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-rootcerts
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-rootcerts@v1.0.2

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-rootcerts@v1.0.2

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-retryablehttp
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-retryablehttp@v0.7.7

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-retryablehttp@v0.7.7

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-multierror
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-multierror@v1.1.1

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-multierror@v1.1.1

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-immutable-radix
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-immutable-radix@v1.3.1

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-immutable-radix@v1.3.1

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/go-cleanhttp
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/go-cleanhttp@v0.5.2

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/go-cleanhttp@v0.5.2

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/errwrap
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/errwrap@v1.1.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/errwrap@v1.1.0

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/hashicorp/consul/api
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/hashicorp/consul/api@v1.29.1

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/hashicorp/consul/api@v1.29.1

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/hairyhenderson/gomplate/v4 /usr/local/bin/gomplate
  • Package Manager: golang
  • Module: github.com/gosimple/slug
  • Introduced through: github.com/hairyhenderson/gomplate/v4@* and github.com/gosimple/slug@v1.14.0

Detailed paths

  • Introduced through: github.com/hairyhenderson/gomplate/v4@* github.com/gosimple/slug@v1.14.0

MPL-2.0 license


MPL-2.0 license

medium severity

  • Manifest file: ghcr.io/dexidp/dex:v2.41.1/dexidp/dex /usr/local/bin/dex
  • Package Manager: golang
  • Module: github.com/go-sql-driver/mysql
  • Introduced through: github.com/dexidp/dex@* and github.com/go-sql-driver/mysql@v1.8.1

Detailed paths

  • Introduced through: github.com/dexidp/dex@* github.com/go-sql-driver/mysql@v1.8.1

MPL-2.0 license


CVE-2024-6119

low severity

  • Package Manager: alpine:3.20
  • Vulnerable module: openssl/libcrypto3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 and openssl/libcrypto3@3.3.1-r3

Detailed paths

  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 apk-tools/apk-tools@2.14.4-r0 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 busybox/ssl_client@1.36.1-r29 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 apk-tools/apk-tools@2.14.4-r0 openssl/libssl3@3.3.1-r3 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 openssl/libssl3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 apk-tools/apk-tools@2.14.4-r0 openssl/libssl3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 busybox/ssl_client@1.36.1-r29 openssl/libssl3@3.3.1-r3

NVD Description

Note: Versions mentioned in the description apply only to the upstream openssl package and not the openssl package as distributed by Alpine. See How to fix? for Alpine:3.20 relevant fixed versions and status.

Issue summary: Applications performing certificate name checks (e.g., TLS clients checking server certificates) may attempt to read an invalid memory address resulting in abnormal termination of the application process.

Impact summary: Abnormal termination of an application can a cause a denial of service.

Applications performing certificate name checks (e.g., TLS clients checking server certificates) may attempt to read an invalid memory address when comparing the expected name with an otherName subject alternative name of an X.509 certificate. This may result in an exception that terminates the application program.

Note that basic certificate chain validation (signatures, dates, ...) is not affected, the denial of service can occur only when the application also specifies an expected DNS name, Email address or IP address.

TLS servers rarely solicit client certificates, and even when they do, they generally don't perform a name check against a reference identifier (expected identity), but rather extract the presented identity after checking the certificate chain. So TLS servers are generally not affected and the severity of the issue is Moderate.

The FIPS modules in 3.3, 3.2, 3.1 and 3.0 are not affected by this issue.

Remediation

Upgrade Alpine:3.20 openssl to version 3.3.2-r0 or higher.

References


CVE-2024-9143

low severity

  • Package Manager: alpine:3.20
  • Vulnerable module: openssl/libcrypto3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 and openssl/libcrypto3@3.3.1-r3

Detailed paths

  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 apk-tools/apk-tools@2.14.4-r0 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 busybox/ssl_client@1.36.1-r29 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 apk-tools/apk-tools@2.14.4-r0 openssl/libssl3@3.3.1-r3 openssl/libcrypto3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 openssl/libssl3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 apk-tools/apk-tools@2.14.4-r0 openssl/libssl3@3.3.1-r3
  • Introduced through: docker-image|ghcr.io/dexidp/dex@v2.41.1 busybox/ssl_client@1.36.1-r29 openssl/libssl3@3.3.1-r3

NVD Description

Note: Versions mentioned in the description apply only to the upstream openssl package and not the openssl package as distributed by Alpine. See How to fix? for Alpine:3.20 relevant fixed versions and status.

Issue summary: Use of the low-level GF(2^m) elliptic curve APIs with untrusted explicit values for the field polynomial can lead to out-of-bounds memory reads or writes.

Impact summary: Out of bound memory writes can lead to an application crash or even a possibility of a remote code execution, however, in all the protocols involving Elliptic Curve Cryptography that we're aware of, either only "named curves" are supported, or, if explicit curve parameters are supported, they specify an X9.62 encoding of binary (GF(2^m)) curves that can't represent problematic input values. Thus the likelihood of existence of a vulnerable application is low.

In particular, the X9.62 encoding is used for ECC keys in X.509 certificates, so problematic inputs cannot occur in the context of processing X.509 certificates. Any problematic use-cases would have to be using an "exotic" curve encoding.

The affected APIs include: EC_GROUP_new_curve_GF2m(), EC_GROUP_new_from_params(), and various supporting BN_GF2m_*() functions.

Applications working with "exotic" explicit binary (GF(2^m)) curve parameters, that make it possible to represent invalid field polynomials with a zero constant term, via the above or similar APIs, may terminate abruptly as a result of reading or writing outside of array bounds. Remote code execution cannot easily be ruled out.

The FIPS modules in 3.3, 3.2, 3.1 and 3.0 are not affected by this issue.

Remediation

Upgrade Alpine:3.20 openssl to version 3.3.2-r1 or higher.

References