CVE-2021-42583: Github.com/foxcpp/maddy Use Of A Broken Or Vulnerability

HIGH
Advisory Identifier: GHSA-5r5w-h76p-m726
CWE-327
Published
Advisory Summary

CVE-2021-42583 is a HIGH use of a broken or vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Github.com/foxcpp/maddy libraries in the Go ecosystem. The issue involves use of a broken or risky cryptographic algorithm in max mazurov maddy. Remediation is available by upgrading affected packages to version 0.5.2.

CVE-2021-42583 at a Glance

CVE Identifier CVE-2021-42583
GHSA Identifier GHSA-5r5w-h76p-m726
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-327: Use of a Broken or Risky Cryptographic Algorithm
Affected Product Github.com/foxcpp/maddy
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2021-42583

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 CVE-2021-42583, 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-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. 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

A Broken or Risky Cryptographic Algorithm exists in Max Mazurov Maddy before 0.5.2, which is an unnecessary risk that may result in the exposure of sensitive information.

CVE-2021-42583 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.2
0.5.2

References

Frequently Asked Questions

What is CVE-2021-42583?
CVE-2021-42583 is a security vulnerability in Github.com/foxcpp/maddy involving Use of a Broken or Risky Cryptographic Algorithm in Max Mazurov Maddy under CWE-327: Use of a Broken or Risky Cryptographic Algorithm.
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 CVE-2021-42583?
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 CWE is associated with CVE-2021-42583?
CVE-2021-42583 is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm (The product uses a broken or risky cryptographic algorithm or protocol.).
How can I check Go dependencies for CVE-2021-42583?
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-5r5w-h76p-m726",
  "modified" : "2022-01-13T18:32:43Z",
  "published" : "2022-01-06T22:20:53Z",
  "aliases" : [ "CVE-2021-42583" ],
  "summary" : "Use of a Broken or Risky Cryptographic Algorithm in Max Mazurov Maddy",
  "details" : "A Broken or Risky Cryptographic Algorithm exists in Max Mazurov Maddy before 0.5.2, which is an unnecessary risk that may result in the exposure of sensitive information.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/foxcpp/maddy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-42583"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/foxcpp/maddy"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/foxcpp/maddy/blob/df40dce1284cd0fd0a9e8e7894029553d653d0a5/internal/auth/shadow/verify.go"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/foxcpp/maddy/releases/tag/v0.5.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-327" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-01-06T18:56:46Z",
    "nvd_published_at" : "2021-12-28T19:15:00Z"
  }
}