CVE-2022-31506
9.3critical
SatyaLab opendiamond 10.1.1 vulnerable to path traversal because Flask send_file function used unsafely
- Severity
- 9.3critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.57% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-x2pc-fqrw-hc7fPYSEC-2026-436
Description
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| opendiamond (PyPI) | up to 10.1.1 | GitHub Advisory Database, PyPA Advisory Database |
| cmu opendiamond | up to 10.1.1 | NVD |
All scores
| GitHub | 9.3critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
| NVD | 9.3critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
| NVD | 6.4medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| PyPA Advisory Database | 9.3critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
Classification
What each source says
CVE List
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
GitHub Advisory Database
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely. A patch is available on the master branch of the repository.
NVD (es)
El repositorio cmusatyalab/opendiamond versiones hasta 10.1.1 en GitHub, permite un salto de ruta absoluto porque la función send_file de Flask es usada de forma no segura
References
| https://github.com/github/securitylab/issues/669#issuecomment-1117265726 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/cmusatyalab/opendiamond/commit/398049c187ee644beabab44d6fece82251c1ea56 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31506 | advisory | |
| https://github.com/cmusatyalab/opendiamond/issues/52 | web | |
| https://github.com/cmusatyalab/opendiamond | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/opendiamond/PYSEC-2026-436.yaml | web | |
| https://pypi.org/project/opendiamond | package, web | |
| https://github.com/advisories/GHSA-x2pc-fqrw-hc7f | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31506 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x2pc-fqrw-hc7f changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2022-31506 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-436 changed 2026-07-01 | CC-BY-4.0 |