CVE-2024-24574 phpMyFAQ vulnerable to stored XSS on attachments filename

Medium 6.5 Published Updated

An attacker can execute arbitrary JavaScript in the victim's browser via a malicious attachment filename in phpMyFAQ.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-24574?

CVE-2024-24574 is a medium-severity cross-site scripting vulnerability in Phpmyfaq Phpmyfaq, published on 5 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Unsafe echo of filename in phpMyFAQ\phpmyfaq\admin\attachments.php leads to allowed execution of JavaScript code in client side (XSS). This vulnerability has been patched in version 3.2.5.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2024-24574?

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

PackageAffectedFixed in
phpmyfaq/phpmyfaq PackagistAll versions3.2.5
phpmyfaq/phpmyfaq PackagistAll versions3.2.5

Products include Phpmyfaq Phpmyfaq.

How do I fix CVE-2024-24574?

Upgrade phpmyfaq/phpmyfaq to 3.2.5 or later.

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-24574 being exploited?

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

All Phpmyfaq Phpmyfaq vulnerabilities

Sources

Also known as GHSA-7m8g-fprr-47fx.

Is CVE-2024-24574 in your software?

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

Check your SBOMs for free