CVE-2026-40960

Source
https://cve.org/CVERecord?id=CVE-2026-40960
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40960.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40960
Aliases
  • GHSA-22c4-238c-m5j4
Downstream
Published
2026-04-16T00:54:45Z
Modified
2026-10-28T10:55:11Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Luanti 5 before 5.15.2 sometimes allows unintended access to an insecure environment. If at least one mod is listed as secure.trusted_mods or secure.http_mods, then a crafted mod can intercept the request for the insecure environment or HTTP API, and also receive access to it.

Database specific
{
    "cna_assigner": "mitre",
    "cwe_ids": [
        "CWE-670"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40960.json"
}
References

Affected packages

Git / github.com/luanti-org/luanti

Affected ranges

Type
GIT
Repo
https://github.com/luanti-org/luanti
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "5.0.0"
                },
                {
                    "fixed": "5.15.2"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "fixed": "0faf529bc4b89e70a275ed1162047815118f2413"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "827fd4cf7f989482b2dad381fa4afd642ea73e8c"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

5.*
5.0.0
5.1.0
5.10.0
5.10.0-rc1
5.11.0
5.11.0-rc1
5.12.0
5.13.0
5.14.0
5.14.0-rc1
5.15.0
5.15.0-rc1
5.15.1
5.2.0
5.3.0
5.4.0
5.5.0
5.6.0
5.7.0
5.8.0
5.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40960.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "function_hash": "69346852032616779633652444776571286866",
            "length": 514
        },
        "id": "CVE-2026-40960-53f87160",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/luanti-org/luanti/commit/0faf529bc4b89e70a275ed1162047815118f2413",
        "target": {
            "file": "src/script/cpp_api/s_security.cpp",
            "function": "ScriptApiSecurity::getCurrentModName"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "69346852032616779633652444776571286866",
            "length": 514
        },
        "id": "CVE-2026-40960-5d296ad3",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/luanti-org/luanti/commit/827fd4cf7f989482b2dad381fa4afd642ea73e8c",
        "target": {
            "file": "src/script/cpp_api/s_security.cpp",
            "function": "ScriptApiSecurity::getCurrentModName"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "14280754021638532828436902484908948154",
                "243600868345419908776141424440201800148",
                "321973952621854196937322505461845449421",
                "244354723016717733361669597187075839787"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-40960-7e0f0277",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/luanti-org/luanti/commit/0faf529bc4b89e70a275ed1162047815118f2413",
        "target": {
            "file": "src/script/cpp_api/s_security.cpp"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "14280754021638532828436902484908948154",
                "243600868345419908776141424440201800148",
                "321973952621854196937322505461845449421",
                "244354723016717733361669597187075839787"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-40960-c9dd702e",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/luanti-org/luanti/commit/827fd4cf7f989482b2dad381fa4afd642ea73e8c",
        "target": {
            "file": "src/script/cpp_api/s_security.cpp"
        }
    }
]
vanir_signatures_modified
"2026-10-28T10:55:11Z"