{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-23814",
        "assignerOrgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
        "assignerShortName": "snyk",
        "dateUpdated": "2024-09-16T18:24:10.080Z",
        "dateReserved": "2021-01-08T00:00:00",
        "datePublished": "2021-12-17T20:00:14.149150Z"
    },
    "containers": {
        "cna": {
            "title": "Arbitrary File Upload",
            "datePublic": "2021-12-17T00:00:00",
            "providerMetadata": {
                "orgId": "bae035ff-b466-4ff4-94d0-fc9efd9e1730",
                "shortName": "snyk",
                "dateUpdated": "2023-12-07T17:38:31.581999"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "This affects the package unisharp/laravel-filemanager from 0.0.0. The upload() function does not sufficiently validate the file type when uploading. An attacker may be able to reproduce the following steps: - Install a package with a web Laravel application. - Navigate to the Upload window - Upload an image file, then capture the request - Edit the request contents with a malicious file (webshell) - Enter the path of file uploaded on URL - Remote Code Execution **Note: Prevention for bad extensions can be done by using a whitelist in the config file(lfm.php). Corresponding document can be found in the [here](https://unisharp.github.io/laravel-filemanager/configfolder-categories)."
                }
            ],
            "affected": [
                {
                    "vendor": "n/a",
                    "product": "unisharp/laravel-filemanager",
                    "versions": [
                        {
                            "version": "0.0.0",
                            "status": "affected",
                            "lessThan": "unspecified",
                            "versionType": "custom"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199"
                },
                {
                    "url": "https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26"
                },
                {
                    "url": "https://github.com/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Huy Nguyen"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "LOW",
                        "userInteraction": "REQUIRED",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "LOW",
                        "baseScore": 6.7,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "text",
                            "lang": "en",
                            "description": "Arbitrary File Upload"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T19:14:08.890Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://snyk.io/vuln/SNYK-PHP-UNISHARPLARAVELFILEMANAGER-1567199",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/UniSharp/laravel-filemanager/blob/master/src/Controllers/UploadController.php%23L26",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/UniSharp/laravel-filemanager/issues/1113#issuecomment-1812092975",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}