GHSA-7rq4-qcpw-74gq Formula Injection in Exported Data
Attackers can inject malicious formulas into exported CSV/XLS files, potentially executing code when victims open the files in spreadsheet software.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-7rq4-qcpw-74gq?
GHSA-7rq4-qcpw-74gq is a vulnerability in inventree, published on 17 Jun 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Impact
Datasets exported to file (e.g. CSV / XLS) are not sufficiently sanitized, to neutralize potential formula injection
Patches
- The issue is addressed in the upcoming 0.8.0 release
- This fix will also be back-ported to the 0.7.x branch, applied to the 0.7.2 release
Workarounds
Users exporting untrusted data should open the files in safe mode (e.g. in Microsoft Excel).
References
- https://huntr.dev/bounties/e57c36e7-fa39-435f-944a-3a52ee066f73/
- https://owasp.org/www-community/attacks/CSV_Injection
For more information
If you have any questions or comments about this advisory:
- Open an issue in github
- Email us at [email protected]
Which versions are affected by GHSA-7rq4-qcpw-74gq?
2 open source packages ship an affected version, including inventree.
| Package | Affected | Fixed in |
|---|---|---|
inventree PyPI | All versions | 0.7.2 |
inventree PyPI | All versions | 0.7.2 |
How do I fix GHSA-7rq4-qcpw-74gq?
Upgrade inventree to 0.7.2 or later.
Is GHSA-7rq4-qcpw-74gq being exploited?
There is no known exploitation of GHSA-7rq4-qcpw-74gq in the wild and no public exploit code.