GHSA-m658-p24x-p74r: Duplicate Advisory TLS Certificate Validation Error Vulnerability

MODERATE
CVSS 5.9
CWE-295
Published
Advisory Summary

GHSA-m658-p24x-p74r is a MODERATE (CVSS 5.9) tls certificate validation error vulnerability (CWE-295: Improper Certificate Validation) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves tls certificate validation error in mellium.im/xmpp. Remediation is available by upgrading affected packages to version 0.21.1.

GHSA-m658-p24x-p74r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-m658-p24x-p74r
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-m658-p24x-p74r

To remediate this vulnerability, upgrade all affected Duplicate Advisory 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.21.1
Upgrade mellium.im/xmpp to 0.21.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/xmpp

How to Check if You Are Affected

To determine whether your application is affected by GHSA-m658-p24x-p74r, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for mellium.im/xmpp

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.21.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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Duplicate Advisory, 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

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-h289-x5wc-xcv8. This link is maintained to preserve external references. ## Original Description In Mellium mellium.im/xmpp through 0.21.0, an attacker capable of spoofing DNS TXT records can redirect a WebSocket connection request to a server under their control without causing TLS certificate verification to fail. This occurs because the wrong host name is selected during this verification.

GHSA-m658-p24x-p74r Affected Duplicate Advisory Versions

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

References

Frequently Asked Questions

What is GHSA-m658-p24x-p74r?
GHSA-m658-p24x-p74r is a security vulnerability in Duplicate Advisory involving TLS certificate validation error in mellium.im/xmpp under CWE-295: Improper Certificate Validation.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 0.21.1 across affected packages: mellium.im/xmpp.
What version fixes GHSA-m658-p24x-p74r?
Upgrading to 0.21.1 (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.21.1. Upgrade your dependency to 0.21.1 or later.
What is the CVSS score of GHSA-m658-p24x-p74r?
GHSA-m658-p24x-p74r has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-m658-p24x-p74r?
GHSA-m658-p24x-p74r is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Go dependencies for GHSA-m658-p24x-p74r?
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-m658-p24x-p74r",
  "modified" : "2024-05-20T21:04:24Z",
  "published" : "2022-02-12T00:00:36Z",
  "withdrawn" : "2024-05-20T21:04:24Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: TLS certificate validation error in mellium.im/xmpp",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-h289-x5wc-xcv8. This link is maintained to preserve external references.\n\n## Original Description\nIn Mellium mellium.im/xmpp through 0.21.0, an attacker capable of spoofing DNS TXT records can redirect a WebSocket connection request to a server under their control without causing TLS certificate verification to fail. This occurs because the wrong host name is selected during this verification.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "mellium.im/xmpp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.18.0"
      }, {
        "fixed" : "0.21.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24968"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mellium/xmpp/pull/260"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mellium/xmpp/commit/0d92aa486da69b71f2f4a30e62aa722c711b98ac"
  }, {
    "type" : "WEB",
    "url" : "https://mellium.im/cve/cve-2022-24968"
  }, {
    "type" : "WEB",
    "url" : "https://mellium.im/issue/259"
  }, {
    "type" : "WEB",
    "url" : "https://mellium.im/xmpp"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-0370"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-14T22:38:04Z",
    "nvd_published_at" : "2022-02-11T22:15:00Z"
  }
}