# CVE-2026-62318: Netatalk: afpd DHX2 UAM pre-authentication use-after-free and double-free via repeated FPLoginCont

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 4.5.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-23
- Aliases: UBUNTU-CVE-2026-62318, DEBIAN-CVE-2026-62318, ALPINE-CVE-2026-62318
- Record: https://cvemate.com/vulnerability/CVE-2026-62318 · JSON: https://cvemate.com/vulnerability/CVE-2026-62318/json

## Description

```text
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 2.0.0 until 4.5.1, the DHX2 and DHX2-PAM authentication state machine in etc/uams/uams_dhx2_pam.c permits logincont1 to be invoked again with the same FPLoginCont retID after it has released the global gcry_mpi_t Ra object. When DHX2 or DHX2PAM is enabled in the UAM list, a remote attacker without valid AFP credentials can repeat the first continuation step, causing gcry_mpi_powm to dereference the freed Ra value and gcry_mpi_release to free it again in a privileged afpd worker. The demonstrated result is a repeatable pre-authentication worker crash, and the use-after-free and double-free provide a plausible allocator exploitation primitive although code execution was not demonstrated. This issue is fixed in version 4.5.1.
```

## Signals

- CVSS: 9.3 critical (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS: 1.668%, percentile 77.577%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine netatalk (Alpine Linux): \< 4.5.1-r0
- debian netatalk (Debian): All versions (No fix recorded) \| \< 4.5.1~ds-1
- ubuntu netatalk (Ubuntu): All versions (No fix recorded) \| \< 2.2.2-1ubuntu2.2+esm5 \| \< 2.2.5-1ubuntu0.2+esm5 \| \< 2.2.6-1ubuntu0.18.04.2+esm5 \| \< 3.1.12~ds-4ubuntu0.20.04.4+esm3 \| \< 3.1.12~ds-9ubuntu0.22.04.4+esm3 \| \< 3.1.18~ds-1ubuntu0.1~esm4 \| \< 4.2.3~ds-2.1ubuntu0.2+esm1
- netatalk netatalk: ≥ 2.0.0, \< 4.5.1

## References

- <https://ubuntu.com/security/CVE-2026-62318>
- <https://www.cve.org/CVERecord?id=CVE-2026-62318>
- <https://netatalk.io/security/CVE-2026-62318>
- <https://security-tracker.debian.org/tracker/CVE-2026-62318>
- <https://github.com/Netatalk/netatalk/security/advisories/GHSA-5wp7-47vr-j2mh>
- <https://github.com/Netatalk/netatalk/commit/c2ea1f459d85c17a43378ea85a19912ce5eb3dd1>
- <https://github.com/Netatalk/netatalk/commit/fe0a2b72a64b4f0291fa1ca8c049f56b5081d65a>
- <https://github.com/Netatalk/netatalk/releases/tag/netatalk-4-5-1>
- <https://ubuntu.com/security/notices/USN-9456-1>
- <https://security.alpinelinux.org/vuln/CVE-2026-62318>

---

Data as of 2026-12-05T08:28:14.649Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
