cPanel CalDAV daemon lets unauthenticated attackers read any file as root
An unauthenticated attacker can read arbitrary files as root on cPanel servers by exploiting a pre-authentication path traversal in the CalDAV daemon combined with Dovecot email directory creation.
Security & privacy Assetnote / Searchlight 18 May 2026 Disclosure Real-world evidence
Published as “cPanel Pre-Auth File Read as Root: CVE-2026-29205”
Why it matters
An unauthenticated attacker can obtain full read access to any file on a vulnerable cPanel server, potentially leading to complete system compromise.
Summary
The researchers decompiled cPanel binaries to Perl and used AI models to find a pre-auth path traversal in the CalDAV daemon (cpdavd) that reads files as root. The traversal relies on encoded slashes bypassing a regex, and privileges are restored to root before the file read occurs. By sending an email to a known virtual user with a +alias, Dovecot creates a directory whose name satisfies the regex, enabling the exploit. In a test of 200 hosts, they achieved 20 successful reads, about a 10% hit rate, and released a scanner tool for detection.
What they found 2
- Pre-auth path traversal in cpdavd allows reading any file as root
“The CalDAV daemon (cpdavd) contains a pre-authentication path traversal that allows reading any file on the filesystem as root.”
- 10% success rate on 200 surveyed cPanel hosts with open cpdavd ports
“Within our customer environments, out of a sample size of 200 cPanel hosts with the cpdavd ports open, we had about 20 successful hits when trying common email usernames.”
Caveats 5
- The exploit requires knowing a valid virtual email address on the target and the cpdavd ports (2079/2080) to be exposed.
- Success rate is low (about 10%) when spraying common usernames, making the attack unreliable in the wild.
- The attack only works if the attacker knows a valid email address registered as a virtual user.
- Ports 2079/2080 must be reachable; exploitation via standard HTTP/HTTPS ports fails due to URL normalization.
- No reliable method to enumerate virtual users was found, limiting practical exploitation.
What’s new here 4
- Identifies a pre-authentication arbitrary file read vulnerability in cPanel's CalDAV daemon.
- Shows how Dovecot email alias handling can be leveraged to satisfy the required path pattern.
- Provides real-world success metrics (20/200 hosts) and discusses practical constraints.
- Releases an open-source scanner (cPanel2shell-scanner) to detect the issue.