Vulnerabilities in pkg:pypi/untangle

PACKAGE
Advisory Identifier: GHSA-7xr3-6ggc-wc9p
Advisory Summary

CVE-2022-33977 is a HIGH (CVSS 7.5) untangle vulnerable to xml entity vulnerability (CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')) affecting Untangle libraries in the PyPI ecosystem. The issue involves untangle vulnerable to xml entity expansion. Remediation is available by upgrading affected packages to version 1.2.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/untangle

2 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-7xr3-6ggc-wc9p CVE-2022-33977 HIGH untangle vulnerable to XML Entity Expansion
GHSA-f83q-2cp7-qrjg CVE-2022-31471 HIGH untangle vulnerable to Improper Restriction of XML External Entity Reference

CVE-2022-33977 at a Glance

CVE Identifier CVE-2022-33977
GHSA Identifier GHSA-7xr3-6ggc-wc9p
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
Affected Product Untangle
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:N/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 None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-33977

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

untangle fixed: 1.2.1
pip install untangle>=1.2.1
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 untangle

How to Check if You Are Affected

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

pip show untangle

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion'), where the product uses xml documents and allows their structure to be defined with a document type definition (dtd), but it does not properly control the number of recursive definitions of entities. In Untangle, 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 An attacker may be able to cause a denial-of-service (DoS) condition on the server on which the product is running. This affects untangle versions up to and including 1.2.0 ### Patches The problem has been fixed with version 1.2.1 ### Workarounds None ### References https://jvn.jp/en/jp/JVN30454777/ ### For more information If you have any questions or comments about this advisory: * Open an [issue](https://github.com/stchris/untangle/issues)

CVE-2022-33977 Affected Untangle Versions

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

References

Frequently Asked Questions

What is CVE-2022-33977?
CVE-2022-33977 is a security vulnerability in Untangle involving untangle vulnerable to XML Entity Expansion under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion').
Which Untangle versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: untangle.
What version fixes CVE-2022-33977?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is untangle affected?
Yes, untangle is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of CVE-2022-33977?
CVE-2022-33977 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:N/A:H.
What CWE is associated with CVE-2022-33977?
CVE-2022-33977 is classified under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') (The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.).
How can I check PyPI dependencies for CVE-2022-33977?
Run the dependency tree command: 'pip show untangle'. 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-7xr3-6ggc-wc9p",
  "modified" : "2024-11-18T23:03:15Z",
  "published" : "2022-08-06T05:30:56Z",
  "aliases" : [ "CVE-2022-33977" ],
  "summary" : "untangle vulnerable to XML Entity Expansion",
  "details" : "### Impact\nAn attacker may be able to cause a denial-of-service (DoS) condition on the server on which the product is running. This affects untangle versions up to and including 1.2.0\n\n### Patches\nThe problem has been fixed with version 1.2.1\n\n### Workarounds\nNone\n\n### References\nhttps://jvn.jp/en/jp/JVN30454777/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an [issue](https://github.com/stchris/untangle/issues)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "untangle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/stchris/untangle/security/advisories/GHSA-7xr3-6ggc-wc9p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-33977"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/untangle/PYSEC-2022-243.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/stchris/untangle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stchris/untangle/releases/tag/1.2.1"
  }, {
    "type" : "WEB",
    "url" : "https://jvn.jp/en/jp/JVN30454777"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-776" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-06T05:30:56Z",
    "nvd_published_at" : "2022-07-26T06:15:00Z"
  }
}