CVE-2022-48195: Mellium.im/sasl Mellium.im/sasl Authentication Failure Due To Vulnerability
CRITICALCVE-2022-48195 is a CRITICAL (CVSS 9.8) mellium.im/sasl authentication failure due to vulnerability (CWE-287: Improper Authentication) affecting Mellium.im/sasl libraries in the Go ecosystem. The issue involves mellium.im/sasl authentication failure due to insufficient nonce randomness. Remediation is available by upgrading affected packages to version 0.3.1.
CVE-2022-48195 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-48195
To remediate this vulnerability, upgrade all affected Mellium.im/sasl 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 mellium.im/sasl to 0.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for mellium.im/sasl
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-48195, inspect your project dependencies for Mellium.im/sasl:
inspect dependencies for mellium.im/sasl
Analyze the terminal output to locate any version of Mellium.im/sasl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.1), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Mellium.im/sasl, 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-2022-48195 Affected Mellium.im/sasl Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mellium.im/sasl
|
Go |
< 0.3.1
|
0.3.1
|
References
Frequently Asked Questions
What is CVE-2022-48195?
Which Mellium.im/sasl versions are affected?
What version fixes CVE-2022-48195?
Is mellium.im/sasl affected?
What is the CVSS score of CVE-2022-48195?
What CWE is associated with CVE-2022-48195?
How can I check Go dependencies for CVE-2022-48195?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gvfj-fxx3-j323",
"modified" : "2024-05-20T21:43:00Z",
"published" : "2022-12-31T03:30:26Z",
"aliases" : [ "CVE-2022-48195" ],
"summary" : "mellium.im/sasl authentication failure due to insufficient nonce randomness",
"details" : "An issue was discovered in Mellium mellium.im/sasl before 0.3.1. When performing SCRAM-based SASL authentication, if the remote end advertises support for channel binding, no random nonce is generated (instead, the nonce is empty). This causes authentication to fail in the best case, but (if paired with a remote end that does not validate the length of the nonce) could lead to insufficient randomness being used during authentication.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "mellium.im/sasl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-48195"
}, {
"type" : "PACKAGE",
"url" : "https://codeberg.org/mellium/sasl"
}, {
"type" : "WEB",
"url" : "https://codeberg.org/mellium/sasl/commit/e6cbf681b247c4efa1477eaad2cc47a01707b732"
}, {
"type" : "WEB",
"url" : "https://codeberg.org/mellium/sasl/releases/tag/v0.3.1"
}, {
"type" : "WEB",
"url" : "https://mellium.im/cve/cve-2022-48195"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2023-1268"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-04T13:56:47Z",
"nvd_published_at" : "2022-12-31T01:15:00Z"
}
}