CVE-2026-49388 in Netatalk
Summary
by MITRE • 11/20/2026
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 3.1.0 until 4.5.0, sl_unpack_loop in etc/afpd/spotlight_marshalling.c uses an attacker-controlled Spotlight table-of-contents index during FPSpotlightRPC without checking it against the number of entries or the remaining dsi->commands buffer. An authenticated AFP client with access to a Spotlight-enabled volume can choose a large toc_index whose multiplication and addition produce an out-of-range address, causing an attacker-influenced heap read and reliably crashing the worker serving that session. The earlier CVE-2026-44066 remediation bounded recursion depth and toc_offset but did not bound toc_index. This issue is fixed in version 4.5.0.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/21/2026
Netatalk serves as a critical interoperability layer for Unix-like operating systems, enabling seamless file sharing with Apple devices via the Apple Filing Protocol. Within this architecture, the Spotlight feature allows users to index and search files on remote volumes using metadata similar to macOS native searches. The vulnerability identified in versions 3.1.0 through 4.5.0 resides specifically within the spotlight_marshalling.c module, targeting the sl_unpack_loop function which processes Spotlight table-of-contents data during an FPSpotlightRPC call. This component is responsible for parsing and validating incoming requests from AFP clients to ensure that subsequent operations remain within safe memory boundaries.
The core technical flaw involves a lack of proper bounds checking on the toc_index parameter provided by the client. When an authenticated user submits a request, they can supply a large value for this index. The code performs arithmetic operations involving multiplication and addition using this attacker-controlled input without verifying that the resulting address falls within the allocated buffer limits or corresponds to valid entries in the Spotlight database. This oversight allows the calculation of out-of-range memory addresses, leading directly to an insecure heap read operation. Because the validation logic fails to constrain the index against the total number of available entries or the remaining size of the dsi->commands buffer, the application proceeds with invalid pointer arithmetic rather than rejecting the malformed request.
This vulnerability is classified as CWE-125, Out-of-bounds Read, and aligns with ATT&CK technique T1083, File and Directory Discovery, due to its exploitation through file system metadata queries. The operational impact of this flaw is significant for service availability. An attacker who has successfully authenticated to an AFP server and possesses access to a volume enabled for Spotlight indexing can trigger the vulnerability remotely or locally depending on network exposure. By sending specifically crafted requests with oversized toc_index values, the attacker causes the worker process serving that session to crash reliably. This results in a Denial of Service condition where the specific AFP connection is terminated, potentially disrupting file access for legitimate users relying on that service instance until it is restarted by system administrators or automated recovery mechanisms.
Previous remediation efforts addressed related issues such as CVE-2026-44066 by bounding recursion depth and toc_offset parameters. However, these fixes did not adequately constrain the toc_index variable itself, leaving this specific attack vector open despite earlier security patches. The complete resolution requires validating all input indices against both the structural limits of the data structure and the buffer capacity before any arithmetic operations are performed. This ensures that memory access remains strictly within allocated regions, preventing out-of-bounds reads regardless of how large or maliciously constructed the index value may be.
To mitigate this risk in environments running affected versions, immediate upgrade to Netatalk version 4.5.0 is strongly recommended as it contains the necessary code corrections for bounds checking on toc_index. For systems that cannot be upgraded immediately, administrators should consider restricting AFP access to trusted networks only and enforcing strong authentication policies to limit exposure to unauthenticated or low-privilege attackers. Additionally, monitoring logs for repeated failed Spotlight requests may help in detecting attempted exploitation of this vulnerability before a crash occurs, allowing for proactive incident response measures while patching strategies are implemented.