CVE-2024-2001 Cross-Site Scripting vulnerability in Cockpit CMS
An authenticated user can upload a malicious PDF to execute JavaScript, potentially compromising other users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-2001?
CVE-2024-2001 is a medium-severity cross-site scripting vulnerability in Cockpit CMS, published on 29 Feb 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A Cross-Site Scripting vulnerability in Cockpit CMS affecting version 2.7.0. This vulnerability could allow an authenticated user to upload an infected PDF file and store a malicious JavaScript payload to be executed when the file is uploaded.
Weakness: CWE-79
Which versions are affected by CVE-2024-2001?
2 open source packages ship an affected version, including cockpit-hq/cockpit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
cockpit-hq/cockpit Packagist | All versions | None |
cockpit-hq/cockpit Packagist | All versions | None |
Products include Agentejo Cockpit.
How do I fix CVE-2024-2001?
No fix has been published for CVE-2024-2001 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-2001 being exploited?
There is no known exploitation of CVE-2024-2001 in the wild and no public exploit code.
Other vulnerabilities in Cockpit CMS
- CVE-2023-4195 PHP Remote File Inclusion in cockpit-hq/cockpit
- CVE-2024-4825 Unrestricted Upload of File with Dangerous Type vulnerability on Cockpit CMS from Agentejo
- CVE-2022-2818 Improper Removal of Sensitive Information Before Storage or Transfer in cockpit-hq/cockpit
- CVE-2020-35131 Code injection in n/a
- CVE-2020-35846 SQL injection in n/a
Sources
Also known as GHSA-q76r-7p4q-mqpw.