GHSA-7rq4-qcpw-74gq Formula Injection in Exported Data

Not scored Published

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

For more information

If you have any questions or comments about this advisory:

Which versions are affected by GHSA-7rq4-qcpw-74gq?

2 open source packages ship an affected version, including inventree.

PackageAffectedFixed in
inventree PyPIAll versions0.7.2
inventree PyPIAll versions0.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.

Sources

Is GHSA-7rq4-qcpw-74gq in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free