# CVE-2022-31506: SatyaLab opendiamond 10.1.1 vulnerable to path traversal because Flask send_file function used unsafely

- Severity: Critical 9.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.57%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-11T00:54:01.000Z
- Modified: 2026-11-16T15:30:03.409Z
- Also known as: GHSA-x2pc-fqrw-hc7f, PYSEC-2026-436
- Weaknesses: CWE-22
- Assigned by: mitre

## Description

The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- opendiamond (PyPI): up to 10.1.1
- cmu opendiamond: up to 10.1.1

## Every score

- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L`
- NVD: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`
- PyPA Advisory Database: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L`

## 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

- CVE List: [CVE-2022-31506](https://www.cve.org/CVERecord?id=CVE-2022-31506), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-x2pc-fqrw-hc7f](https://github.com/advisories/GHSA-x2pc-fqrw-hc7f), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2022-31506](https://nvd.nist.gov/vuln/detail/CVE-2022-31506), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-436](https://osv.dev/vulnerability/PYSEC-2026-436), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2022-31506 · Whole record: https://cve.day/CVE-2022-31506.json · Rebuilt by cve.day 2026-11-25T22:58:12.773Z
