GHSA-m8cj-3v68-3cxj BIT-magento-2024-34102 CVE-2024-34102
Magento Open Source affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability
- Severity
- 9.8 / 10
- Critical · CVSS 3.1
- Exploit chance (EPSS)
- 99.99%
- Chance of exploitation in the next 30 days. Higher than 99.99% of scored vulnerabilities.
- Known exploited
- Yes
- In CISA's catalog since Jul 17, 2024
- Weakness
- CWE-611 Improper Restriction of XML External Entity Reference
- Fix
2.4.6-p6- Upgrade magento/community-edition to this version or later
Description
Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Restriction of XML External Entity Reference ('XXE') vulnerability that could result in arbitrary code execution. An attacker could exploit this vulnerability by sending a crafted XML document that references external entities. Exploitation of this issue does not require user interaction.
Affected versions
Packagist
| Package | Vulnerable | Fixed in |
|---|---|---|
| magento/community-edition | 1 listed versions | No fix yet |
| magento/community-edition | >= 2.4.6-p1, < 2.4.6-p6 |
2.4.6-p6 |
| magento/community-edition | >= 2.4.5-p1, < 2.4.5-p8 |
2.4.5-p8 |
| magento/community-edition | < 2.4.4-p9 |
2.4.4-p9 |
| magento/community-edition | 1 listed versions | No fix yet |
| magento/community-edition | 1 listed versions | No fix yet |
| magento/community-edition | 1 listed versions | No fix yet |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
magento/community-edition Packagist → 2.4.6-p6
- composer
composer require magento/community-edition:^2.4.6-p6
Severity breakdown
CVSS 3.1 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Weakness
CWE-611: Improper Restriction of XML External Entity Reference
The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.
How to prevent it
- Implementation, System Configuration: Many XML parsers and validators can be configured to disable external entity expansion.
References
Advisories
Packages
Other links
- github.com/magento/magento2/commit/30877fce83b793f71421c47347885cf076e81799
- github.com/magento/magento2/commit/a3c6d6e5e95e63031e4df26cfcf76feace7549c2
- github.com/magento/magento2/commit/c5c538810b87449886f4669cb8abbe8e5593c83c
- github.com/magento/magento2/commit/d10435b11ada4e502dca7539f8fd31d059d3c482
- github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-communi…
- helpx.adobe.com/security/products/magento/apsb24-40.html
- vicarius.io/vsociety/posts/cosmicsting-critical-unauthenticated-xxe-vulnerabilit…
Timeline
- Published
- Added to CISA's Known Exploited Vulnerabilities catalog
- Remediation due for U.S. federal agencies
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-wh92-6q6g-px7j Magento Community Edition Improper Input Validation vulnerability | Critical Known exploited | Also affects magento/community-edition |
| GHSA-f8fv-f786-9933 Magento improper input validation vulnerability | Critical Known exploited | Also affects magento/community-edition |
| GHSA-qvwr-p3hj-j6jf Magento vulnerable to privilege escalation due to incorrect authorization | Medium | Also affects magento/community-edition |
| GHSA-pcrx-r49h-x2w5 Magento vulnerable to stored Cross-Site Scripting (XSS) | Medium | Also affects magento/community-edition |
| GHSA-r355-75hw-r8jf Magento allows incorrect authorization | Medium | Also affects magento/community-edition |
| GHSA-2768-5wmv-cfff Magento vulnerable to stored Cross-Site Scripting (XSS) | High | Also affects magento/community-edition |
| GHSA-69x9-xp2j-w8g8 Magento provides incorrect authorization through a security feature bypass | High | Also affects magento/community-edition |
| GHSA-h4f4-gv6h-x824 Magento vulnerable to path traversal | Medium | Also affects magento/community-edition |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor