CVE-2022-26662: Trytond XML Entity Expansion Vulnerability
HIGHCVE-2022-26662 is a HIGH (CVSS 7.5) xml entity expansion vulnerability (CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')) affecting Trytond libraries in the PyPI ecosystem. The issue involves xml entity expansion in trytond and proteus. Remediation is available by upgrading affected packages to version 5.0.46, 6.0.16, 6.2.6, 5.0.12, 6.0.5, 6.2.2.
CVE-2022-26662 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:N/I:N/A:H).
How to Fix CVE-2022-26662
To remediate this vulnerability, upgrade all affected Trytond 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 trytond>=5.0.46
pip install trytond>=6.0.16
pip install trytond>=6.2.6
pip install proteus>=5.0.12
pip install proteus>=6.0.5
pip install proteus>=6.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show trytond
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-26662, inspect your installed packages using pip:
pip show trytond
Analyze the terminal output to locate any version of Trytond in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.46), your application is affected.
Note: The pip show trytond 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 Trytond, 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-26662 Affected Trytond Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
trytond
|
PyPI |
≥ 5.0.0
< 5.0.46
|
5.0.46
|
|
trytond
|
PyPI |
≥ 6.0.0
< 6.0.16
|
6.0.16
|
|
trytond
|
PyPI |
≥ 6.1.0
< 6.2.6
|
6.2.6
|
|
proteus
|
PyPI |
≥ 5.0.0
< 5.0.12
|
5.0.12
|
|
proteus
|
PyPI |
≥ 6.0.0
< 6.0.5
|
6.0.5
|
|
proteus
|
PyPI |
≥ 6.1.0
< 6.2.2
|
6.2.2
|
References
Frequently Asked Questions
What is CVE-2022-26662?
Which Trytond versions are affected?
What version fixes CVE-2022-26662?
Is trytond affected?
Is proteus affected?
What is the CVSS score of CVE-2022-26662?
What CWE is associated with CVE-2022-26662?
How can I check PyPI dependencies for CVE-2022-26662?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pm3h-mm62-pwm8",
"modified" : "2022-03-28T15:56:34Z",
"published" : "2022-03-11T00:02:04Z",
"aliases" : [ "CVE-2022-26662" ],
"summary" : "XML Entity Expansion in trytond and proteus",
"details" : "An XML Entity Expansion (XEE) issue was discovered in Tryton Application Platform (Server) 5.x through 5.0.45, 6.x through 6.0.15, and 6.1.x and 6.2.x through 6.2.5, and Tryton Application Platform (Command Line Client (proteus)) 5.x through 5.0.11, 6.x through 6.0.4, and 6.1.x and 6.2.x through 6.2.1. An unauthenticated user can send a crafted XML-RPC message to consume all the resources of the server.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "trytond"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.46"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "trytond"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.0.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "trytond"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0"
}, {
"fixed" : "6.2.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "proteus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0"
}, {
"fixed" : "5.0.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "proteus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.0.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "proteus"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.0"
}, {
"fixed" : "6.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-26662"
}, {
"type" : "WEB",
"url" : "https://bugs.tryton.org/issue11244"
}, {
"type" : "WEB",
"url" : "https://discuss.tryton.org/t/security-release-for-issue11219-and-issue11244/5059"
}, {
"type" : "PACKAGE",
"url" : "https://hg.tryton.org/trytond"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/03/msg00016.html"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2022/03/msg00017.html"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2022/dsa-5098"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2022/dsa-5099"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-776" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-03-28T15:54:14Z",
"nvd_published_at" : "2022-03-10T17:47:00Z"
}
}