CVE-2022-31506 — Vulnerability in opendiamond — CVE Details
SatyaLab opendiamond 10.1.1 vulnerable to path traversal because Flask send_file function used unsafely
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.48%). Schedule for your next planned update.
Does your project use an affected opendiamond version?
Paste your requirements.txt to check it for CVE-2022-31506 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published June 29, 2026 (150 days ago).
- Last revised July 1, 2026 — 2 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| opendiamond PyPI · Affected: 10.0.0, 10.0.1, 10.0.2, 10.1.0 (+1 more) | Range-based data available |
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31506ADVISORY
- https://github.com/cmusatyalab/opendiamond/issues/52WEB
- https://github.com/github/securitylab/issues/669#issuecomment-1117265726WEB
- https://github.com/cmusatyalab/opendiamond/commit/398049c187ee644beabab44d6fece82251c1ea56WEB
- https://github.com/cmusatyalab/opendiamondPACKAGE
- https://pypi.org/project/opendiamondPACKAGE
- https://github.com/advisories/GHSA-x2pc-fqrw-hc7fADVISORY
Frequently Asked Questions
- What is CVE-2022-31506?
- SatyaLab opendiamond 10.1.1 vulnerable to path traversal because Flask send_file function used unsafely. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
- How do I check if my project is affected by CVE-2022-31506?
- CVE-2022-31506 affects opendiamond. It has a 1.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-31506 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 74.2% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-77359CRITICAL
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
- CVE-2026-77312CRITICAL
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)