CVE-2024-46957: Mellium.im/xmpp Authentication Bypass Vulnerability

CRITICAL
Advisory Identifier: GHSA-98hf-m87w-cq6h
CVSS 9.8
CWE-290
Published
Advisory Summary

CVE-2024-46957 is a CRITICAL (CVSS 9.8) authentication bypass vulnerability (CWE-290: Authentication Bypass by Spoofing) affecting Mellium.im/xmpp libraries in the Go ecosystem. The issue involves mellium allows authentication bypass by spoofing. Remediation is available by upgrading affected packages to version 0.22.0.

CVE-2024-46957 at a Glance

CVE Identifier CVE-2024-46957
GHSA Identifier GHSA-98hf-m87w-cq6h
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-290: Authentication Bypass by Spoofing
Affected Product Mellium.im/xmpp
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-2024-46957

To remediate this vulnerability, upgrade all affected Mellium.im/xmpp 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/xmpp fixed: 0.22.0
Upgrade mellium.im/xmpp to 0.22.0
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/xmpp

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-46957, inspect your project dependencies for Mellium.im/xmpp:

inspect dependencies for mellium.im/xmpp

Analyze the terminal output to locate any version of Mellium.im/xmpp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.22.0), 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-290: Authentication Bypass by Spoofing, where this attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks. In Mellium.im/xmpp, 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

Mellium mellium.im/xmpp 0.0.1 through 0.21.4 allows response spoofing because the stanza type is not checked. This is fixed in 0.22.0.

CVE-2024-46957 Affected Mellium.im/xmpp Versions

1 component(s)
Fixed Versions:
0.22.0
Product / Package Ecosystem Affected Versions Fixed Version
mellium.im/xmpp
Go
< 0.22.0
0.22.0

References

Frequently Asked Questions

What is CVE-2024-46957?
CVE-2024-46957 is a security vulnerability in Mellium.im/xmpp involving Mellium allows Authentication Bypass by Spoofing under CWE-290: Authentication Bypass by Spoofing.
Which Mellium.im/xmpp versions are affected?
Affected versions include releases prior to 0.22.0 across affected packages: mellium.im/xmpp.
What version fixes CVE-2024-46957?
Upgrading to 0.22.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mellium.im/xmpp affected?
Yes, mellium.im/xmpp is affected in releases prior to 0.22.0. Upgrade your dependency to 0.22.0 or later.
What is the CVSS score of CVE-2024-46957?
CVE-2024-46957 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-2024-46957?
CVE-2024-46957 is classified under CWE-290: Authentication Bypass by Spoofing (This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.).
How can I check Go dependencies for CVE-2024-46957?
Run the dependency tree command: 'inspect dependencies for mellium.im/xmpp'. 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-98hf-m87w-cq6h",
  "modified" : "2024-09-25T18:27:09Z",
  "published" : "2024-09-25T03:30:36Z",
  "aliases" : [ "CVE-2024-46957" ],
  "summary" : "Mellium allows Authentication Bypass by Spoofing",
  "details" : "Mellium mellium.im/xmpp 0.0.1 through 0.21.4 allows response spoofing because the stanza type is not checked. This is fixed in 0.22.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "mellium.im/xmpp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.22.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-46957"
  }, {
    "type" : "PACKAGE",
    "url" : "https://codeberg.org/mellium/xmpp"
  }, {
    "type" : "WEB",
    "url" : "https://codeberg.org/mellium/xmpp/releases"
  }, {
    "type" : "WEB",
    "url" : "https://codeberg.org/mellium/xmpp/releases/tag/v0.22.0"
  }, {
    "type" : "WEB",
    "url" : "https://mellium.im/cve/cve-2024-46957"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-290" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-25T18:27:09Z",
    "nvd_published_at" : "2024-09-25T01:15:44Z"
  }
}