CVE-2020-12620 Command injection in n/a
An attacker with write access to the DNS configuration file can inject shell commands to execute arbitrary code and escalate privileges.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2020-12620?
CVE-2020-12620 is a high-severity command injection vulnerability in n/a, published on 30 Jul 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Pi-hole 4.4 allows a user able to write to /etc/pihole/dns-servers.conf to escalate privileges through command injection (shell metacharacters after an IP address).
Weakness: CWE-78
Which versions are affected by CVE-2020-12620?
It affects 1 product.
Products include Pi-Hole Pi-Hole.
How do I fix CVE-2020-12620?
No fix has been published for CVE-2020-12620 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2020-12620 being exploited?
There is no known exploitation of CVE-2020-12620 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2020-8816 Pi-Hole AdminLTE Remote Code Execution
- CVE-2025-34087 Pi-Hole AdminLTE Whitelist (now 'Web Allowlist') Remote Command Execution
- CVE-2026-50130 Pi-hole: Local privilege escalation from `pihole` user to root via `/etc/pihole/logrotate`
- CVE-2020-11108 File upload in n/a
- CVE-2019-13051 Pi-Hole 4.3 allows Command Injection.
Sources
Also known as GHSA-6m9c-h626-jp3r.