{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-2358",
        "assignerOrgId": "c09c270a-b464-47c1-9133-acb35b22c19a",
        "state": "PUBLISHED",
        "assignerShortName": "@huntr_ai",
        "dateReserved": "2024-03-09T22:49:41.242Z",
        "datePublished": "2024-05-16T09:03:45.397Z",
        "dateUpdated": "2024-08-01T19:11:53.476Z"
    },
    "containers": {
        "cna": {
            "title": "Path Traversal leading to Remote Code Execution in parisneo/lollms-webui",
            "providerMetadata": {
                "orgId": "c09c270a-b464-47c1-9133-acb35b22c19a",
                "shortName": "@huntr_ai",
                "dateUpdated": "2024-05-16T09:03:45.397Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A path traversal vulnerability in the '/apply_settings' endpoint of parisneo/lollms-webui allows attackers to execute arbitrary code. The vulnerability arises due to insufficient sanitization of user-supplied input in the configuration settings, specifically within the 'extensions' parameter. Attackers can exploit this by crafting a payload that includes relative path traversal sequences ('../../../'), enabling them to navigate to arbitrary directories. This flaw subsequently allows the server to load and execute a malicious '__init__.py' file, leading to remote code execution. The issue affects the latest version of parisneo/lollms-webui."
                }
            ],
            "affected": [
                {
                    "vendor": "parisneo",
                    "product": "parisneo/lollms-webui",
                    "versions": [
                        {
                            "version": "unspecified",
                            "status": "affected",
                            "versionType": "custom",
                            "lessThanOrEqual": "latest"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://huntr.com/bounties/b2771df3-be50-45bd-93c4-0974ce38bc22"
                }
            ],
            "metrics": [
                {
                    "cvssV3_0": {
                        "version": "3.0",
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 9.8,
                        "baseSeverity": "CRITICAL"
                    }
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "lang": "en",
                            "description": "CWE-29 Path Traversal: '\\..\\filename'",
                            "cweId": "CWE-29"
                        }
                    ]
                }
            ],
            "source": {
                "advisory": "b2771df3-be50-45bd-93c4-0974ce38bc22",
                "discovery": "EXTERNAL"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-2358",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-05-16T15:53:53.050024Z"
                            }
                        }
                    }
                ],
                "affected": [
                    {
                        "cpes": [
                            "cpe:2.3:a:parisneo:lollms-webui:*:*:*:*:*:*:*:*"
                        ],
                        "vendor": "parisneo",
                        "product": "lollms-webui",
                        "versions": [
                            {
                                "status": "affected",
                                "version": "*"
                            }
                        ],
                        "defaultStatus": "unknown"
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:29:16.821Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-01T19:11:53.476Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://huntr.com/bounties/b2771df3-be50-45bd-93c4-0974ce38bc22",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}