SecurityContext

CVE-2024-6581: Lollms - Stored XSS

  • Cve: CVE-2024-6581
  • Name: Lollms - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary scripts in users' browsers, potentially leading to remote code execution or session hijacking.
  • Remediation: Enhance the sanitize_svg function to comprehensively filter all potential XSS vectors in SVG files, and consider updating to a newer version if available.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Authorized users must access malicious URL containing crafted SVG
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.00654
  • Epss percentile: 0.52283
  • Assignee: [email protected]
  • Published at: 2024-10-29T13:15:07Z
  • Age in days: 756
  • Modified at: 2026-06-17T08:18:17Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-6581
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7nvd2024-10-29

References

UrlSourceTags
https://github.com/parisneo/lollms/commit/328b960a0de2097e13654ac752253e9541521dddnvdPatch
https://huntr.com/bounties/ad68ecd6-44e2-449b-8e7e-f2b71b1b43c7nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
lollms:lord_of_large_language_models= 9.9nonvd/v1/products/lollms/lord_of_large_language_models

Projects

RepositoryLink kindsIndexedUrl
ParisNeo/lollmscommit, packageyes/v1/repositories/ParisNeo/lollms

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-10-29
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts