Adobe Commerce
XXE can expose crypt key and other secrets granting full admin access
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 and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.4.6-p1, < 2.4.6-p6
Fixed in 2.4.6-p6
from GitHub Security Advisory GHSA-m8cj-3v68-3cxj
- >= 2.4.5-p1, < 2.4.5-p8
Fixed in 2.4.5-p8
from GitHub Security Advisory GHSA-m8cj-3v68-3cxj
- < 2.4.4-p9
Fixed in 2.4.4-p9
from GitHub Security Advisory GHSA-m8cj-3v68-3cxj
Mitigation
Upgrade magento/community-edition to 2.4.6-p6 or later.
Upgrade magento/community-edition to 2.4.5-p8 or later.
Upgrade magento/community-edition to 2.4.4-p9 or later.
Timeline
Days relative to CVE publicationFirst public PoC 12 days after publication; added to CISA KEV 34 days after publication. First PoC: nuclei template: Adobe Commerce & Magento - CosmicSting (nuclei template, 25 Jun 2024).
PoC repositories
Found on GitHub.14 PoCs · 12 pending · 6 informational · 2 not a PoC · 2 suspicious or fake
PoCs 14
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| th3gokul/CVE-2024-34102 | 27 Jun 2024 +14 d | 14 | PoC |
| bigb0x/CVE-2024-34102 | 27 Jun 2024 +15 d | 31 | PoC |
| 11whoami99/CVE-2024-34102 | 28 Jun 2024 +15 d | 3 | PoC via PoC Index |
| d0rb/CVE-2024-34102 | 28 Jun 2024 +15 d | 0 | PoC |
| Chocapikk/CVE-2024-34102 | 28 Jun 2024 +16 d | 48 | PoC |
| 0x0d3ad/CVE-2024-34102 | 30 Jun 2024 +17 d | 2 | PoC |
| jakabakos/CVE-2024-34102-CosmicSting-XXE-in-Adobe-Commerce-and-Magento | 1 Jul 2024 +18 d | 8 | PoC |
| bughuntar/CVE-2024-34102 | 13 Jul 2024 +30 d | 5 | PoC |
| dream434/CVE-2024-34102 | 19 Aug 2024 +67 d | 0 | PoC |
| bka/magento-cve-2024-34102-exploit-cosmicstring | 8 Oct 2024 +117 d | 0 | PoC |
| mksundaram69/CVE-2024-34102 | 7 Jan 2025 +208 d | 0 | PoC |
| Kento-Sec/CVE-2024-34102 | 14 Aug 2025 +1.2 y | 0 | PoC |
| nmmorette/CVE-2024-34102 | 13 Feb 2026 +1.7 y | 1 | PoC |
| russellwork2021-lgtm/cosmicsting-cve-2024-34102-exploit | 25 May 2026 +1.9 y | 0 | PoC |
Pending 12
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Koray123-debug/CVE-2024-34102 | 6 Apr 2025 +297 d | backfilled | 0 | Pending · repository exceeds size limit via PoC Index
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| bigcartenergy/module-cosmicsting-patch | 7 Nov 2026 +2.4 y | 14 Nov 2026 | 0 | Pending
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| 0xhunster/CVE-2024-34102 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| 1mpl3ment3d/CVE-2024-34102-RCE-POC | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| Ex-Arn/CVE-2024-34102-RCE | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| bughuntar/CVE-2024-34102-Python | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| cmsec423/CVE-2024-34102 | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) via PoC Index · not checked yet |
| dr3u1d/CVE-2024-34102-RCE | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| etx-Arn/CVE-2024-34102-RCE | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| etx-Arn/CVE-2024-34102-RCE-PoC | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| ex-ARnX/CVE-2024-34102-PoC | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
| ex-arny/CVE-2024-34102-RCE | unknown | backfilled | 0 | Pending · repository unavailable (HTTP 404) |
Informational 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ArturArz1/TestCVE-2024-34102 | 27 Jun 2024 +14 d | 0 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| SamJUK/cosmicsting-validator | 7 Jul 2024 +25 d | 0 | Informational · detection |
| unknownzerobit/poc | 8 Jul 2024 +25 d | 0 | Informational · write-up |
| crynomore/CVE-2024-34102 | 11 Jul 2024 +28 d | 0 | Informational · write-up |
| Phantom-IN/CVE-2024-34102 | 14 Jul 2024 +31 d | 1 | Informational · write-up |
| wubinworks/magento2-cosmic-sting-patch | 8 Aug 2024 +56 d | 1 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Not a PoC 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| RevoltSecurities/CVE-2024-36401 | 5 Jul 2024 +22 d | 1 | Not a PoC · unrelated |
| wubinworks/magento2-encryption-key-manager-cli | 4 Dec 2024 +174 d | 0 | Not a PoC · unrelated
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| EQSTLab/CVE-2024-34102 | 13 Aug 2024 +61 d | 5 | Fake |
| EQSTSeminar/CVE-2024-34102 | 13 Aug 2024 +61 d | 5 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit auxiliary: Magento XXE Unserialize Arbitrary File Read (auxiliary/gather/magento_xxe_cve_2024_34102) | 17 Jul 2024 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: CosmicSting: Magento Arbitrary File Read (CVE-2024-34102) + PHP Buffer Overflow in the iconv() function of glibc (CVE-2024-2961) (exploit/linux/http/magento_xxe_to_glibc_buf_overflow) | 9 Oct 2024 | 14 Nov 2026 |
| nuclei template | nuclei template: Adobe Commerce & Magento - CosmicSting | 25 Jun 2024 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 16 PoC reposPOST /rest/V1/guest-carts/1/estimate-shipping-methods
- Key headers
Accept: application/json, text/javascript, */*; q=0.01Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7- Body markers
"address""totalsCollector""collectorList""totalCollector""sourceData""data":"http://YOUR-webhook""dataIsURL""options""data"inapplication/json- Ports
- 8000
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36- Seen in
- 5 repos: 11whoami99/CVE-2024-34102, Kento-Sec/CVE-2024-34102, bughuntar/CVE-2024-34102, dream434/CVE-2024-34102, nmmorette/CVE-2024-34102
- Evidence
- 11whoami99/CVE-2024-34102/README.md:6 Kento-Sec/CVE-2024-34102/README.md:46 bughuntar/CVE-2024-34102/README.md:46 dream434/CVE-2024-34102/exploit.py:42 dream434/CVE-2024-34102/massExploit.py:43 nmmorette/CVE-2024-34102/exploit.py:141
POST /rest/all/V1/guest-carts/test-assetnote/estimate-shipping-methods
- Key headers
Accept: application/json, text/javascript, */*; q=0.01X-Requested-With: XMLHttpRequest- Body markers
"address"inapplication/json- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36- Seen in
- 5 repos: 0x0d3ad/CVE-2024-34102, bigb0x/CVE-2024-34102, d0rb/CVE-2024-34102, jakabakos/CVE-2024-34102-CosmicSting-XXE-in-Adobe-Commerce-and-Magento, mksundaram69/CVE-2024-34102
- Evidence
- 0x0d3ad/CVE-2024-34102/CVE-2024-34102.py:103 bigb0x/CVE-2024-34102/cve-2024-34102.py:168 d0rb/CVE-2024-34102/PoC.py:34 jakabakos/CVE-2024-34102-CosmicSting-XXE-in-Adobe-Commerce-and-Magento/detect.py:117 jakabakos/CVE-2024-34102-CosmicSting-XXE-in-Adobe-Commerce-and-Magento/exploit.py:117 mksundaram69/CVE-2024-34102/PoC.py:34
POST /ssrf/api/instance
- Key headers
Orgin: https://ssrf.cvssadvisor.comReferer: https://ssrf.cvssadvisor.com/- Body markers
"address"inapplication/json- PoC User-Agent
Mozilla/5.0- Seen in
- 5 repos: Chocapikk/CVE-2024-34102, Kento-Sec/CVE-2024-34102, bughuntar/CVE-2024-34102, russellwork2021-lgtm/cosmicsting-cve-2024-34102-exploit, th3gokul/CVE-2024-34102
- Evidence
- Chocapikk/CVE-2024-34102/exploit.py:61 Chocapikk/CVE-2024-34102/exploit.py:124 Kento-Sec/CVE-2024-34102/cosmic_sting.go:97 Kento-Sec/CVE-2024-34102/cosmic_sting.go:223 bughuntar/CVE-2024-34102/cosmic_sting.go:97 bughuntar/CVE-2024-34102/cosmic_sting.go:223
DELETE /ssrf/api/instance
- Key headers
Orgin: https://ssrf.cvssadvisor.comReferer: https://ssrf.cvssadvisor.com/- Content-Type
application/json- Seen in
- 4 repos: Chocapikk/CVE-2024-34102, Kento-Sec/CVE-2024-34102, bughuntar/CVE-2024-34102, th3gokul/CVE-2024-34102
- Evidence
- Chocapikk/CVE-2024-34102/exploit.py:91 Chocapikk/CVE-2024-34102/exploit.py:100 Kento-Sec/CVE-2024-34102/cosmic_sting.go:163 Kento-Sec/CVE-2024-34102/cosmic_sting.go:183 bughuntar/CVE-2024-34102/cosmic_sting.go:163 bughuntar/CVE-2024-34102/cosmic_sting.go:183
GET /ssrf/api/instance
- Key headers
Orgin: https://ssrf.cvssadvisor.comReferer: https://ssrf.cvssadvisor.com/- Content-Type
application/json- Seen in
- 4 repos: Chocapikk/CVE-2024-34102, Kento-Sec/CVE-2024-34102, bughuntar/CVE-2024-34102, th3gokul/CVE-2024-34102
- Evidence
- Chocapikk/CVE-2024-34102/exploit.py:72 Kento-Sec/CVE-2024-34102/cosmic_sting.go:123 bughuntar/CVE-2024-34102/cosmic_sting.go:123 th3gokul/CVE-2024-34102/cvehunter.py:118
POST /
- Body markers
name="c"inmultipart/form-data- Ports
- 8000
- Seen in
- 3 repos: Chocapikk/CVE-2024-34102, nmmorette/CVE-2024-34102, russellwork2021-lgtm/cosmicsting-cve-2024-34102-exploit
- Evidence
- Chocapikk/CVE-2024-34102/exploit.py:42 nmmorette/CVE-2024-34102/exploit.py:85 russellwork2021-lgtm/cosmicsting-cve-2024-34102-exploit/cosmicsting-cve-2024-34102.py:105
DELETE /ssrf/api/instance/{var}
DELETE /ssrf/api/instance/{var}/clear
GET /index.php/rest/all/V1/customers/search
- Query
searchCriteria[pageSize]=10- Key headers
Accept: application/jsonAuthorization: Bearer BEARER- Seen in
- 1 repo: bka/magento-cve-2024-34102-exploit-cosmicstring
- Evidence
- bka/magento-cve-2024-34102-exploit-cosmicstring/cve-2024-34102-exploit/README.md:28
GET /ssrf/api/instance/{var}
POST /index.php/rest/all/V1/guest-carts/NYBIS4mVkwS1Fv6SyQZGuHjbcAbSqnDP/estimate-shipping-methods
- Key headers
Accept: application/jsonCookie: XDEBUG_SESSION=XDEBUG_ECLIPSE;- Content-Type
application/json- Seen in
- 1 repo: bka/magento-cve-2024-34102-exploit-cosmicstring
- Evidence
- bka/magento-cve-2024-34102-exploit-cosmicstring/cve-2024-34102-exploit/README.md:9
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/rest/V1/guest-carts/1/estimate-shipping-methods(?:[?#].*)?$
(?i)^/rest/all/V1/guest-carts/test-assetnote/estimate-shipping-methods(?:[?#].*)?$
(?i)^/ssrf/api/instance(?:[?#].*)?$
(?i)^/ssrf/api/instance(?:[?#].*)?$
(?i)^/ssrf/api/instance(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2024-34102 Adobe Adobe Commerce exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/V1/guest-carts/1/estimate-shipping-methods"; http.header; content:"Accept: application/json, text/javascript, */*|3b| q=0.01"; nocase; http.header; content:"Accept: text/html,application/xhtml+xml,application/xml|3b|q=0.9,image/avif,image/webp,image/apng,*/*|3b|q=0.8,application/signed-exchange|3b|v=b3|3b|q=0.7"; nocase; http.request_body; content:"|22|address|22|"; http.request_body; content:"|22|totalsCollector|22|"; http.request_body; content:"|22|collectorList|22|"; http.request_body; content:"|22|totalCollector|22|"; http.request_body; content:"|22|sourceData|22|"; http.request_body; content:"|22|data|22|:|22|http://YOUR-webhook|22|"; http.request_body; content:"|22|dataIsURL|22|"; http.request_body; content:"|22|options|22|"; http.request_body; content:"|22|data|22|"; reference:url,poc.griffinguard.io/cve/CVE-2024-34102; classtype:web-application-attack; sid:9742042; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-34102 Adobe Adobe Commerce exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/rest/all/V1/guest-carts/test-assetnote/estimate-shipping-methods"; http.header; content:"Accept: application/json, text/javascript, */*|3b| q=0.01"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"|22|address|22|"; reference:url,poc.griffinguard.io/cve/CVE-2024-34102; classtype:web-application-attack; sid:9188556; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-34102 Adobe Adobe Commerce exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/ssrf/api/instance"; http.header; content:"Orgin: https://ssrf.cvssadvisor.com"; nocase; http.header; content:"Referer: https://ssrf.cvssadvisor.com/"; nocase; http.request_body; content:"|22|address|22|"; reference:url,poc.griffinguard.io/cve/CVE-2024-34102; classtype:web-application-attack; sid:9292695; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-34102 Adobe Adobe Commerce exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/ssrf/api/instance"; http.header; content:"Orgin: https://ssrf.cvssadvisor.com"; nocase; http.header; content:"Referer: https://ssrf.cvssadvisor.com/"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2024-34102; classtype:web-application-attack; sid:9099196; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2024-34102 Adobe Adobe Commerce exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/ssrf/api/instance"; http.header; content:"Orgin: https://ssrf.cvssadvisor.com"; nocase; http.header; content:"Referer: https://ssrf.cvssadvisor.com/"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2024-34102; classtype:web-application-attack; sid:9435559; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Adobe Adobe Commerce exploit attempt (CVE-2024-34102)
id: gg-pocmon-cve-2024-34102-9742042
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-34102. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-34102
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rest/V1/guest-carts/1/estimate-shipping-methods'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.34102
title: Adobe Adobe Commerce exploit attempt (CVE-2024-34102)
id: gg-pocmon-cve-2024-34102-9188556
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-34102. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-34102
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/rest/all/V1/guest-carts/test-assetnote/estimate-shipping-methods'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.34102
title: Adobe Adobe Commerce exploit attempt (CVE-2024-34102)
id: gg-pocmon-cve-2024-34102-9292695
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-34102. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-34102
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/ssrf/api/instance'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.34102
title: Adobe Adobe Commerce exploit attempt (CVE-2024-34102)
id: gg-pocmon-cve-2024-34102-9099196
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-34102. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-34102
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/ssrf/api/instance'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.34102
title: Adobe Adobe Commerce exploit attempt (CVE-2024-34102)
id: gg-pocmon-cve-2024-34102-9435559
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-34102. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-34102
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/ssrf/api/instance'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.34102