CVE-2022-31506 json
SatyaLab opendiamond 10.1.1 vulnerable to path traversal because Flask send_file function used unsafely
published 2022-07-11 4 y ago modified 2026-07-01 4 mo ago also GHSA-x2pc-fqrw-hc7f , PYSEC-2026-436 , EUVD-2022-6444
- cvss
- 9.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
Patch / fix
Exploit prediction
1.52% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/github/securitylab/issues/669#issuecomment-1117265726 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| GitHub | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
| OSV | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | opendiamond | <=10.1.1 |
no fix listed |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/cmusatyalab/opendiamond/commit/398049c187ee644beabab44d6fece82251c1ea56
web, patch, third-party-advisory
-
github.com
/github/securitylab/issues/669#issuecomment-1117265726
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31506
advisory
-
github.com
/cmusatyalab/opendiamond/issues/52
web
-
github.com
/cmusatyalab/opendiamond
package
-
pypi.org
/project/opendiamond
package
-
github.com
/advisories/GHSA-x2pc-fqrw-hc7f
advisory
Sources
- CVE List CVE-2022-31506
- GitHub Advisory GHSA-x2pc-fqrw-hc7f
- NVD CVE-2022-31506
- OSV PYSEC-2026-436
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.