CVE-2022-31558 Tooxie Shiva 0.10.0 allows absolute path traversal because Flask send_file function used unsafely

Critical 9.3 Published Updated

An attacker can read arbitrary files on the server due to unsafe file handling in the shiva-server application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-31558?

CVE-2022-31558 is a critical path traversal vulnerability in n/a, published on 11 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The tooxie/shiva-server repository through 0.10.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

Weakness: CWE-22

Which versions are affected by CVE-2022-31558?

3 open source packages ship an affected version, including shiva. It affects 1 product.

PackageAffectedFixed in
shiva PyPIAll versions to 0.10.0None
shiva PyPIAll versions to 0.10.0None
shiva PyPIAll versions to 0.10.0None

Products include Shiva-Server Project Shiva-Server.

How do I fix CVE-2022-31558?

No fix has been published for CVE-2022-31558 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-31558 being exploited?

There is no known exploitation of CVE-2022-31558 in the wild and no public exploit code.

Sources

Also known as GHSA-qp72-96p2-g644, PYSEC-2026-541.

Is CVE-2022-31558 in your software?

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

Check your SBOMs for free