CVE-2021-38586 Path traversal in n/a
An attacker can exploit unsafe file operations in cPanel's cpan_config script to read or modify arbitrary files on the server.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-38586?
CVE-2021-38586 is a medium-severity path traversal vulnerability in Cpanel Cpanel, published on 11 Aug 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In cPanel before 98.0.1, /scripts/cpan_config performs unsafe operations on files (SEC-589).
Which versions are affected by CVE-2021-38586?
It affects 1 product.
Products include Cpanel Cpanel.
How do I fix CVE-2021-38586?
No fix has been published for CVE-2021-38586 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-38586 being exploited?
There is no known exploitation of CVE-2021-38586 in the wild and no public exploit code.
Other vulnerabilities in Cpanel Cpanel
- CVE-2026-41940 WebPros cPanel & WHM and WP2 (WordPress Squared) Missing Authentication for Critical Function
- CVE-2003-1425 guestbook.cgi in cPanel 5.0 allows remote attackers to execute arbitrary commands via the template parameter.
- CVE-2004-1769 Code injection in n/a
- CVE-2004-1770 Command injection in n/a
- CVE-2020-26098 Command injection in n/a
Sources
Also known as GHSA-p52w-q884-qjqv.