{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.15.2"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "f9d1810b1e763a6c0a47ff30bd83d7903d3d614f"
            },
            {
              "fixed": "044ab8a35be38593aefd8fdde9601cc44754f3cc"
            }
          ],
          "repo": "https://github.com/luanti-org/luanti",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g596-mf82-w8c3"
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "cwe_ids": [
      "CWE-829"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40959.json"
  },
  "details": "Luanti 5 before 5.15.2, when LuaJIT is used, allows a Lua sandbox escape via a crafted mod.",
  "id": "CVE-2026-40959",
  "modified": "2026-07-08T05:39:25.628054443Z",
  "published": "2026-04-16T00:51:19.520Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40959.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-40959"
    },
    {
      "type": "FIX",
      "url": "https://github.com/luanti-org/luanti/commit/53cef183e2a85a4daff84ac1a9a7946f940da8f8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/luanti-org/luanti/commit/8a929dfb97aa08337f49ba1bb96a56d6557dc896"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}