Vulnerabilities in pkg:pypi/slixmpp

PACKAGE
Advisory Identifier: GHSA-q6cq-m9gm-6q2f
Advisory Summary

CVE-2022-45197 is a HIGH (CVSS 7.5) slixmpp lacks ssl certificate hostname vulnerability (CWE-295: Improper Certificate Validation) affecting Slixmpp libraries in the PyPI ecosystem. The issue involves slixmpp lacks ssl certificate hostname validation in xmlstream. Remediation is available by upgrading affected packages to version 1.8.3.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/slixmpp

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/slixmpp. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q6cq-m9gm-6q2f CVE-2022-45197 HIGH Slixmpp lacks SSL Certificate hostname validation in XMLStream
GHSA-c35g-jr5f-h83p CVE-2017-5591 MODERATE SleekXMPP and Slixmpp Incorrect Implementation of Message Carbons
GHSA-4g62-mfwx-4q48 CVE-2019-1000021 HIGH slixmpp Incorrect Access Control

CVE-2022-45197 at a Glance

CVE Identifier CVE-2022-45197
GHSA Identifier GHSA-q6cq-m9gm-6q2f
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Slixmpp
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/I:H/A:N).

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 None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2022-45197

To remediate this vulnerability, upgrade all affected Slixmpp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

slixmpp fixed: 1.8.3
pip install slixmpp>=1.8.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show slixmpp

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2022-45197, inspect your installed packages using pip:

pip show slixmpp

Analyze the terminal output to locate any version of Slixmpp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.3), your application is affected.

Note: The pip show slixmpp command checks currently installed packages in your active Python environment.

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 Slixmpp, 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

Slixmpp before 1.8.3 lacks SSL Certificate hostname validation in XMLStream, allowing an attacker to pose as any server in the eyes of Slixmpp.

CVE-2022-45197 Affected Slixmpp Versions

1 component(s)
Fixed Versions:
1.8.3
Product / Package Ecosystem Affected Versions Fixed Version
slixmpp
PyPI
< 1.8.3
1.8.3

References

Frequently Asked Questions

What is CVE-2022-45197?
CVE-2022-45197 is a security vulnerability in Slixmpp involving Slixmpp lacks SSL Certificate hostname validation in XMLStream under CWE-295: Improper Certificate Validation.
Which Slixmpp versions are affected?
Affected versions include releases prior to 1.8.3 across affected packages: slixmpp.
What version fixes CVE-2022-45197?
Upgrading to 1.8.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is slixmpp affected?
Yes, slixmpp is affected in releases prior to 1.8.3. Upgrade your dependency to 1.8.3 or later.
What is the CVSS score of CVE-2022-45197?
CVE-2022-45197 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2022-45197?
CVE-2022-45197 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check PyPI dependencies for CVE-2022-45197?
Run the dependency tree command: 'pip show slixmpp'. 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-q6cq-m9gm-6q2f",
  "modified" : "2024-10-23T18:34:22Z",
  "published" : "2022-12-25T06:30:20Z",
  "aliases" : [ "CVE-2022-45197" ],
  "summary" : "Slixmpp lacks SSL Certificate hostname validation in XMLStream",
  "details" : "Slixmpp before 1.8.3 lacks SSL Certificate hostname validation in XMLStream, allowing an attacker to pose as any server in the eyes of Slixmpp.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "slixmpp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-45197"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/poezio/slixmpp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/poezio/slixmpp/commits/master/slixmpp/xmlstream/xmlstream.py"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/poezio/slixmpp/tags"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/slixmpp/PYSEC-2022-43013.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lab.louiz.org/poezio/slixmpp/-/commit/b60b1b985db928532f97c4f61d6fbc801f0aa7fa"
  }, {
    "type" : "WEB",
    "url" : "https://lab.louiz.org/poezio/slixmpp/-/commits/master"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/202305-07"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-12-30T17:12:05Z",
    "nvd_published_at" : "2022-12-25T05:15:00Z"
  }
}