Advisory

GHSA-7rq4-qcpw-74gq

Also known as: None

Summary

Formula Injection in Exported Data

Details

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:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-06-17 01:17 UTC
Modified
2024-12-08 05:27 UTC

Affected packages and fixes

inventree

PyPI · All systems

Affected

  • introduced 0, fixed 0.7.2 (ecosystem)

Fixed versions

0.7.2

Fix

  • Fixed version 0.7.2
    pip install --upgrade inventree==0.7.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences