CVE-2022-31471: Untangle Untangle Vulnerable To Improper Restriction Vulnerability
HIGHCVE-2022-31471 is a HIGH (CVSS 7.5) untangle vulnerable to improper restriction vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Untangle libraries in the PyPI ecosystem. The issue involves untangle vulnerable to improper restriction of xml external entity reference. Remediation is available by upgrading affected packages to version 1.2.1.
CVE-2022-31471 at a Glance
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:H/I:N/A:N).
How to Fix CVE-2022-31471
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.
pip install untangle>=1.2.1
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-31471, 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-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. 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
CVE-2022-31471 Affected Untangle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
untangle
|
PyPI |
< 1.2.1
|
1.2.1
|
References
Frequently Asked Questions
What is CVE-2022-31471?
Which Untangle versions are affected?
What version fixes CVE-2022-31471?
Is untangle affected?
What is the CVSS score of CVE-2022-31471?
What CWE is associated with CVE-2022-31471?
How can I check PyPI dependencies for CVE-2022-31471?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f83q-2cp7-qrjg",
"modified" : "2024-11-18T23:02:45Z",
"published" : "2022-08-06T05:30:13Z",
"aliases" : [ "CVE-2022-31471" ],
"summary" : "untangle vulnerable to Improper Restriction of XML External Entity Reference",
"details" : "### Description\nuntangle is a python library to convert XML data to python objects. untangle versions 1.2.0 and earlier improperly restricts XML external entity references. By exploiting this vulnerability, a remote unauthenticated attacker may read the contents of local files.\n\n### Impact\nAn attacker may be able to read the contents of local files. 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:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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-f83q-2cp7-qrjg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31471"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/untangle/PYSEC-2022-244.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-611" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-08-06T05:30:13Z",
"nvd_published_at" : "2022-07-26T06:15:00Z"
}
}