Vulnerabilities in pkg:golang/mellium.im/sasl

PACKAGE
Advisory Identifier: GHSA-gvfj-fxx3-j323
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/mellium.im/sasl

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/mellium.im/sasl. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-gvfj-fxx3-j323 CVE-2022-48195 CRITICAL mellium.im/sasl authentication failure due to insufficient nonce randomness

CVE-2022-48195 at a Glance

CVE Identifier CVE-2022-48195
GHSA Identifier GHSA-gvfj-fxx3-j323
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-287: Improper Authentication
Affected Product Mellium.im/sasl
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

mellium.im/sasl fixed: 0.3.1
Upgrade mellium.im/sasl to 0.3.1
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 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

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.

CVE-2022-48195 Affected Mellium.im/sasl Versions

1 component(s)
Fixed Versions:
0.3.1
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?
CVE-2022-48195 is a security vulnerability in Mellium.im/sasl involving mellium.im/sasl authentication failure due to insufficient nonce randomness under CWE-287: Improper Authentication.
Which Mellium.im/sasl versions are affected?
Affected versions include releases prior to 0.3.1 across affected packages: mellium.im/sasl.
What version fixes CVE-2022-48195?
Upgrading to 0.3.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mellium.im/sasl affected?
Yes, mellium.im/sasl is affected in releases prior to 0.3.1. Upgrade your dependency to 0.3.1 or later.
What is the CVSS score of CVE-2022-48195?
CVE-2022-48195 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-48195?
CVE-2022-48195 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2022-48195?
Run the dependency tree command: 'inspect dependencies for mellium.im/sasl'. 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-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"
  }
}