Every CVE Search/ Get API key

CVE-2021-31439

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected...

8.8 HighFix available

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

2.33%Up 1.2 points since May 22, 2021
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.8 HighCVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
5.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0
8.8 HighCVSS: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

Affected packages
PackageAffectedFixed
netatalk
Alpine:v3.16
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.17
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.18
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.19
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.20
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.21
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.22
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.23
before 3.1.13-r0
3.1.13-r0
netatalk
Alpine:v3.24
before 3.1.13-r0
3.1.13-r0
netatalk
Debian:13
before 3.1.13~ds-1
3.1.13~ds-1
Show 14 moreShow less
Affected packages
PackageAffectedFixed
netatalk
Debian:14
before 3.1.13~ds-1
3.1.13~ds-1
netatalk
Debian: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
netatalk
Debian: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
netatalk
Mageia:8
From an advisory covering 3 CVEs
before 3.1.12-7.1.mga8
3.1.12-7.1.mga8
netatalk
Mageia:8
From an advisory covering 8 CVEs
before 3.1.14-1.1.mga8
3.1.14-1.1.mga8
netatalk
SUSE: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
netatalk
SUSE: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
netatalk
Ubuntu: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
netatalk
Ubuntu: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
netatalk
Ubuntu: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
netatalk
Ubuntu: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
netatalk
Ubuntu: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
netatalk
Ubuntu: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
netatalk
Ubuntu: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

History
RecordedChangedSources
affected, facts
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE 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

Show 27 moreShow less
MoveEnter Open