{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:minetest:minetest:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.15.2"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "f9d1810b1e763a6c0a47ff30bd83d7903d3d614f"
            },
            {
              "fixed": "044ab8a35be38593aefd8fdde9601cc44754f3cc"
            },
            {
              "fixed": "8a929dfb97aa08337f49ba1bb96a56d6557dc896"
            }
          ],
          "repo": "https://github.com/luanti-org/luanti",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g596-mf82-w8c3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41196.json"
  },
  "details": "Luanti (formerly Minetest) is an open source voxel game-creation platform. Starting in version 5.0.0 and prior to version 5.15.2, a malicious mod can trivially escape the sandboxed Lua environment to execute arbitrary code and gain full filesystem access on the user's device. This applies to the server-side mod, async and mapgen as well as the client-side (CSM) environments. This vulnerability is only exploitable when using LuaJIT. Version 5.15.2 contains a patch. On release versions, one can also patch this issue without recompiling by editing `builtin/init.lua` and adding the line `getfenv = nil` at the end. Note that this will break mods relying on this function (which is not inherently unsafe).",
  "id": "CVE-2026-41196",
  "modified": "2026-07-08T05:37:29.988428113Z",
  "published": "2026-04-23T00:28:56.716Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41196.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/luanti-org/luanti/security/advisories/GHSA-g596-mf82-w8c3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41196"
    },
    {
      "type": "FIX",
      "url": "https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Luanti has a mod security sandbox escape"
}