{"api_version":"1","generated_at":"2026-07-24T23:36:29+00:00","cve":"CVE-2022-24900","urls":{"html":"https://cve.report/CVE-2022-24900","api":"https://cve.report/api/cve/CVE-2022-24900.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-24900","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-24900"},"summary":{"title":"CVE-2022-24900","description":"Piano LED Visualizer is software that allows LED lights to light up as a person plays a piano connected to a computer. Version 1.3 and prior are vulnerable to a path traversal attack. The `os.path.join` call is unsafe for use with untrusted input. When the `os.path.join` call encounters an absolute path, it ignores all the parameters it has encountered till that point and starts working with the new absolute path. Since the \"malicious\" parameter represents an absolute path, the result of `os.path.join` ignores the static directory completely. Hence, untrusted input is passed via the `os.path.join` call to `flask.send_file` can lead to path traversal attacks. A patch with a fix is available on the `master` branch of the GitHub repository. This can also be fixed by preventing flow of untrusted data to the vulnerable `send_file` function. In case the application logic necessiates this behaviour, one can either use the `flask.safe_join` to join untrusted paths or replace `flask.send_file` calls with `flask.send_from_directory` calls.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-04-29 14:15:00","updated_at":"2023-06-23 19:35:00"},"problem_types":["CWE-668"],"metrics":[],"references":[{"url":"https://github.com/onlaj/Piano-LED-Visualizer/issues/350","name":"https://github.com/onlaj/Piano-LED-Visualizer/issues/350","refsource":"MISC","tags":[],"title":"Security Vulnerability Found · Issue #350 · onlaj/Piano-LED-Visualizer · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/onlaj/Piano-LED-Visualizer/blob/6a732caa812c83a807c711f3d091af99209cae7b/webinterface/views_api.py#L970","name":"https://github.com/onlaj/Piano-LED-Visualizer/blob/6a732caa812c83a807c711f3d091af99209cae7b/webinterface/views_api.py#L970","refsource":"MISC","tags":[],"title":"Piano-LED-Visualizer/views_api.py at 6a732caa812c83a807c711f3d091af99209cae7b · onlaj/Piano-LED-Visualizer · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/onlaj/Piano-LED-Visualizer/security/advisories/GHSA-g78x-q3x8-r6m4","name":"https://github.com/onlaj/Piano-LED-Visualizer/security/advisories/GHSA-g78x-q3x8-r6m4","refsource":"CONFIRM","tags":[],"title":"Absolute Path Traversal due to incorrect use of `send_file` call · Advisory · onlaj/Piano-LED-Visualizer · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/onlaj/Piano-LED-Visualizer/commit/3f10602323cd8184e1c69a76b815655597bf0ee5","name":"https://github.com/onlaj/Piano-LED-Visualizer/commit/3f10602323cd8184e1c69a76b815655597bf0ee5","refsource":"MISC","tags":[],"title":"Merge pull request #351 from porcupineyhairs/FixPathInjection · onlaj/Piano-LED-Visualizer@3f10602 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/onlaj/Piano-LED-Visualizer/pull/351","name":"https://github.com/onlaj/Piano-LED-Visualizer/pull/351","refsource":"MISC","tags":[],"title":"Fix Path Traversal Vulnerability by porcupineyhairs · Pull Request #351 · onlaj/Piano-LED-Visualizer · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24900","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24900","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"24900","vulnerable":"1","versionEndIncluding":"1.3","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"piano_led_visualizer_project","cpe5":"piano_led_visualizer","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-24900","STATE":"PUBLIC","TITLE":"Absolute Path Traversal due to incorrect use of `send_file` call in Piano LED Visualizer"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Piano-LED-Visualizer","version":{"version_data":[{"version_value":"<= 1.3"}]}}]},"vendor_name":"onlaj"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Piano LED Visualizer is software that allows LED lights to light up as a person plays a piano connected to a computer. Version 1.3 and prior are vulnerable to a path traversal attack. The `os.path.join` call is unsafe for use with untrusted input. When the `os.path.join` call encounters an absolute path, it ignores all the parameters it has encountered till that point and starts working with the new absolute path. Since the \"malicious\" parameter represents an absolute path, the result of `os.path.join` ignores the static directory completely. Hence, untrusted input is passed via the `os.path.join` call to `flask.send_file` can lead to path traversal attacks. A patch with a fix is available on the `master` branch of the GitHub repository. This can also be fixed by preventing flow of untrusted data to the vulnerable `send_file` function. In case the application logic necessiates this behaviour, one can either use the `flask.safe_join` to join untrusted paths or replace `flask.send_file` calls with `flask.send_from_directory` calls."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-73: External Control of File Name or Path"}]},{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/onlaj/Piano-LED-Visualizer/security/advisories/GHSA-g78x-q3x8-r6m4","refsource":"CONFIRM","url":"https://github.com/onlaj/Piano-LED-Visualizer/security/advisories/GHSA-g78x-q3x8-r6m4"},{"name":"https://github.com/onlaj/Piano-LED-Visualizer/issues/350","refsource":"MISC","url":"https://github.com/onlaj/Piano-LED-Visualizer/issues/350"},{"name":"https://github.com/onlaj/Piano-LED-Visualizer/pull/351","refsource":"MISC","url":"https://github.com/onlaj/Piano-LED-Visualizer/pull/351"},{"name":"https://github.com/onlaj/Piano-LED-Visualizer/commit/3f10602323cd8184e1c69a76b815655597bf0ee5","refsource":"MISC","url":"https://github.com/onlaj/Piano-LED-Visualizer/commit/3f10602323cd8184e1c69a76b815655597bf0ee5"},{"name":"https://github.com/onlaj/Piano-LED-Visualizer/blob/6a732caa812c83a807c711f3d091af99209cae7b/webinterface/views_api.py#L970","refsource":"MISC","url":"https://github.com/onlaj/Piano-LED-Visualizer/blob/6a732caa812c83a807c711f3d091af99209cae7b/webinterface/views_api.py#L970"}]},"source":{"advisory":"GHSA-g78x-q3x8-r6m4","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-04-29 14:15:00","lastModifiedDate":"2023-06-23 19:35:00","problem_types":["CWE-668"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":4},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:piano_led_visualizer_project:piano_led_visualizer:*:*:*:*:*:*:*:*","versionEndIncluding":"1.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"24900","Ordinal":"228227","Title":"CVE-2022-24900","CVE":"CVE-2022-24900","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"24900","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}