{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-30254 exists.","fix":"No fix has been published for CVE-2024-30254 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-30254 is a medium-severity path traversal vulnerability in JCWasmx86 mesonlsp, published on 4 Apr 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-30254 and fix it if it is affected.\n\nWhat it is: CVE-2024-30254 is a medium-severity path traversal vulnerability in JCWasmx86 mesonlsp, published on 4 Apr 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-30254 exists.\n\nAffected product: JCWasmx86 mesonlsp. 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-30254/ (Markdown: https://insights.sbomify.com/CVE-2024-30254/index.md)","id":"CVE-2024-30254","markdown":"https://insights.sbomify.com/CVE-2024-30254/index.md","name":"CVE-2024-30254","record":{"aliases":["GHSA-48c5-35fh-846h"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Meson language server","requires_auth":"none","summary":"An attacker can overwrite arbitrary files by tricking a victim into running the MesonLSP language server on a crafted project or with specific flags.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"MesonLSP is an unofficial, unendorsed language server for meson written in C++. A vulnerability in versions prior to 4.1.4 allows overwriting arbitrary files if the attacker can make the victim either run the language server within a specific crafted project or `mesonlsp --full`. Version 4.1.4 contains a patch for this issue. As a workaround, avoid running `mesonlsp --full` and set the language server option `others.neverDownloadAutomatically` to `true`.","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":"Directory traversal allowing overwriting arbitrary files","id":"CVE-2024-30254","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":"HTTP/2: CPU exhaustion due to CONTINUATION frame flood","id":"CVE-2024-30255"},"packages":[],"prev":{"headline":"Handling untrusted input can result in a crash, leading to loss of availability / denial of service","id":"CVE-2024-30253"},"products":["mesonlsp"],"published":"2024-04-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-26","vendors":["JCWasmx86"]},"summary":"An attacker can overwrite arbitrary files by tricking a victim into running the MesonLSP language server on a crafted project or with specific flags.","url":"https://insights.sbomify.com/CVE-2024-30254/"}