Join our Newsletter — 33% off our NHI Course

CVE-2020-5847 (Unraid Remote Code Execution)

CVE-2020-5847 is a remote code execution vulnerability in Unraid Unraid. CISA added it to the Known Exploited Vulnerabilities catalogue on 3 November 2021, which means attackers have used it in real attacks. Unraid contains a vulnerability due to the insecure use of the extract PHP function that can be abused to execute remote code as root.

What this vulnerability means in Unraid

Unraid RCE vulnerabilities matter because the product sits close to core storage, administration, and sometimes backup functions, so successful exploitation can give an attacker immediate control over a highly trusted system. In this case, the issue is dangerous because the flaw is executable code handling, not just a logic bug.

The practical security lesson is that remote code execution in infrastructure software should be treated as a full-system compromise path, especially when the affected service runs with elevated privileges. That is why vulnerability triage for this class of issue should start with exposure, not with the assumption that the bug is merely theoretical.

Why insecure PHP code execution is especially dangerous

An insecure use of PHP extraction or variable handling can let attacker-controlled input overwrite expected program state, which turns a request-processing weakness into code execution. When that execution occurs as root, the impact is immediate privilege collapse, because the attacker does not need to chain a separate local privilege escalation.

This class of flaw is especially risky in management-facing software because the vulnerable path may be reachable through web access, administrative interfaces, or a service endpoint that defenders assume is low risk. Once exploited, the attacker can often modify files, plant web shells, tamper with settings, or use the host as a pivot point.

For vulnerability context and record keeping, readers should verify the official CVE entry in the CVE Program and the public vulnerability record in the NIST National Vulnerability Database.

How organisations assess exposure and reduce blast radius

The first question is whether the vulnerable Unraid system exists anywhere in the environment, including lab boxes, edge appliances, and systems that are not in the normal asset register. Administrators should also check whether the product is exposed to the internet, reachable from partner networks, or protected only by weak perimeter assumptions.

Where patching is delayed, compensating controls should focus on reducing reachability and limiting post-exploitation options. That means restricting administrative access, isolating the host, reviewing service exposure, and ensuring any backup or management plane connected to the system is not sharing the same trust boundary.

For broader vulnerability handling, the Vulnerability Management Guide is useful because it frames exposure discovery, KEV prioritisation, and verification as one workflow rather than separate tasks.

Detection, compromise review, and what to investigate after patching

Because the flaw is remote code execution, defenders should assume that exploitation may leave behind persistence, modified startup scripts, new scheduled tasks, unexpected accounts, or altered binaries. A patched system is not automatically a clean system if the attacker already executed code before remediation.

Post-patch review should include web, system, and authentication logs, along with a file-integrity and configuration check for unexpected changes on the host. If the system stored credentials, API keys, SSH material, or service secrets, those should be treated as potentially exposed and rotated if compromise is suspected.

For defenders who want a practical exploitation-to-detection reference point, the MITRE ATT&CK Enterprise Matrix helps map code execution, persistence, and privilege escalation behaviours to huntable patterns.

Risk and Threat Considerations

This vulnerability is dangerous because it can turn a routine request into full privileged control of a storage or management system. Once an attacker gets root, they can alter data, exfiltrate files, disable logging, or use the box as a foothold for lateral movement.

Failure mechanism: The insecure PHP handling lets attacker-controlled input influence program execution, so the system processes malicious content as trusted server-side code rather than rejecting it.

Impact: The attacker can gain root-level execution on Unraid, which may expose stored data, administrative functions, and any adjacent systems or secrets that the host can reach.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 SI-2 — Flaw Remediation Unraid RCE requires prompt flaw remediation and exposure verification.
AC-6 — Least Privilege Root-level code execution makes privilege minimisation central to limiting blast radius.
AU-6 — Audit Review, Analysis, and Reporting Post-exploitation review depends on analysing logs for access, execution, and persistence clues.
Recommendation — Prioritise SI-2 remediation for the affected host and confirm no exposed instances remain. Reduce standing administrative privilege and isolate the vulnerable system to limit impact. Review audit and system logs for indicators of exploitation and persistence after patching.
CIS Controls v8 CIS-7 — Continuous Vulnerability Management The term is a KEV-listed vulnerability, so prioritised scanning and remediation apply directly.
CIS-4 — Secure Configuration of Enterprise Assets and Software Compensating controls rely on hardening and reducing exposure of the affected system.
CIS-8 — Audit Log Management Detection and compromise review depend on preserving and reviewing logs around exploitation.
Recommendation — Continuously identify and remediate exposed Unraid instances before attackers exploit them. Harden and segment the Unraid host to reduce exploitability while remediation is underway. Collect and review relevant logs to confirm whether the host was compromised and how.

Practitioner Guidance

Why practitioners should care: Treat this as an internet-facing or management-plane compromise risk, not as a narrow application bug. If the host is used for storage, backup, or infrastructure services, a single exploit can have outsized operational impact.

What to watch for: Look for unexpected administrative sessions, new files in web-accessible or startup paths, and changes that do not match normal maintenance windows. If exploitation is suspected, preserve evidence before rebuilding or restoring the system.

Practitioner takeaway: For KEV-listed RCEs, patching is only the start, because exposure assessment, containment, and compromise review are what determine whether the incident is truly over.