Roundcube Webmail
RoundCube Webmail Cross-Site Scripting Vulnerability
A Cross-Site Scripting vulnerability in Roundcube through 1.5.7 and 1.6.x through 1.6.7 allows a remote attacker to steal and send emails of a victim via a crafted e-mail message that abuses a Desanitization issue in message_body() in program/actions/mail/show.php.
Timeline
Days relative to CVE publicationFirst public PoC 191 days after publication; added to CISA KEV 308 days after publication. First PoC: 0xbassiouny1337/CVE-2024-42009 (created 11 Feb 2025, found by us: backfilled).
PoC repositories
Found on GitHub.4 PoCs · 3 suspicious or fake
PoCs 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0xbassiouny1337/CVE-2024-42009 | 11 Feb 2025 +191 d | 4 | PoC |
| Bhanunamikaze/CVE-2024-42009 | 13 Feb 2025 +193 d | 1 | PoC |
| Shubhankargupta691/CVE-2024-42009 | 14 Sep 2025 +1.1 y | 0 | Scanner |
| ZaidArif47/CVE-2024-42009 | 16 Apr 2026 +1.7 y | 1 | PoC |
Suspicious or fake 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| DaniTheHack3r/CVE-2024-42009-PoC | 24 May 2025 +293 d | 8 | Fake |
| Foxer131/CVE-2024-42008-9-exploit | 26 May 2025 +294 d | 0 | Fake |
| segunakinsoyinu/CVE-2024-42009-roundcube-xss | 17 Jun 2026 +1.9 y | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. 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 |
|---|---|---|---|
| nuclei template | nuclei template: Roundcube Webmail - Cross-Site Scripting | 14 Oct 2025 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 4 PoC reposGET /
- Query
_task=login_action=show_user=_task=mail_uid=20_mbox=INBOX_extwin=1x=x=1'><body title='bgcolor=foo' name='bar' style='animation-name:progress-bar-stripes' onanimationstart='alert(origin)'>Foo</body>- Key headers
Accept: */*Accept-Language: enCookie: roundcube_sessid=8bca177c1781f195cefff74839b87e47- Ports
- 8025, 8080
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 13_0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15- Seen in
- 1 repo: Shubhankargupta691/CVE-2024-42009
- Evidence
- Shubhankargupta691/CVE-2024-42009/CVE-2024-42009-OOB & Interactsh.yaml:47 Shubhankargupta691/CVE-2024-42009/CVE-2024-42009-OOB & Interactsh.yaml:107 Shubhankargupta691/CVE-2024-42009/CVE-2024-42009.yaml:44 Shubhankargupta691/CVE-2024-42009/CVE-2024-42009.yaml:57 Shubhankargupta691/CVE-2024-42009/CVE-2024-42009.yaml:77 Shubhankargupta691/CVE-2024-42009/CVE-2024-42009.yaml:97
GET /README
- Ports
- 8025, 8080
- Seen in
- 1 repo: Shubhankargupta691/CVE-2024-42009
- Evidence
- Shubhankargupta691/CVE-2024-42009/CVE-2024-42009-OOB & Interactsh.yaml:106
POST /contact
- Body markers
name=XSS Botemail=attacker@evil.commessage=content=htmlrecipient=THE_ONE_U_WILL_SEND_EMAIL_TOinapplication/x-www-form-urlencoded- Ports
- 4444
- Seen in
- 1 repo: 0xbassiouny1337/CVE-2024-42009
- Evidence
- 0xbassiouny1337/CVE-2024-42009/exploit.py:57
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\?(?:.*&)?_task=login.*_action=show.*_user=.*_task=mail.*_uid=20.*_mbox=INBOX.*_extwin=1.*x=.*x=1'><body title='bgcolor=foo' name='bar' style='animation-name:progress-bar-stripes' onanimationstart='alert\(origin\)'>Foo</body>
(?i)^/README(?:[?#].*)?$
(?i)^/contact(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8025,8080] (msg:"GG PoC-Monitor CVE-2024-42009 Roundcube Webmail exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"_task=login"; http.uri; content:"_action=show"; http.uri; content:"_user="; http.uri; content:"_task=mail"; http.uri; content:"_uid=20"; http.uri; content:"_mbox=INBOX"; http.uri; content:"_extwin=1"; http.uri; content:"x="; http.uri; content:"x=1'><body title='bgcolor=foo' name='bar' style='animation-name:progress-bar-stripes' onanimationstart='alert(origin)'>Foo</body>"; http.header; content:"Accept: */*"; nocase; http.header; content:"Accept-Language: en"; nocase; http.header; content:"Cookie: roundcube_sessid=8bca177c1781f195cefff74839b87e47"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2024-42009; classtype:web-application-attack; sid:9220955; rev:1;)
alert http any any -> $HOME_NET [8025,8080] (msg:"GG PoC-Monitor CVE-2024-42009 Roundcube Webmail exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/README"; reference:url,poc.griffinguard.io/cve/CVE-2024-42009; classtype:web-application-attack; sid:9890617; rev:1;)
alert http any any -> $HOME_NET [4444] (msg:"GG PoC-Monitor CVE-2024-42009 Roundcube Webmail exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/contact"; http.request_body; content:"name=XSS Bot"; http.request_body; content:"email=attacker@evil.com"; http.request_body; content:"message="; http.request_body; content:"content=html"; http.request_body; content:"recipient=THE_ONE_U_WILL_SEND_EMAIL_TO"; reference:url,poc.griffinguard.io/cve/CVE-2024-42009; classtype:web-application-attack; sid:9440675; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Roundcube Webmail exploit attempt (CVE-2024-42009)
id: gg-pocmon-cve-2024-42009-9220955
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-42009. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-42009
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-query|contains|all:
- '_task=login'
- '_action=show'
- '_user='
- '_task=mail'
- '_uid=20'
- '_mbox=INBOX'
- '_extwin=1'
- 'x='
- 'x=1''><body title=''bgcolor=foo'' name=''bar'' style=''animation-name:progress-bar-stripes'' onanimationstart=''alert(origin)''>Foo</body>'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.42009
title: Roundcube Webmail exploit attempt (CVE-2024-42009)
id: gg-pocmon-cve-2024-42009-9890617
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-42009. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-42009
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/README'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.42009
title: Roundcube Webmail exploit attempt (CVE-2024-42009)
id: gg-pocmon-cve-2024-42009-9440675
status: experimental
description: Request pattern taken from public PoCs for CVE-2024-42009. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2024-42009
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/contact'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2024.42009