CVE DatabaseCVE-2021-20123
한국어 권고문 →
CVE-2021-201237.5/HIGHCISA KEVCWE-22CWE-22

DrayTek VigorConnect Arbitrary File Download and Local File Inclusion (LFI) Vulnerability (CVE-2021-20123) Security Advisory

⚡ Jump to Patch
Affected Vendors
draytek
Affected Components
vigorconnect
Published Date
2021-10-13
CVSS v3.1
7.5
HIGH
EPSS (30d)
89.6%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

DrayTek VigorConnect version 1.6.0-B3 and prior

Impact

Unauthenticated remote attackers can download arbitrary system files with root privileges, leading to full exposure of sensitive host operating system data

Mitigation

Immediately upgrade VigorConnect to the latest secure version and restrict access to the management interface from the public internet

Affected Products & Version Scope

DrayTek VigorConnect version 1.6.0-B3 and earlier

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Apply the official security patch by upgrading VigorConnect to the latest secure version. Use the following commands to update the service on a Linux host:

bash
# Stop the VigorConnect service
sudo systemctl stop vigorconnect.service

# Download and install the latest secure package (example for Debian/Ubuntu)
wget https://www.draytek.com/ftp/VigorConnect/v1.6.1/vigorconnect_1.6.1_amd64.deb
sudo dpkg -i vigorconnect_1.6.1_amd64.deb

# Restart and verify the service status
sudo systemctl start vigorconnect.service
sudo systemctl status vigorconnect.service

2. Temporary Workaround & Hardening Configuration

If patching cannot be applied immediately, restrict access to the VigorConnect management port (e.g., 8443) using firewall rules to allow only trusted IP addresses or VPN ranges.

bash
# Block public access to VigorConnect port and allow only trusted admin subnet (e.g., 192.168.10.0/24)
sudo iptables -A INPUT -p tcp -s 192.168.10.0/24 --dport 8443 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8443 -j DROP

# Save the iptables configuration
sudo iptables-save | sudo tee /etc/iptables/rules.v4

3. Log Audit & IoC Verification Commands

Inspect the VigorConnect access logs for directory traversal patterns targeting the DownloadFileServlet endpoint.

bash
# Search for LFI and directory traversal attempts in VigorConnect logs
grep -Ei 'DownloadFileServlet.*(\.\./|%2e%2e%2f|%2e%2e%252f)' /var/log/vigorconnect/*.log

# Check for unauthorized access attempts to sensitive system files
grep -i 'passwd' /var/log/vigorconnect/*.log
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
As this vulnerability is listed in the CISA KEV catalog and actively exploited, immediately upgrade DrayTek VigorConnect to the latest patched version.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

A critical Local File Inclusion (LFI) and Directory Traversal vulnerability (CWE-22) exists in the DownloadFileServlet endpoint of DrayTek VigorConnect. The root cause lies in the insufficient validation and sanitization of user-supplied input parameters within the file download functionality. This allows an attacker to manipulate file paths using directory traversal sequences (e.g., ../), escaping the intended web root directory.

2. Exploitation Mechanics & Attack Scenario

An unauthenticated attacker can exploit this vulnerability by sending a crafted HTTP GET request directly to the DownloadFileServlet endpoint. Because the VigorConnect application runs with elevated privileges (root), the servlet retrieves and returns any file specified by the attacker from the underlying operating system. This enables the retrieval of highly sensitive files, such as /etc/passwd, application configuration files, and database credentials.

3. Infrastructure & Business Impact

This vulnerability is highly critical and is actively exploited in the wild, as evidenced by its inclusion in the CISA Known Exploited Vulnerabilities (KEV) catalog. With an EPSS score of 0.8965, the likelihood of exploitation attempts is extremely high. Successful exploitation can lead to credential theft, enabling attackers to perform lateral movement and compromise the entire network infrastructure.

Official Vendor Advisories & References

NVD Original English Description

A local file inclusion vulnerability exists in Draytek VigorConnect 1.6.0-B3 in the file download functionality of the DownloadFileServlet endpoint. An unauthenticated attacker could leverage this vulnerability to download arbitrary files from the underlying operating system with root privileges.

Frequently Asked SecOps Questions (CVE-2021-20123)

FAQ

Q1. How critical is CVE-2021-20123 and is it actively exploited in the wild?

CVE-2021-20123 is rated CVSS 7.5 (HIGH) with a 30-day EPSS exploitation probability of 89.6%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2021-20123?

Primary impacted vendors include draytek across vigorconnect. Scope summary: DrayTek VigorConnect version 1.6.0-B3 and earlier

Q3. What temporary mitigations or workarounds exist for CVE-2021-20123 before patching?

[Mitigation] Immediately upgrade VigorConnect to the latest secure version and restrict access to the management interface from the public internet Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2021-20123

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (draytek)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2021-20123 DrayTek VigorConnect Arbitrary File Download and Local File Inclusion (LFI) Vulnerability (CVE-2021-20123) Security Advisory (CVSS 7.5) - Patch & Workaround | CVE Pulse