GHSA-7rq4-qcpw-74gq: Inventree Formula Injection Vulnerability
MODERATEGHSA-7rq4-qcpw-74gq is a MODERATE formula injection vulnerability (General Security Weakness) affecting Inventree libraries in the PyPI ecosystem. The issue involves formula injection in exported data. Remediation is available by upgrading affected packages to version 0.7.2.
GHSA-7rq4-qcpw-74gq at a Glance
How to Fix GHSA-7rq4-qcpw-74gq
To remediate this vulnerability, upgrade all affected Inventree 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 inventree>=0.7.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show inventree
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-7rq4-qcpw-74gq, inspect your installed packages using pip:
pip show inventree
Analyze the terminal output to locate any version of Inventree in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.2), your application is affected.
Note: The pip show inventree command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Inventree, 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
GHSA-7rq4-qcpw-74gq Affected Inventree Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
inventree
|
PyPI |
< 0.7.2
|
0.7.2
|
References
Frequently Asked Questions
What is GHSA-7rq4-qcpw-74gq?
Which Inventree versions are affected?
What version fixes GHSA-7rq4-qcpw-74gq?
Is inventree affected?
What CWE is associated with GHSA-7rq4-qcpw-74gq?
How can I check PyPI dependencies for GHSA-7rq4-qcpw-74gq?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7rq4-qcpw-74gq",
"modified" : "2022-06-17T01:17:22Z",
"published" : "2022-06-17T01:17:22Z",
"aliases" : [ ],
"summary" : "Formula Injection in Exported Data",
"details" : "### Impact\n\nDatasets exported to file (e.g. CSV / XLS) are not sufficiently sanitized, to neutralize potential formula injection\n\n### Patches\n\n- The issue is addressed in the upcoming 0.8.0 release\n- This fix will also be back-ported to the 0.7.x branch, applied to the 0.7.2 release\n\n### Workarounds\n\nUsers exporting untrusted data should open the files in safe mode (e.g. in Microsoft Excel).\n\n### References\n\n- https://huntr.dev/bounties/e57c36e7-fa39-435f-944a-3a52ee066f73/\n- https://owasp.org/www-community/attacks/CSV_Injection\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [github](http://github.com/inventree/inventree)\n* Email us at [security@inventree.org](mailto:security@inventree.org)\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "inventree"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/inventree/InvenTree/security/advisories/GHSA-7rq4-qcpw-74gq"
}, {
"type" : "WEB",
"url" : "https://github.com/inventree/inventree-python"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T01:17:22Z",
"nvd_published_at" : null
}
}