GHSA-qh54-9vc5-m9fg: Github.com/foxcpp/maddy MD5 Hash Support Vulnerability

LOW
CVSS 3.0
CWE-261
Published
Advisory Summary

GHSA-qh54-9vc5-m9fg is a LOW (CVSS 3.0) md5 hash support vulnerability (CWE-261: Weak Encoding for Password) affecting Github.com/foxcpp/maddy libraries in the Go ecosystem. The issue involves md5 hash support in github.com/foxcpp/maddy. Remediation is available by upgrading affected packages to version 0.5.2.

GHSA-qh54-9vc5-m9fg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-qh54-9vc5-m9fg
Severity LOW
CVSS v3.1 Base Score 3.0
CWE Classification CWE-261: Weak Encoding for Password
Affected Product Github.com/foxcpp/maddy
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.0

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

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

How to Fix GHSA-qh54-9vc5-m9fg

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

How to Check if You Are Affected

To determine whether your application is affected by GHSA-qh54-9vc5-m9fg, inspect your project dependencies for Github.com/foxcpp/maddy:

inspect dependencies for github.com/foxcpp/maddy

Analyze the terminal output to locate any version of Github.com/foxcpp/maddy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.2), 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-261: Weak Encoding for Password, where obscuring a password with a trivial encoding does not protect the password. In Github.com/foxcpp/maddy, 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

### Impact This vulnerability affects maddy 0.5.1, 0.5.0 users using auth.shadow module and an extremely outdated system that still allows MD5 hashes in /etc/shadows. ### Patches Patch is available as part of the 0.5.2 release. ### Workarounds Ensure MD5 hashes are not present in /etc/shadow.

GHSA-qh54-9vc5-m9fg Affected Github.com/foxcpp/maddy Versions

1 component(s)
Fixed Versions:
0.5.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/foxcpp/maddy
Go
≥ 0.5.0
< 0.5.2
0.5.2

References

Frequently Asked Questions

What is GHSA-qh54-9vc5-m9fg?
GHSA-qh54-9vc5-m9fg is a security vulnerability in Github.com/foxcpp/maddy involving MD5 hash support in github.com/foxcpp/maddy under CWE-261: Weak Encoding for Password.
Which Github.com/foxcpp/maddy versions are affected?
Affected versions include releases prior to 0.5.2 across affected packages: github.com/foxcpp/maddy.
What version fixes GHSA-qh54-9vc5-m9fg?
Upgrading to 0.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/foxcpp/maddy affected?
Yes, github.com/foxcpp/maddy is affected in releases prior to 0.5.2. Upgrade your dependency to 0.5.2 or later.
What is the CVSS score of GHSA-qh54-9vc5-m9fg?
GHSA-qh54-9vc5-m9fg has a CVSS v3.1 base score of 3.0 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with GHSA-qh54-9vc5-m9fg?
GHSA-qh54-9vc5-m9fg is classified under CWE-261: Weak Encoding for Password (Obscuring a password with a trivial encoding does not protect the password.).
How can I check Go dependencies for GHSA-qh54-9vc5-m9fg?
Run the dependency tree command: 'inspect dependencies for github.com/foxcpp/maddy'. 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-qh54-9vc5-m9fg",
  "modified" : "2021-10-11T21:16:02Z",
  "published" : "2021-10-12T16:06:30Z",
  "aliases" : [ ],
  "summary" : "MD5 hash support in github.com/foxcpp/maddy",
  "details" : "### Impact\n\nThis vulnerability affects maddy 0.5.1, 0.5.0 users using auth.shadow module\nand an extremely outdated system that still allows MD5 hashes in \n/etc/shadows.\n\n### Patches\n\nPatch is available as part of the 0.5.2 release.\n\n### Workarounds\n\nEnsure MD5 hashes are not present in /etc/shadow.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/foxcpp/maddy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.5.0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/foxcpp/maddy/security/advisories/GHSA-qh54-9vc5-m9fg"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/foxcpp/maddy"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-261" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-10-11T21:16:02Z",
    "nvd_published_at" : null
  }
}