CVE-2024-47182: Github.com/amir20/dozzle Dozzle Uses Unsafe Hash For Vulnerability

LOW
Advisory Identifier: GHSA-w7qr-q9fh-fj35
CVSS 4.8
CWE-326 CWE-328
Published
Advisory Summary

CVE-2024-47182 is a LOW (CVSS 4.8) dozzle uses unsafe hash for vulnerability (CWE-326: Inadequate Encryption Strength) affecting Github.com/amir20/dozzle libraries in the Go ecosystem. The issue involves dozzle uses unsafe hash for passwords. Remediation is available by upgrading affected packages to version 8.5.3.

CVE-2024-47182 at a Glance

CVE Identifier CVE-2024-47182
GHSA Identifier GHSA-w7qr-q9fh-fj35
Severity LOW
CVSS v3.1 Base Score 4.8
CWE Classification CWE-326: Inadequate Encryption Strength
Affected Product Github.com/amir20/dozzle
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N).

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

How to Fix CVE-2024-47182

To remediate this vulnerability, upgrade all affected Github.com/amir20/dozzle 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/amir20/dozzle fixed: 8.5.3
Upgrade github.com/amir20/dozzle to 8.5.3
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/amir20/dozzle

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-47182, inspect your project dependencies for Github.com/amir20/dozzle:

inspect dependencies for github.com/amir20/dozzle

Analyze the terminal output to locate any version of Github.com/amir20/dozzle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.5.3), 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-326: Inadequate Encryption Strength, where the product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required. In Github.com/amir20/dozzle, 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

### Summary The app uses sha-256 as the hash for passwords. The app should switch to bcrypt. ### Details SHA-256 is a message digest hash, and not classified as secure for password hashing. Message digest hashes are designed to be fast, while password hashing mechanisms are designed with certain cryptographic properties (e.g. slow) to protect against vulnerabilities. Refer to the links below for more information: - https://security.stackexchange.com/questions/195563/why-is-sha-256-not-good-for-passwords - https://stackoverflow.com/questions/11624372/best-practice-for-hashing-passwords-sha256-or-sha512 - https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt ### PoC N/A ### Impact It leaves users susceptible to rainbow table attacks

CVE-2024-47182 Affected Github.com/amir20/dozzle Versions

1 component(s)
Fixed Versions:
8.5.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/amir20/dozzle
Go
< 8.5.3
8.5.3

References

Frequently Asked Questions

What is CVE-2024-47182?
CVE-2024-47182 is a security vulnerability in Github.com/amir20/dozzle involving Dozzle uses unsafe hash for passwords under CWE-326: Inadequate Encryption Strength.
Which Github.com/amir20/dozzle versions are affected?
Affected versions include releases prior to 8.5.3 across affected packages: github.com/amir20/dozzle.
What version fixes CVE-2024-47182?
Upgrading to 8.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/amir20/dozzle affected?
Yes, github.com/amir20/dozzle is affected in releases prior to 8.5.3. Upgrade your dependency to 8.5.3 or later.
What is the CVSS score of CVE-2024-47182?
CVE-2024-47182 has a CVSS v3.1 base score of 4.8 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-47182?
CVE-2024-47182 is classified under CWE-326: Inadequate Encryption Strength (The product stores or transmits sensitive data using an encryption scheme that is theoretically sound, but is not strong enough for the level of protection required.).
How can I check Go dependencies for CVE-2024-47182?
Run the dependency tree command: 'inspect dependencies for github.com/amir20/dozzle'. 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-w7qr-q9fh-fj35",
  "modified" : "2024-10-09T21:46:22Z",
  "published" : "2024-10-09T21:46:22Z",
  "aliases" : [ "CVE-2024-47182" ],
  "summary" : "Dozzle uses unsafe hash for passwords",
  "details" : "### Summary\nThe app uses sha-256 as the hash for passwords. The app should switch to bcrypt.\n\n### Details\nSHA-256 is a message digest hash, and not classified as secure for password hashing. Message digest hashes are designed to be fast, while password hashing mechanisms are designed with certain cryptographic properties (e.g. slow) to protect against vulnerabilities. Refer to the links below for more information:\n- https://security.stackexchange.com/questions/195563/why-is-sha-256-not-good-for-passwords\n- https://stackoverflow.com/questions/11624372/best-practice-for-hashing-passwords-sha256-or-sha512\n- https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt\n\n### PoC\nN/A\n\n### Impact\nIt leaves users susceptible to rainbow table attacks\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/amir20/dozzle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "8.5.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/amir20/dozzle/security/advisories/GHSA-w7qr-q9fh-fj35"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47182"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/amir20/dozzle/commit/de79f03aa3dbe5bb1e154a7e8d3dccbd229f3ea3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/amir20/dozzle"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3163"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-326", "CWE-328" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-09T21:46:22Z",
    "nvd_published_at" : "2024-09-27T14:15:04Z"
  }
}