Netatalk 4.0.0 before 4.6.1 contains a stack-based buffer overflow vulnerability in add_zones() in contrib/macipgw/macip.c, which copies each zone name from a ZIP GetZoneList reply into a 32-byte stack buffer using the packet's length byte without checking it. Unauthenticated attackers on the same AppleTalk network can send a crafted zone list reply during macipgw startup zone discovery to overflow the stack and crash the MacIP gateway.
Netatalk 4.0.0 before 4.6.1 contains an out-of-bounds read vulnerability in nbp_parse() in libatalk/nbp/nbp_util.c, which returns a non-error value when an NBP type or zone length exceeds the 32-byte field size, so the lookup code keeps the oversized length and nbp_match() compares past the end of the name buffer. Unauthenticated attackers on the same AppleTalk network can send malformed NBP lookup replies while a Netatalk process performs a lookup to read out of bounds and potentially crash the process.
Netatalk 4.0.0 before 4.6.1 contains a stack-based buffer overflow vulnerability in atalkd, where the ZIP GNIREPLY handler in etc/atalkd/zip.c stores a default zone name without enforcing the 32-byte limit and zone_bcast() in etc/atalkd/multicast.c later copies it into a 32-byte stack array using the stored length. Unauthenticated attackers on the same AppleTalk network can answer the GetNetInfo request of a non-seed Phase 2 interface with an overlong zone name to overflow the stack and crash atalkd.
Netatalk 4.5.0 before 4.6.1 contains an improper link resolution vulnerability in cnid_sqlite_open() in libatalk/cnid/sqlite/cnid_sqlite.c, which creates the CNID database directory world-writable with the sticky bit and then, as root, calls chmod() with mode 0666 on the predictable database, WAL, and shared-memory paths, following symbolic links. Local users can pre-create a symbolic link at one of these paths so that Netatalk makes an arbitrary root-owned file world-readable and world-writable, potentially leading to privilege escalation.
Netatalk 3.1.2 before 4.6.1 contains an improper link resolution vulnerability in delete_vetoed_files() in etc/afpd/filedir.c, which classifies directory entries with stat() and so recursively enters a veto-matching symbolic link to a directory, deleting every file in the link target. Authenticated AFP users on a volume with delete veto files enabled can create a veto-matching symlink to a directory outside the volume and delete its parent to remove files there with the privileges of the Netatalk service.
Netatalk 4.0.0 before 4.6.1 contains an out-of-bounds write vulnerability in the pap client (bin/pap/pap.c), which uses the printer-supplied status length byte as a signed char in memcpy() into a 1024-byte stack buffer without validating it. A malicious or compromised PAP printer can return a status response with a length byte of 0x80 or higher, which converts to a huge copy length and overflows the stack when a user runs pap against that printer.
Netatalk 4.0.0 before 4.6.1 contains a stack-based out-of-bounds write vulnerability in cq_font_answer() in etc/papd/queries.c, which copies a client-supplied font name of up to 256 bytes into a 256-byte stack buffer and then writes the NUL terminator one byte past its end. Unauthenticated attackers who can send PAP traffic to papd can submit a %%?BeginFontQuery with a font name of 256 or more bytes to corrupt the stack and crash the print server.
Netatalk 4.0.0 before 4.6.1 contains a NULL pointer dereference vulnerability in getstatus() in etc/papd/main.c, which passes the integer O_RDONLY, whose value is zero, as the mode argument to fopen() when reading a spooled printer's status file in builds without CUPS. Unauthenticated attackers who can send AppleTalk PAP traffic can send a PAP_OPEN or PAP_SENDSTATUS request to crash papd and keep the print service unavailable.
Netatalk versions 3.1.0 up to but not including 4.6.0 contain an out-of-bounds write vulnerability in the decompose_w() function within libatalk/unicode/util_unistr.c. This flaw arises because the function does not reserve space for the UTF-16 NUL terminator, causing a decomposed string that exactly fills the destination buffer to overflow by two bytes. Authenticated AFP users can exploit this by creating file paths near the MAXPATHLEN limit with specific Unicode characters and requesting Spotlight metadata, leading to stack memory corruption and crashing their AFP session process.
Netatalk versions from 1.5.0 up to but not including 4.6.0 contain an improper privilege management vulnerability in the afppasswd utility. When installed with setuid-root, afppasswd accepts administrative options from unprivileged users and opens files with root privileges before verifying the caller. This allows local users to append a fixed-format SRP placeholder record to any root-writable file, potentially corrupting configuration, credential, or service state files. The vulnerability is addressed in version 4.6.0.
Netatalk 2.1.0 before 4.6.0 contains an improper link resolution vulnerability in check_addir() and read_addir() in bin/dbd/cmd_dbd_scanvol.c, which open and chdir() into a volume's .AppleDouble directory without rejecting a symbolic link and then unlink entries that have no matching file in the parent directory. Local users who can replace a .AppleDouble entry in a volume directory, for example through shell, SFTP, or NFS access to the same storage, can redirect dbd into an arbitrary directory so that a later repair-mode run by an administrator deletes files there with root privileges.
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 2.1.0 until 4.5.2, get_eacontent in libatalk/vfs/ea_ad.c subtracts MAX_REPLY_EXTRA_BYTES from a client-controlled FPGetExtAttr MaxReplySize without rejecting values from 1 through 5, and a signed-to-unsigned comparison can then select an untrusted AppleDouble ea_size. An authenticated client on a volume configured with ea = ad can use a pre-existing malformed AppleDouble sidecar to make read copy attacker-controlled bytes beyond dsi->data + 6 into the surrounding struct DSI, including protocol callback pointers. The malformed sidecar must already exist or be created through a separate local, co-export, management, restore, or vulnerability-assisted write path, and practical code execution depends on the target architecture, structure layout, and address uncertainty; runtime command execution was demonstrated on one x86-64 build. Volumes using ea = sys, ea = none, or ea = auto when it resolves to native system xattrs do not reach this path. This issue is fixed in version 4.5.2.
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 3.1.0 until 4.5.2, the Spotlight RPC consumer handlers sl_rpc_fetchAttributeNamesForOIDArray, sl_rpc_storeAttributesForOIDArray, and sl_rpc_fetchAttributesForOIDArray in etc/afpd/spotlight.c dereference the first element of a decoded sl_cnids_t without checking whether the inner CNID array is empty. An authenticated AFP client, or a guest when guest AFP access is enabled, can send a crafted SPOTLIGHT_CMD_RPC whose outer CNIDS length is greater than 16 while its inner count is zero, causing sl_unpack_cnids to create an empty DALLOC_CTX and the consumer to dereference dd_talloc_array[0]. The affected afpd child crashes, normally limiting denial of service to the attacker's session, and no memory write or code execution was demonstrated. This issue is fixed in version 4.5.2.
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 3.1.0 until 4.5.2, sl_createCNIDArray in etc/afpd/spotlight.c assumes every element of kMDQueryItemArray points to an eight-byte uint64_t and copies sizeof(uint64_t) bytes from the indexed p->dd_talloc_array element without validating the element's talloc type or allocation size. An authenticated AFP client with access to a Spotlight-enabled volume can use FPSpotlightRPC to supply a mixed-type sl_array_t containing a shorter boolean, nil, or string element, and an unauthenticated client can reach the same path when the optional guest UAM and a guest-accessible volume are enabled. The resulting eight-byte read extends beyond the shorter element's heap allocation and supplies an internal CNID filter; no confidentiality channel, write primitive, or code execution was demonstrated, while a production crash would require additional heap placement conditions. The container-type validation added for CVE-2023-42464 does not validate each element inside an accepted sl_array_t and therefore does not resolve this issue. This issue is fixed in version 4.5.2.
A critical double free vulnerability exists in Netatalk versions from 2.0.0 up to but not including 4.5.1. The flaw occurs in the DHX2 and DHX2-PAM authentication state machine, allowing a remote unauthenticated attacker to cause a pre-authentication crash of the afpd worker process. This vulnerability involves use-after-free and double-free conditions that could potentially be exploited for allocator manipulation, although no code execution has been demonstrated. The issue is fixed in Netatalk version 4.5.1.
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 1.5.0 until 4.5.1, dsi_tcp_open in libatalk/dsi/dsi_tcp.c silently limits the bytes read from an unauthenticated DSI frame received on TCP/548 to server_quantum when the attacker-controlled dsi_len is larger, without rejecting the frame or draining the declared remainder. The same silent dsi_len truncation pattern exists in libatalk/dsi/dsi_stream.c. The leftover bytes remain queued on the TCP connection and the next dsi_stream_receive call interprets them as a new DSI header and payload, allowing a remote unauthenticated attacker to smuggle one or more additional attacker-controlled DSI frames into the same connection. This issue is fixed in version 4.5.1.
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 1.5.0 until 4.5.1, dsi_stream_receive in libatalk/dsi/dsi_stream.c independently clamps dsi_doff and dsi_len for DSIWrite requests without enforcing that the data offset is no greater than the declared frame length. An authenticated AFP client can send dsi_doff greater than dsi_len, causing the receiver to consume bytes from a queued subsequent frame before libatalk/dsi/dsi_write.c detects the inconsistency. The irreversible stream desynchronization lets the attacker control the next parsed DSI header and payload and corrupts protocol framing for the connection. This issue is fixed in version 4.5.1.
CVE-2026-62321 is a high-severity vulnerability in Netatalk versions from 3.1.0 up to but not including 4.5.1. It involves an out-of-bounds write due to improper bounds checking in the Spotlight RPC fetchQueryResultsForContext: reply path. An authenticated AFP client can exploit this to corrupt heap memory by triggering an amplified nested file-metadata tree packing operation. The issue is resolved in Netatalk version 4.5.1.
CVE-2026-49388 is a high-severity out-of-bounds read vulnerability in Netatalk versions 3.1.0 through 4.4.x. It occurs in the sl_unpack_loop function within spotlight_marshalling.c, where an authenticated AFP client can supply a crafted Spotlight table-of-contents index that leads to reading beyond the intended buffer. This can cause a heap read of attacker-influenced memory and reliably crash the worker process handling the session. The issue is fixed in Netatalk version 4.5.0.
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 2.0.0 until 4.5.0, afp_catsearch in etc/afpd/catsearch.c computes the spec2 pointer for FPCatSearch and FPCatSearchExt from the unvalidated 16-bit spec_len request field without checking it against the remaining input length. An authenticated AFP client can cause the CatSearch handler to read stale bytes beyond the supplied request data. The bytes are used only as internal comparison criteria and are not returned to the client, and testing under standard server quantum settings did not demonstrate a crash or information disclosure. This issue is fixed in version 4.5.0.