CVE-2021-31439
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected...
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
Attack profile
How easy it is to exploit
- Attack vector
- Adjacent network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
CVE-2021-31439- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-122
- Updated
- 2026-11-02
EUVDEUVD-2021-18339
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
EUVD-2021-18339- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8292-4xc6-r7cv
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected...
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
GHSA-8292-4xc6-r7cv- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
NVD
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
CVE-2021-31439- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 5.8 Medium
AV:A/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-31439
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
ALPINE-CVE-2021-31439- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
CVE-2021-31439- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVDEBIAN-CVE-2021-31439
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
DEBIAN-CVE-2021-31439- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-31439
8.8
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Synology DiskStation Manager. Authentication is not required to exploit this vulnerablity. The specific flaw exists within the processing of DSI structures in Netatalk. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12326.
- Record
UBUNTU-CVE-2021-31439- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2022-0196 No score
Updated netatalk packages fix security vulnerability
Remote arbitrary code execution related to dsi_stream_receive(). (CVE-2021-31439) Remote arbitrary code execution related to parse_entries(). (CVE-2022-23121) Remote arbitrary code execution related to copyapplfile(). (CVE-2022-23125)
- Record
MGASA-2022-0196- Updated
- 2026-11-02
OSVMGASA-2023-0027 No score
Updated netatalk packages fix security vulnerability
Heap overflow leading to arbitrary code execution. (CVE-2021-31439) Buffer overflow leading to remote code execution (CVE-2022-0194) Improper length validation leading to remote code execution (CVE-2022-23121) Buffer overflow leading to remote code execution (CVE-2022-23122) Out-of-bounds read leading to information disclosure (CVE-2022-23123) Out-of-bounds read leading to information disclosure (CVE-2022-23124) Improper length validation leading to remote code execution (CVE-2022-23125) Heap-based buffer overflow in afp_getappl resulting in code execution via a crafted .appl file (CVE-2022-45188)
- Record
MGASA-2023-0027- Updated
- 2026-11-02
OSVSUSE-SU-2022:1184-1 No score
Security update for netatalk
This update for netatalk fixes the following issues:
- CVE-2022-23125: Fixed remote arbitrary code execution related to copyapplfile().
- CVE-2022-23121: Fixed remote arbitrary code execution related to parse_entries().
- CVE-2021-31439: Fixed remote arbitrary code execution related to dsi_stream_receive().
- Record
SUSE-SU-2022:1184-1- Updated
- 2026-11-02
OSVUSN-6146-1 No score
netatalk vulnerabilities
It was discovered that Netatalk did not properly validate the length of user-supplied data in the DSI structures. A remote attacker could possibly use this issue to execute arbitrary code with the privileges of the user invoking the programs. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2021-31439)
It was discovered that Netatalk did not properly validate the length of user-supplied data in the ad_addcomment function. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-0194)
It was discovered that Netatalk did not properly handle errors when parsing AppleDouble entries. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-23121)
It was discovered that Netatalk did not properly validate the length of user-supplied data in the setfilparams function. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-23122)
It was discovered that Netatalk did not properly validate the length of user-supplied data in the getdirparams function. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-23123)
It was discovered that Netatalk did not properly validate the length of user-supplied data in the get_finderinfo function. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-23124)
It was discovered that Netatalk did not properly validate the length of user-supplied data in the copyapplfile function. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-23125)
It was discovered that Netatalk did not properly validate the length of user-supplied data in the dsi_writeinit function. A remote attacker could possibly use this issue to execute arbitrary code with root privileges. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS and Ubuntu 22.10. (CVE-2022-43634)
It was discovered that Netatalk did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted .appl file, a remote attacker could possibly use this issue to execute arbitrary code. (CVE-2022-45188)
- Record
USN-6146-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
netatalkAlpine:v3.16 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.17 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.18 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.19 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.20 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.21 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.22 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.23 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkAlpine:v3.24 |
before 3.1.13-r0 | 3.1.13-r0 |
netatalkDebian:13 |
before 3.1.13~ds-1 | 3.1.13~ds-1 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
netatalkDebian:14 |
before 3.1.13~ds-1 | 3.1.13~ds-1 |
netatalkDebian:10 From an advisory covering 9 CVEs |
before 3.1.12~ds-3+deb10u1, plus listed versions 3.1.12~ds-3 |
3.1.12~ds-3+deb10u1 |
netatalkDebian:11 From an advisory covering 10 CVEs |
before 3.1.12~ds-8+deb11u1, plus listed versions 3.1.12~ds-8 |
3.1.12~ds-8+deb11u1 |
netatalkMageia:8 From an advisory covering 3 CVEs |
before 3.1.12-7.1.mga8 | 3.1.12-7.1.mga8 |
netatalkMageia:8 From an advisory covering 8 CVEs |
before 3.1.14-1.1.mga8 | 3.1.14-1.1.mga8 |
netatalkSUSE:Linux Enterprise Software Development Kit 12 SP5 From an advisory covering 3 CVEs |
before 3.1.0-3.8.1 | 3.1.0-3.8.1 |
netatalkSUSE:Linux Enterprise Workstation Extension 12 SP5 From an advisory covering 3 CVEs |
before 3.1.0-3.8.1 | 3.1.0-3.8.1 |
netatalkUbuntu:20.04:LTS |
before 3.1.12~ds-4ubuntu0.20.04.1, plus listed versions 3.1.12~ds-33.1.12~ds-4 |
3.1.12~ds-4ubuntu0.20.04.1 |
netatalkUbuntu:22.04:LTS |
before 3.1.12~ds-9ubuntu0.22.04.1, plus listed versions 3.1.12~ds-93.1.12~ds-9build1 |
3.1.12~ds-9ubuntu0.22.04.1 |
netatalkUbuntu:Pro:14.04:LTS From an advisory covering 9 CVEs |
before 2.2.2-1ubuntu2.2+esm1, plus listed versions 2.2.2-1ubuntu12.2.2-1ubuntu22.2.2-1ubuntu2.2 |
2.2.2-1ubuntu2.2+esm1 |
netatalkUbuntu:Pro:16.04:LTS From an advisory covering 9 CVEs |
before 2.2.5-1ubuntu0.2+esm1, plus listed versions 2.2.5-12.2.5-1ubuntu0.2 |
2.2.5-1ubuntu0.2+esm1 |
netatalkUbuntu:Pro:18.04:LTS From an advisory covering 9 CVEs |
before 2.2.6-1ubuntu0.18.04.2+esm1, plus listed versions 2.2.6-12.2.6-1ubuntu0.18.04.2 |
2.2.6-1ubuntu0.18.04.2+esm1 |
netatalkUbuntu:20.04:LTS From an advisory covering 9 CVEs |
before 3.1.12~ds-4ubuntu0.20.04.1, plus listed versions 3.1.12~ds-33.1.12~ds-4 |
3.1.12~ds-4ubuntu0.20.04.1 |
netatalkUbuntu:22.04:LTS From an advisory covering 9 CVEs |
before 3.1.12~ds-9ubuntu0.22.04.1, plus listed versions 3.1.12~ds-93.1.12~ds-9build1 |
3.1.12~ds-9ubuntu0.22.04.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-31439 is a high vulnerability (CVSS 8.8) in Netatalk, published May 21, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.33%, the 83rd percentile. Fixed in netatalk 3.1.13-r0.
References
zerodayinitiative.com/advisories/ZDI-21-492
synology.com/zh-hk/security/advisory/Synology_SA_20_26
lists.debian.org/debian-lts-announce/2023/05/msg00018.html
debian.org/security/2023/dsa-5503
security.gentoo.org/glsa/202311-02
nvd.nist.gov/vuln/detail/CVE-2021-31439
Show 27 moreShow less
github.com/advisories/GHSA-8292-4xc6-r7cv
security.alpinelinux.org/vuln/CVE-2021-31439
security-tracker.debian.org/tracker/CVE-2021-31439
advisories.mageia.org/MGASA-2022-0196.html
bugs.mageia.org/show_bug.cgi?id=30287
lists.suse.com/pipermail/sle-security-updates/2022-April/010700.html
advisories.mageia.org/MGASA-2023-0027.html
bugs.mageia.org/show_bug.cgi?id=31255
lists.suse.com/pipermail/sle-security-updates/2022-December/013205.html
github.com/Netatalk/Netatalk/commit/895cecbeeae655b2793df6fcbf9df1c1bfbe285d
suse.com/support/update/announcement/2022/suse-su-20221184-1
bugzilla.suse.com/1197352
suse.com/security/cve/CVE-2021-31439
suse.com/security/cve/CVE-2022-23121
suse.com/security/cve/CVE-2022-23125
ubuntu.com/security/CVE-2021-31439
netatalk.sourceforge.io/3.1/ReleaseNotes3.1.13.html
ubuntu.com/security/notices/USN-6146-1
cve.org/CVERecord?id=CVE-2021-31439
ubuntu.com/security/CVE-2022-0194
ubuntu.com/security/CVE-2022-23121
ubuntu.com/security/CVE-2022-23122
ubuntu.com/security/CVE-2022-23123
ubuntu.com/security/CVE-2022-23124
ubuntu.com/security/CVE-2022-23125
ubuntu.com/security/CVE-2022-43634
ubuntu.com/security/CVE-2022-45188