{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-36460",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2023-06-21T18:50:41.699Z",
        "datePublished": "2023-07-06T18:39:09.825Z",
        "dateUpdated": "2024-08-02T16:45:56.987Z"
    },
    "containers": {
        "cna": {
            "title": "Mastodon vulnerable to arbitrary file creation through media attachments",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-22",
                            "lang": "en",
                            "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "baseScore": 10,
                        "baseSeverity": "CRITICAL",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "CHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/mastodon/mastodon/security/advisories/GHSA-9928-3cp5-93fm",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/mastodon/mastodon/security/advisories/GHSA-9928-3cp5-93fm"
                },
                {
                    "name": "https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440"
                },
                {
                    "name": "https://github.com/mastodon/mastodon/releases/tag/v3.5.9",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/mastodon/mastodon/releases/tag/v3.5.9"
                },
                {
                    "name": "https://github.com/mastodon/mastodon/releases/tag/v4.0.5",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/mastodon/mastodon/releases/tag/v4.0.5"
                },
                {
                    "name": "https://github.com/mastodon/mastodon/releases/tag/v4.1.3",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/mastodon/mastodon/releases/tag/v4.1.3"
                },
                {
                    "url": "http://www.openwall.com/lists/oss-security/2023/07/06/4"
                }
            ],
            "affected": [
                {
                    "vendor": "mastodon",
                    "product": "mastodon",
                    "versions": [
                        {
                            "version": ">= 3.5.0, < 3.5.9",
                            "status": "affected"
                        },
                        {
                            "version": ">= 4.0.0, < 4.0.5",
                            "status": "affected"
                        },
                        {
                            "version": ">= 4.1.0, < 4.1.3",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2023-07-06T18:57:01.934Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Mastodon is a free, open-source social network server based on ActivityPub. Starting in version 3.5.0 and prior to versions 3.5.9, 4.0.5, and 4.1.3, attackers using carefully crafted media files can cause Mastodon's media processing code to create arbitrary files at any location. This allows attackers to create and overwrite any file Mastodon has access to, allowing Denial of Service and arbitrary Remote Code Execution. Versions 3.5.9, 4.0.5, and 4.1.3 contain a patch for this issue."
                }
            ],
            "source": {
                "advisory": "GHSA-9928-3cp5-93fm",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T16:45:56.987Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/mastodon/mastodon/security/advisories/GHSA-9928-3cp5-93fm",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/mastodon/mastodon/security/advisories/GHSA-9928-3cp5-93fm"
                    },
                    {
                        "name": "https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440"
                    },
                    {
                        "name": "https://github.com/mastodon/mastodon/releases/tag/v3.5.9",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/mastodon/mastodon/releases/tag/v3.5.9"
                    },
                    {
                        "name": "https://github.com/mastodon/mastodon/releases/tag/v4.0.5",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/mastodon/mastodon/releases/tag/v4.0.5"
                    },
                    {
                        "name": "https://github.com/mastodon/mastodon/releases/tag/v4.1.3",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/mastodon/mastodon/releases/tag/v4.1.3"
                    },
                    {
                        "url": "http://www.openwall.com/lists/oss-security/2023/07/06/4",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}