CVE-2026-45699

Source
https://cve.org/CVERecord?id=CVE-2026-45699
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45699.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45699
Aliases
  • GHSA-fphv-pf29-p77m
Downstream
Published
2026-08-14T19:05:46Z
Modified
2026-08-19T09:06:16Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Netatalk has Integer Underflow → Stack Buffer Overflow in copydir()
Details

Netatalk is a Free and Open Source file server suite for Unix-like operating systems. In versions 3.1.19 through 4.4.2, a stack-based buffer overflow exists in the copydir() function of Netatalk's afpd daemon due to an integer underflow in the calculation of the remaining buffer size used for path construction. copydir() is a utility function called when a file operation crosses a device boundary inside an AFP shared volume, which the standard library's renameat() cannot handle. The function attempts to track available buffer space using srem and drem for source and destination paths. Incorrect arithmetic causes both srem and drem to underflow to SIZE_MAX. Consequently, boundary checks against strlen(de->d_name) always pass, allowing strcpy() to append filenames into nearly full stack buffers. Version 4.4.3 patches the issue. As a workaround, configure each AFP shared volume to be structured as a single file system, in other words no subdirectory of a shared volume should be a mount point for a different file system.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-191"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45699.json"
}
References

Affected packages

Git / github.com/netatalk/netatalk

Affected ranges

Type
GIT
Repo
https://github.com/netatalk/netatalk
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "3.1.19"
        },
        {
            "fixed": "4.4.3"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45699.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "215141121896600908796849240124689245428",
                "71653758640624212713779880627955343792",
                "33931554466328782955026750452656123332"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2026-45699-0639040a",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/netatalk/netatalk/commit/79b13d9e7c77d3ab0e8b36c639fd3eb05ec06f04",
        "target": {
            "file": "etc/netatalk/netatalk.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "27433150117303302554307116966419102353",
            "length": 437
        },
        "id": "CVE-2026-45699-f738b5af",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/netatalk/netatalk/commit/79b13d9e7c77d3ab0e8b36c639fd3eb05ec06f04",
        "target": {
            "file": "etc/netatalk/netatalk.c",
            "function": "quote_shell_arg"
        }
    }
]
vanir_signatures_modified
"2026-08-19T09:06:16Z"