CVE-2024-34105 Stored Cross Site Scripting in Order Comment

Medium 4.8 Published Updated

An admin attacker can inject malicious scripts into order comments, leading to code execution in victim browsers.

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

What is CVE-2024-34105?

CVE-2024-34105 is a medium-severity cross-site scripting vulnerability in Adobe Commerce, published on 13 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by an admin attacker to inject malicious scripts into vulnerable form fields. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field.

Weakness: CWE-79

Which versions are affected by CVE-2024-34105?

9 open source packages ship an affected version, including magento/community-edition and magento. It affects 3 products.

PackageAffectedFixed in
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versionsNone
magento/community-edition PackagistAll versions2.4.4-p9
magento/community-edition PackagistAll versions2.4.4-p9
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p8
magento/community-edition PackagistFrom 2.4.5-p12.4.5-p8
3 more packages
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p6
magento/community-edition PackagistFrom 2.4.6-p12.4.6-p6
magento BitnamiFrom 2.4.7-alpha02.4.7-p1, 2.4.6-p6, 2.4.5-p8, 2.4.4-p9

Products include Adobe Commerce, Adobe Commerce Webhooks, Adobe Magento.

How do I fix CVE-2024-34105?

Upgrade magento/community-edition to a fixed version for your release line: 2.4.4-p9, 2.4.5-p8 or 2.4.6-p6.

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

There is no known exploitation of CVE-2024-34105 in the wild and no public exploit code.

All Adobe Commerce vulnerabilities

Sources

Also known as BIT-magento-2024-34105, GHSA-5632-wq7m-gfq9.

Is CVE-2024-34105 in your software?

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

Check your SBOMs for free