CVE-2019-1000007: Aioxmpp Depth Counting Error Vulnerability

HIGH
Advisory Identifier: GHSA-6m9g-jr8c-cqw3
CVSS 7.4
CWE-237
Published
Advisory Summary

CVE-2019-1000007 is a HIGH (CVSS 7.4) depth counting error vulnerability (CWE-237: Improper Handling of Structural Elements) affecting Aioxmpp libraries in the PyPI ecosystem. The issue involves depth counting error in guard() leading to multiple potential security issues in aioxmpp. Remediation is available by upgrading affected packages to version 0.10.3.

CVE-2019-1000007 at a Glance

CVE Identifier CVE-2019-1000007
GHSA Identifier GHSA-6m9g-jr8c-cqw3
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-237: Improper Handling of Structural Elements
Affected Product Aioxmpp
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.4

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

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 High (A:H)

How to Fix CVE-2019-1000007

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

aioxmpp fixed: 0.10.3
pip install aioxmpp>=0.10.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 aioxmpp

How to Check if You Are Affected

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

pip show aioxmpp

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-237: Improper Handling of Structural Elements, where the product does not handle or incorrectly handles inputs that are related to complex structures. In Aioxmpp, 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

### Impact Possible remote Denial of Service or Data Injection. ### Patches Patches are available in https://github.com/horazont/aioxmpp/pull/268. They have been backported to the 0.10 release series and 0.10.3 is the first release to contain the fix. ### Workarounds To make the bug exploitable, an error suppressing ``xso_error_handler`` is required. By not using ``xso_error_handlers`` or not using the suppression function, the vulnerability can be mitigated completely (to our knowledge). ### References The pull request contains a detailed description: https://github.com/horazont/aioxmpp/pull/268 ### For more information If you have any questions or comments about this advisory: * [Join our chat](xmpp:aioxmpp@conference.zombofant.net?join) * Email the maintainer [Jonas Schäfer](mailto:jonas@wielicki.name)

CVE-2019-1000007 Affected Aioxmpp Versions

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

References

Frequently Asked Questions

What is CVE-2019-1000007?
CVE-2019-1000007 is a security vulnerability in Aioxmpp involving Depth counting error in guard() leading to multiple potential security issues in aioxmpp under CWE-237: Improper Handling of Structural Elements.
Which Aioxmpp versions are affected?
Affected versions include releases prior to 0.10.3 across affected packages: aioxmpp.
What version fixes CVE-2019-1000007?
Upgrading to 0.10.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aioxmpp affected?
Yes, aioxmpp is affected in releases prior to 0.10.3. Upgrade your dependency to 0.10.3 or later.
What is the CVSS score of CVE-2019-1000007?
CVE-2019-1000007 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2019-1000007?
CVE-2019-1000007 is classified under CWE-237: Improper Handling of Structural Elements (The product does not handle or incorrectly handles inputs that are related to complex structures.).
How can I check PyPI dependencies for CVE-2019-1000007?
Run the dependency tree command: 'pip show aioxmpp'. 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-6m9g-jr8c-cqw3",
  "modified" : "2024-09-04T19:55:01Z",
  "published" : "2020-04-29T17:12:39Z",
  "aliases" : [ "CVE-2019-1000007" ],
  "summary" : "Depth counting error in guard() leading to multiple potential security issues in aioxmpp",
  "details" : "### Impact\nPossible remote Denial of Service or Data Injection.\n\n### Patches\nPatches are available in https://github.com/horazont/aioxmpp/pull/268. They have been backported to the 0.10 release series and 0.10.3 is the first release to contain the fix.\n\n### Workarounds\nTo make the bug exploitable, an error suppressing ``xso_error_handler`` is required. By not using ``xso_error_handlers`` or not using the suppression function, the vulnerability can be mitigated completely (to our knowledge).\n\n### References\nThe pull request contains a detailed description: https://github.com/horazont/aioxmpp/pull/268\n\n### For more information\nIf you have any questions or comments about this advisory:\n* [Join our chat](xmpp:aioxmpp@conference.zombofant.net?join)\n* Email the maintainer [Jonas Schäfer](mailto:jonas@wielicki.name)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "aioxmpp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/horazont/aioxmpp/security/advisories/GHSA-6m9g-jr8c-cqw3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1000007"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/horazont/aioxmpp/pull/268"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/horazont/aioxmpp/commit/29ff0838a40f58efe30a4bbcea95aa8dab7da475"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/horazont/aioxmpp/commit/f151f920f439d97d4103fc11057ed6dc34fe98be"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6m9g-jr8c-cqw3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/horazont/aioxmpp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/aioxmpp/PYSEC-2019-1.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-237" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-04-29T17:12:16Z",
    "nvd_published_at" : "2019-02-04T21:29:00Z"
  }
}