CVE-2022-31573 ChainerRL Visualizer 0.1.1 vulnerable to Path Traversal via unsafe use of send_file function
An attacker can read arbitrary files on the server via absolute path traversal in the Chainerrl visualizer web interface.
- 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-31573?
CVE-2022-31573 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 chainer/chainerrl-visualizer repository through 0.1.1 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-31573?
3 open source packages ship an affected version, including chainerrl-visualizer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
chainerrl-visualizer PyPI | All versions to 0.1.1 | None |
chainerrl-visualizer PyPI | All versions to 0.1.1 | None |
chainerrl-visualizer PyPI | All versions to 0.1.1 | None |
Products include Chainer Chainerrl-Visualizer.
How do I fix CVE-2022-31573?
No fix has been published for CVE-2022-31573 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-31573 being exploited?
There is no known exploitation of CVE-2022-31573 in the wild and no public exploit code.
Sources
Also known as GHSA-687h-86vc-5x59, PYSEC-2026-309.