CVE-2023-52289 Path traversal in flaskcode
Unauthenticated attackers can write to arbitrary files via directory traversal in the flaskcode package, potentially compromising system integrity.
- 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-2023-52289?
CVE-2023-52289 is a high-severity path traversal vulnerability in n/a, published on 13 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the flaskcode package through 0.0.8 for Python. An unauthenticated directory traversal, exploitable with a POST request to a /update-resource-data/<file_path> URI (from views.py), allows attackers to write to arbitrary files.
Weakness: CWE-22
Which versions are affected by CVE-2023-52289?
3 open source packages ship an affected version, including flaskcode. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
flaskcode PyPI | All versions to 0.0.8 | None |
flaskcode PyPI | All versions to 0.0.8 | None |
flaskcode PyPI | All versions to 0.0.8 | None |
Products include Sujeetkv Flaskcode.
How do I fix CVE-2023-52289?
No fix has been published for CVE-2023-52289 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-2023-52289 being exploited?
There is no known exploitation of CVE-2023-52289 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-v3rg-qm46-xrg9, PYSEC-2026-1387.