Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2022-31506: Flask send_file function allows unauthorized access to files on GitHub
CVE-2022-31506 · published 4 years ago
Summary
GitHub's OpenDiamond repository through version 10.1.1 allows attackers to access files outside of their intended path. This could potentially allow unauthorized access to sensitive information. You should update to a newer version if you use this repository.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | carnegie mellon university | opendiamond | <= 10.1.1 |
| – | cmu | opendiamond |
<= 10.1.1 cpe:2.3:a:cmu:opendiamond:*:*:*:*:*:*:*:* |
Original advisory text
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31506 Vendor Advisory
- https://github.com/github/securitylab/issues/669#issuecomment-1117265726 Third Party Advisory
- https://github.com/cmusatyalab/opendiamond/issues/52
- https://github.com/advisories/GHSA-x2pc-fqrw-hc7f
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31506... Vendor Advisory
- https://github.com/cmusatyalab/opendiamond/commit/398049c187ee644beabab44d6fece8... Patch
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-22Path Traversal
Timeline
Published11 Jul 2022
Updated31 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta