# CVE-2022-0336: The Samba AD DC includes checks when adding service principals names (SPNs) to an account to ensure that SPNs do not alias with those alrea…

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.81%, higher than 79% of CVEs (2026-12-01)
- Published: 2022-08-29T00:00:00.000Z
- Modified: 2026-06-17T04:20:25.030Z
- Weaknesses: CWE-276
- Assigned by: redhat

## Description

The Samba AD DC includes checks when adding service principals names (SPNs) to an account to ensure that SPNs do not alias with those already in the database. Some of these checks are able to be bypassed if an account modification re-adds an SPN that was previously present on that account, such as one added when a computer is joined to a domain. An attacker who has the ability to write to an account can exploit this to perform a denial-of-service attack by adding an SPN that matches an existing service. Additionally, an attacker who can intercept traffic can impersonate existing services, resulting in a loss of confidentiality and integrity.

(As written by CVE List.)

## Affected

- Samba: Affects Samba v4.0.0 and later, Fixed in samba v4.13.17, v4.14.12, v4.15.4.
- samba samba: from 4.0.0 before 4.13.17; from 4.14.0 before 4.14.12; from 4.15.0 before 4.15.4
- fedoraproject fedora: 34; 35

## References

- <https://www.samba.org/samba/security/CVE-2022-0336.html> (vendor-advisory)
- <https://bugzilla.samba.org/show_bug.cgi?id=14950> (issue-tracking, patch, vendor-advisory)
- <https://github.com/samba-team/samba/commit/1a5dc817c0c9379bbaab14c676681b42b0039a3c> (patch, third-party-advisory)
- <https://github.com/samba-team/samba/commit/c58ede44f382bd0125f761f0479c8d48156be400> (patch, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2046134> (issue-tracking, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2022-0336> (issue-tracking, third-party-advisory)
- <https://security.gentoo.org/glsa/202309-06> (vendor-advisory)

## Sources

- CVE List: [CVE-2022-0336](https://www.cve.org/CVERecord?id=CVE-2022-0336), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2022-0336](https://nvd.nist.gov/vuln/detail/CVE-2022-0336), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-0336 · Whole record: https://cve.day/CVE-2022-0336.json · Rebuilt by cve.day 2026-11-25T22:58:14.524Z
