Skip to content
Heist/ feed
Back to feed
Medium

Directory traversal allowing overwriting arbitrary files

Type: advisorySources: OSV

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

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-30254
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 15:00 UTC · Revision 1

Source evidence

Directory traversal allowing overwriting arbitrary files

core-osv · Original source

Published 4 Apr 2024, 19:00 UTC

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

osv:CVE-2024-30254
Complete source record
{
  "id": "ce4c4e44eee1bee47a1e5daa8cbecb229a4447e110f48793f48b305f17bb19b4",
  "url": "https://osv.dev/vulnerability/CVE-2024-30254",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Directory traversal allowing overwriting arbitrary files",
    "summary": "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`.",
    "evidence": "osv:CVE-2024-30254",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-30254",
      "aliases": [
        "CVE-2024-30254",
        "GHSA-48c5-35fh-846h"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/jcwasmx86/mesonlsp",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "32bd6855164b68727276a5dd97163a2cfcd038c7"
                },
                {
                  "fixed": "594b6334061371911cd59389124ab8af30ce0a3a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.1.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "594b6334061371911cd59389124ab8af30ce0a3a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.1.3",
            "v4.1.2",
            "v4.1.1",
            "v4.1.0",
            "v4.0.5",
            "v4.0.4",
            "v4.0.3",
            "v4.0.2",
            "v4.0.1",
            "v4.0.0",
            "v3.1.4",
            "v3.1.3",
            "v3.1.2",
            "v3.1.1",
            "v3.1.0",
            "v3.0.22",
            "v3.0.21",
            "v3.0.20",
            "v3.0.19",
            "v3.0.18",
            "v3.0.17",
            "v3.0.16",
            "v3.0.15",
            "v3.0.14",
            "v3.0.13",
            "v3.0.12",
            "v3.0.11",
            "v3.0.10",
            "v3.0.9",
            "v3.0.8",
            "v3.0.7",
            "v3.0.6",
            "v3.0.5",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.4.4",
            "v2.4.3",
            "v2.4.2",
            "v2.4.1",
            "v2.4",
            "v2.3.15",
            "v2.3.14",
            "v2.3.13",
            "v2.3.12",
            "v2.3.11",
            "v2.3.10",
            "v2.3.9",
            "v2.3.8",
            "v2.3.7",
            "v2.3.6",
            "v2.3.5",
            "v2.3.4",
            "v2.3.3",
            "v2.3.2",
            "v2.3.1",
            "v2.3",
            "v2.2",
            "v2.1",
            "v2.0",
            "v1.6",
            "v1.5.1",
            "v1.5",
            "v1.4.1",
            "v1.4",
            "v1.3",
            "v1.2.1",
            "v1.2",
            "v1.1",
            "v1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-30254.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.921542895Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30254.json",
        "https://github.com/JCWasmx86/mesonlsp/security/advisories/GHSA-48c5-35fh-846h",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-30254",
        "https://github.com/JCWasmx86/mesonlsp/commit/594b6334061371911cd59389124ab8af30ce0a3a"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30254.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-30254",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496613,
  "published_at": "2024-04-04T19:00:42.227+00:00"
}