Vulnerabilities in pkg:pypi/SleekXMPP

PACKAGE
Advisory Identifier: GHSA-c35g-jr5f-h83p
Advisory Summary

CVE-2017-5591 is a MODERATE (CVSS 5.9) sleekxmpp and slixmpp incorrect implementation vulnerability (CWE-940: Improper Verification of Source of a Communication Channel) affecting Slixmpp libraries in the PyPI ecosystem. The issue involves sleekxmpp and slixmpp incorrect implementation of message carbons. Remediation is available by upgrading affected packages to version 1.2.4, 1.3.2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/SleekXMPP

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-c35g-jr5f-h83p CVE-2017-5591 MODERATE SleekXMPP and Slixmpp Incorrect Implementation of Message Carbons

CVE-2017-5591 at a Glance

CVE Identifier CVE-2017-5591
GHSA Identifier GHSA-c35g-jr5f-h83p
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-940: Improper Verification of Source of a Communication Channel
Affected Product Slixmpp
Package Ecosystem PyPI
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 CVE-2017-5591

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.2.4
pip install slixmpp>=1.2.4
SleekXMPP fixed: 1.3.2
pip install SleekXMPP>=1.3.2
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-2017-5591, 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.2.4), 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-940: Improper Verification of Source of a Communication Channel, where the product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin. 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

An incorrect implementation of "XEP-0280: Message Carbons" in multiple XMPP clients allows a remote attacker to impersonate any user, including contacts, in the vulnerable application's display. This allows for various kinds of social engineering attacks. This CVE is for SleekXMPP up to 1.3.1 and Slixmpp all versions up to 1.2.3, as bundled in poezio (0.8 - 0.10) and other products.

CVE-2017-5591 Affected Slixmpp Versions

2 component(s)
Fixed Versions:
1.2.41.3.2
Product / Package Ecosystem Affected Versions Fixed Version
slixmpp
PyPI
< 1.2.4
1.2.4
SleekXMPP
PyPI
< 1.3.2
1.3.2

References

Frequently Asked Questions

What is CVE-2017-5591?
CVE-2017-5591 is a security vulnerability in Slixmpp involving SleekXMPP and Slixmpp Incorrect Implementation of Message Carbons under CWE-940: Improper Verification of Source of a Communication Channel.
Which Slixmpp versions are affected?
Affected versions include releases prior to 1.2.4, 1.3.2 across affected packages: slixmpp, SleekXMPP.
What version fixes CVE-2017-5591?
Upgrading to 1.2.4, 1.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is slixmpp affected?
Yes, slixmpp is affected in releases prior to 1.2.4. Upgrade your dependency to 1.2.4 or later.
Is SleekXMPP affected?
Yes, SleekXMPP is affected in releases prior to 1.3.2. Upgrade your dependency to 1.3.2 or later.
What is the CVSS score of CVE-2017-5591?
CVE-2017-5591 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 CVE-2017-5591?
CVE-2017-5591 is classified under CWE-940: Improper Verification of Source of a Communication Channel (The product establishes a communication channel to handle an incoming request that has been initiated by an actor, but it does not properly verify that the request is coming from the expected origin.).
How can I check PyPI dependencies for CVE-2017-5591?
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-c35g-jr5f-h83p",
  "modified" : "2024-10-22T17:28:45Z",
  "published" : "2022-05-13T01:28:46Z",
  "aliases" : [ "CVE-2017-5591" ],
  "summary" : "SleekXMPP and Slixmpp Incorrect Implementation of Message Carbons ",
  "details" : "An incorrect implementation of \"XEP-0280: Message Carbons\" in multiple XMPP clients allows a remote attacker to impersonate any user, including contacts, in the vulnerable application's display. This allows for various kinds of social engineering attacks. This CVE is for SleekXMPP up to 1.3.1 and Slixmpp all versions up to 1.2.3, as bundled in poezio (0.8 - 0.10) and other products.",
  "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" : "PyPI",
      "name" : "slixmpp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.2.3"
    }
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "SleekXMPP"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.3.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.3.1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-5591"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fritzy/SleekXMPP/issues/442"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fritzy/SleekXMPP/commit/285495d5ee2427d93d961ceedcd1829383e5196d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/poezio/slixmpp/commit/22664ee7b86c8e010f312b66d12590fb47160ad8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/poezio/slixmpp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sleekxmpp/PYSEC-2017-103.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/slixmpp/PYSEC-2017-104.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/sleekxmpp"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/slixmpp"
  }, {
    "type" : "WEB",
    "url" : "https://rt-solutions.de/en/2017/02/CVE-2017-5589_xmpp_carbons"
  }, {
    "type" : "WEB",
    "url" : "https://rt-solutions.de/wp-content/uploads/2017/02/CVE-2017-5589_xmpp_carbons.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200227192025/http://www.securityfocus.com/bid/96166"
  }, {
    "type" : "WEB",
    "url" : "http://openwall.com/lists/oss-security/2017/02/09/29"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-940" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-03T23:06:53Z",
    "nvd_published_at" : "2017-02-09T20:59:00Z"
  }
}