{"id":"CVE-2024-30254","state":"PUBLISHED","title":"Directory traversal allowing overwriting arbitrary files","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`.\n\n","publishedAt":"2024-04-04T19:00:42.227Z","updatedAt":"2024-08-26T20:43:45.256Z","severity":{"score":5.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["JCWasmx86 mesonlsp"],"affected":[{"vendor":"JCWasmx86","product":"mesonlsp","versions":[{"version":"< 4.1.4","status":"affected"}]}],"references":["https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h","https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/30xxx/CVE-2024-30254.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-30254","state":"PUBLISHED","datePublished":"2024-04-04T19:00:42.227Z","dateUpdated":"2024-08-26T20:43:45.256Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-03-26T12:52:00.933Z"},"containers":{"cna":{"title":"Directory traversal allowing overwriting arbitrary files","descriptions":[{"lang":"en","value":"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`.\n\n"}],"affected":[{"vendor":"JCWasmx86","product":"mesonlsp","versions":[{"version":"< 4.1.4","status":"affected"}]}],"references":[{"url":"https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h","name":"https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a","name":"https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":5.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-04-04T19:00:42.227Z"},"source":{"advisory":"GHSA-48c5-35fh-846h","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h","name":"https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a","name":"https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T01:32:05.394Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"jcwasmx86","product":"mesonlsp","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"4.1.4","versionType":"custom"}],"cpes":["cpe:2.3:a:jcwasmx86:mesonlsp:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-04-04T20:03:25.558074Z","id":"CVE-2024-30254","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-26T20:43:45.256Z"}}]}}}