CVE-2021-46671
Medium · 5.3CVSS
5.3
EPSS
1.3%
Published
Feb 4, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older file transfer tool can let outsiders quietly steal a list of user groups from the server without needing any password.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in options.c allows a remote client to retrieve contents of the server-side /etc/group file via crafted TFTP option requests.
Why it matters to the business
Attackers can obtain sensitive group account information from exposed atftp servers without authentication, increasing the risk of targeted follow-on attacks.
How an attack unfolds
An unauthenticated remote attacker sends specially crafted TFTP option packets that trigger an array overrun in options.c, causing the server to return portions of /etc/group in the response.
How to fix it
Upgrade atftp to version 0.7.5 or later. Where upgrade is not immediately possible, restrict network access to the TFTP service or replace it with a maintained implementation.
How to confirm the fix worked
Confirm atftp version is 0.7.5 or newer; attempt to reproduce the out-of-bounds read with a packet crafted to exceed the options array and verify no /etc/group data is returned.
Typical attack path
- Identify an atftp server listening on UDP port 69
- Send malformed TFTP option requests that exceed expected array bounds
- Receive leaked /etc/group data in server responses
- Use obtained group names for further reconnaissance or credential attacks
How to detect it
Review atftp process logs and network captures for unusually large or malformed option requests followed by responses containing /etc/group entries; inspect packet payloads for repeated option patterns that trigger the overrun.
What your security team should do
- Prioritize upgrade of all atftp instances to 0.7.5 or later
- Limit exposure of TFTP services to trusted networks only
- Monitor for unexpected outbound UDP responses from atftp servers containing group-related strings
The record
options.c in atftp before 0.7.5 reads past the end of an array, and consequently discloses server-side /etc/group data to a remote client.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | atftp | 0 | 0.7.git20120829-3.3+deb11u2 |
| Debian:12 | atftp | 0 | 0.7.git20210915-1 |
| Debian:13 | atftp | 0 | 0.7.git20210915-1 |
| Debian:9 | atftp | 0 | 0.7.git20120829-3.1~deb9u3 |
| SUSE:Linux Enterprise Server 12 SP5 | atftp | 0 | 0.7.0-160.14.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | atftp | 0 | 0.7.0-160.14.1 |
| Ubuntu:20.04:LTS | atftp | 0 | 0.7.git20120829-3.1ubuntu0.1 |
| Ubuntu:22.04:LTS | atftp | 0 | 0.7.git20210915-4 |
| Ubuntu:Pro:16.04:LTS | atftp | 0 | 0.7.git20120829-3.1~0.16.04.1+esm1 |
| Ubuntu:Pro:18.04:LTS | atftp | 0 | 0.7.git20120829-3.1~0.18.04.1+esm1 |
Related vulnerabilities
- CVE-2021-41054 tftpd_file.c in atftp through 0.7.4 has a buffer overflow because buffer-size handling… Also affects atftp
- CVE-2020-6097 An exploitable denial of service vulnerability exists in the atftpd daemon functionality… Also affects atftp
- CVE-2019-11365 An issue was discovered in atftpd in atftp 0.7.1. Also affects atftp
- CVE-2026-92824 A flaw was found in libmodulemd. CWE-125
- CVE-2026-114038 A flaw was found in device-mapper-multipath. CWE-125
- CVE-2026-112896 Pillow is a Python imaging library. CWE-125
- CVE-2026-112278 rdesktop through 1.9.0 contains a heap out-of-bounds read vulnerability in… CWE-125
- CVE-2026-112273 libtins through 4.6 contains a heap out-of-bounds read vulnerability in DNS::compose_name… CWE-125