{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-40035",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-08-08T13:46:25.245Z",
        "datePublished": "2023-08-23T20:05:57.455Z",
        "dateUpdated": "2024-10-02T20:35:01.367Z"
    },
    "containers": {
        "cna": {
            "title": "Craft CMS vulnerable to Remote Code Execution via validatePath bypass",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-74",
                            "lang": "en",
                            "description": "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 7.2,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "HIGH",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw"
                },
                {
                    "name": "https://github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5"
                },
                {
                    "name": "https://github.com/craftcms/cms/releases/tag/3.8.15",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/craftcms/cms/releases/tag/3.8.15"
                },
                {
                    "name": "https://github.com/craftcms/cms/releases/tag/4.4.15",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/craftcms/cms/releases/tag/4.4.15"
                }
            ],
            "affected": [
                {
                    "vendor": "craftcms",
                    "product": "cms",
                    "versions": [
                        {
                            "version": ">= 4.0.0-RC1, < 4.4.15",
                            "status": "affected"
                        },
                        {
                            "version": ">= 3.0.0, < 3.8.15",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-08-23T20:05:57.455Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Craft is a CMS for creating custom digital experiences on the web and beyond. Bypassing the validatePath function can lead to potential remote code execution. This vulnerability can lead to malicious control of vulnerable systems and data exfiltrations. Although the vulnerability is exploitable only in the authenticated users, configuration with ALLOW_ADMIN_CHANGES=true, there is still a potential security threat (Remote Code Execution). This issue has been patched in version 4.4.15 and version 3.8.15.\n"
                }
            ],
            "source": {
                "advisory": "GHSA-44wr-rmwq-3phw",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T18:24:54.994Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-44wr-rmwq-3phw"
                    },
                    {
                        "name": "https://github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/craftcms/cms/commit/0bd33861abdc60c93209cff03eeee54504d3d3b5"
                    },
                    {
                        "name": "https://github.com/craftcms/cms/releases/tag/3.8.15",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/craftcms/cms/releases/tag/3.8.15"
                    },
                    {
                        "name": "https://github.com/craftcms/cms/releases/tag/4.4.15",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/craftcms/cms/releases/tag/4.4.15"
                    }
                ]
            },
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-10-02T20:33:49.046383Z",
                                "id": "CVE-2023-40035",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-10-02T20:35:01.367Z"
                }
            }
        ]
    }
}