CVE-2024-55342 Piranha CMS Cross-site Scripting vulnerability

Medium 4.7 Published Updated

Authenticated attackers can upload malicious PDFs to trigger XSS in victim browsers, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-55342?

CVE-2024-55342 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A file upload functionality in Piranha CMS 11.1 allows authenticated remote attackers to upload a crafted PDF file to /manager/media. This PDF can contain malicious JavaScript code, which is executed when a victim user opens or interacts with the PDF in their web browser, leading to a XSS vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2024-55342?

2 open source packages ship an affected version, including Piranha. It affects 1 product.

PackageAffectedFixed in
Piranha NuGetAll versions to 11.1.0None
Piranha NuGetAll versions to 11.1.0None

Products include Dotnetfoundation Piranha Cms.

How do I fix CVE-2024-55342?

No fix has been published for CVE-2024-55342 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-55342 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-55342 exists.

Sources

Also known as GHSA-cmwp-442x-3rcv.

Is CVE-2024-55342 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free