CVE-2021-42583: Github.com/foxcpp/maddy Use Of A Broken Or Vulnerability
HIGHCVE-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
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.
Upgrade github.com/foxcpp/maddy to 0.5.2
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
CVE-2021-42583 Affected Github.com/foxcpp/maddy Versions
1 component(s)| 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?
Which Github.com/foxcpp/maddy versions are affected?
What version fixes CVE-2021-42583?
Is github.com/foxcpp/maddy affected?
What CWE is associated with CVE-2021-42583?
How can I check Go dependencies for CVE-2021-42583?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}