{"id":"CVE-2024-6581","state":"PUBLISHED","title":"Remote Code Execution due to Stored XSS in parisneo/lollms","description":"A vulnerability in the discussion image upload function of the Lollms application, version v9.9, allows for the uploading of SVG files. Due to incomplete filtering in the sanitize_svg function, this can lead to cross-site scripting (XSS) vulnerabilities, which in turn pose a risk of remote code execution. The sanitize_svg function only removes script elements and 'on*' event attributes, but does not account for other potential vectors for XSS within SVG files. This vulnerability can be exploited when authorized users access a malicious URL containing the crafted SVG file.","publishedAt":"2024-10-29T12:49:01.555Z","updatedAt":"2024-10-29T13:24:02.586Z","severity":{"score":6.5,"label":"Medium","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["parisneo parisneo/lollms"],"affected":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[{"version":"unspecified","status":"affected","lessThan":"9.9","versionType":"custom"}]}],"references":["https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7","https://github.com/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521ddd"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/6xxx/CVE-2024-6581.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-6581","state":"PUBLISHED","datePublished":"2024-10-29T12:49:01.555Z","dateUpdated":"2024-10-29T13:24:02.586Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-07-08T20:40:49.499Z"},"containers":{"cna":{"title":"Remote Code Execution due to Stored XSS in parisneo/lollms","descriptions":[{"lang":"en","value":"A vulnerability in the discussion image upload function of the Lollms application, version v9.9, allows for the uploading of SVG files. Due to incomplete filtering in the sanitize_svg function, this can lead to cross-site scripting (XSS) vulnerabilities, which in turn pose a risk of remote code execution. The sanitize_svg function only removes script elements and 'on*' event attributes, but does not account for other potential vectors for XSS within SVG files. This vulnerability can be exploited when authorized users access a malicious URL containing the crafted SVG file."}],"affected":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[{"version":"unspecified","status":"affected","lessThan":"9.9","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7"},{"url":"https://github.com/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521ddd"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","baseScore":6.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","type":"CWE","lang":"en","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2024-10-29T12:49:01.555Z"},"source":{"advisory":"ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"parisneo","product":"lollms","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"9.9","versionType":"custom"}],"cpes":["cpe:2.3:a:parisneo:lollms:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-29T13:17:31.015025Z","id":"CVE-2024-6581","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-29T13:24:02.586Z"}}]}}}