{"id":"CVE-2022-31506","aliases":["CVE-2022-31506","GHSA-x2pc-fqrw-hc7f","PYSEC-2026-436"],"related":[],"kind":"vulnerability","state":"published","title":"SatyaLab opendiamond 10.1.1 vulnerable to path traversal because Flask send_file function used unsafely","summary":"The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The cmusatyalab/opendiamond repository through 10.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-07-11T00:54:01.000Z","modified":"2026-11-16T15:30:03.409Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","score":9.3,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","score":9.3,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:P","score":6.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L","score":9.3,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"10.1.1"}],"ecosystem":"PyPI","package":"opendiamond","purl":"pkg:pypi/opendiamond","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"10.1.1"}],"vendor":"cmu","product":"opendiamond","cpe":"cpe:2.3:a:cmu:opendiamond:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"10.1.1"}],"ecosystem":"PyPI","package":"opendiamond","purl":"pkg:pypi/opendiamond","source":"pysec"}],"references":[{"url":"https://github.com/github/securitylab/issues/669#issuecomment-1117265726","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/cmusatyalab/opendiamond/commit/398049c187ee644beabab44d6fece82251c1ea56","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31506","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/cmusatyalab/opendiamond/issues/52","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/cmusatyalab/opendiamond","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/opendiamond/PYSEC-2026-436.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/opendiamond","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-x2pc-fqrw-hc7f","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31506","url":"https://www.cve.org/CVERecord?id=CVE-2022-31506","licence":"CVE Terms of Use","modified":"2024-08-03T07:19:06.161Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x2pc-fqrw-hc7f","url":"https://github.com/advisories/GHSA-x2pc-fqrw-hc7f","licence":"CC-BY-4.0","modified":"2026-11-16T15:30:03.409Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31506","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31506","licence":"Public domain","modified":"2026-06-17T04:45:35.047Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-436","url":"https://osv.dev/vulnerability/PYSEC-2026-436","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:59.484Z"}],"updatedAt":"2026-11-25T22:58:12.773Z","epss":{"score":0.01572,"percentile":0.76135,"date":"2026-12-01T12:00:22.000Z"}}