CVE-2025-57811

Source
https://cve.org/CVERecord?id=CVE-2025-57811
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57811.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-57811
Aliases
Downstream
Published
2025-08-25T17:52:07Z
Modified
2026-08-12T03:51:33Z
Severity
  • 6.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
Craft Potential Remote Code Execution via Twig SSTI
Details

Craft is a platform for creating digital experiences. From versions 4.0.0-RC1 to 4.16.5 and 5.0.0-RC1 to 5.8.6, there is a potential remote code execution vulnerability via Twig SSTI (Server-Side Template Injection). This is a follow-up to CVE-2024-52293. This vulnerability has been patched in versions 4.16.6 and 5.8.7.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-1336"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57811.json"
}
References

Affected packages

Git / github.com/craftcms/cms

Affected ranges

Type
GIT
Repo
https://github.com/craftcms/cms
Events
Database specific
Show details
{
    "cpe": [
        "cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:*",
        "cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:*",
        "cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:*",
        "cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "4.1.0"
        },
        {
            "fixed": "4.16.6"
        },
        {
            "introduced": "5.1.0"
        },
        {
            "fixed": "5.8.7"
        },
        {
            "introduced": "4.0.0-rc1"
        },
        {
            "last_affected": "4.0.0-rc1"
        },
        {
            "introduced": "4.0.0-rc2"
        },
        {
            "last_affected": "4.0.0-rc2"
        },
        {
            "introduced": "4.0.0-rc3"
        },
        {
            "last_affected": "4.0.0-rc3"
        },
        {
            "introduced": "5.0.0-rc1"
        },
        {
            "last_affected": "5.0.0-rc1"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

4.*
4.0.0-rc1
4.0.0-rc2
4.0.0-rc3
5.*
5.0.0-rc1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57811.json"