{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-48931 exists.","fix":"No fix has been published for CVE-2024-48931 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-48931 is a high-severity path traversal vulnerability in IceWhaleTech ZimaOS, published on 24 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-48931 and fix it if it is affected.\n\nWhat it is: CVE-2024-48931 is a high-severity path traversal vulnerability in IceWhaleTech ZimaOS, published on 24 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-48931 exists.\n\nAffected product: IceWhaleTech ZimaOS. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-48931/ (Markdown: https://insights.sbomify.com/CVE-2024-48931/index.md)","id":"CVE-2024-48931","markdown":"https://insights.sbomify.com/CVE-2024-48931/index.md","name":"CVE-2024-48931","record":{"aliases":["GHSA-hjw2-9gq5-qgwj"],"analysis":{"component_type":"operating_system","fix_type":"no_fix_stated","impacts":["data_read","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"ZimaOS","requires_auth":"none","summary":"Authenticated attackers can read sensitive system files like /etc/shadow via path traversal in the ZimaOS API, enabling potential privilege escalation.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zimaos","vendor":"zimaspace"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"ZimaOS is a fork of CasaOS, an operating system for Zima devices and x86-64 systems with UEFI. In version 1.2.4 and all prior versions, the ZimaOS API endpoint `http://\u003cZima_Server_IP:PORT\u003e/v3/file?token=\u003ctoken\u003e\u0026files=\u003cfile_path\u003e` is vulnerable to arbitrary file reading due to improper input validation. By manipulating the `files` parameter, authenticated users can read sensitive system files, including `/etc/shadow`, which contains password hashes for all users. This vulnerability exposes critical system data and poses a high risk for privilege escalation or system compromise. The vulnerability occurs because the API endpoint does not validate or restrict file paths provided via the `files` parameter. An attacker can exploit this by manipulating the file path to access sensitive files outside the intended directory. As of time of publication, no known patched versions are available.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"ZimaOS Arbitrary File Read via Parameter Manipulation","id":"CVE-2024-48931","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":0,"n_references":2,"next":{"headline":"ZimaOS Unauthenticated API Discloses Usernames","id":"CVE-2024-48932"},"packages":[],"prev":{"headline":"secp256k1-node vulnerable to private key extraction over ECDH","id":"CVE-2024-48930"},"products":["ZimaOS"],"published":"2024-10-24","related":[{"cvss_score":9.4,"headline":"ZimaOS has Authentication Bypass via System-Level Username","id":"CVE-2026-21891","kev_date_added":null,"published":"2026-01-08"},{"cvss_score":9.1,"headline":"Arbitrary internal service access via /v1/sys/proxy when Cloudflare Tunnel is enabled on ZimaOS","id":"CVE-2026-28798","kev_date_added":null,"published":"2026-04-03"},{"cvss_score":8.6,"headline":"ZimaOS: Arbitrary Deletion of Internal System Files via API Path Manipulation","id":"CVE-2026-28442","kev_date_added":null,"published":"2026-03-05"},{"cvss_score":8.6,"headline":"ZimaOS: Unauthorized Creation of Files/Folders in Restricted System Directories via API","id":"CVE-2026-28286","kev_date_added":null,"published":"2026-03-02"},{"cvss_score":7.5,"headline":"ZimaOS (Installed Applications and System Information) has Unauthorized Sensitive Data Leak","id":"CVE-2024-49357","kev_date_added":null,"published":"2024-10-24"},{"cvss_score":7.5,"headline":"ZimaOS vulnerable to Directory Listing via Parameter Manipulation","id":"CVE-2024-49359","kev_date_added":null,"published":"2024-10-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-10-25","vendors":["IceWhaleTech"]},"summary":"Authenticated attackers can read sensitive system files like /etc/shadow via path traversal in the ZimaOS API, enabling potential privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-48931/"}