cve.bz

CVE-2022-0336 Incorrect Default Permissions

8.8 highEPSS 1.8%Fix available

High (8.8). EPSS 1.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-0336 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-0336?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-0336?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-0336 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:sambafrom 4.0.0 before 4.13.17
samba:sambafrom 4.14.0 before 4.14.12
samba:sambafrom 4.15.0 before 4.15.4
fedoraproject:fedora34
fedoraproject:fedora35

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14samba2:4.16.0+dfsg-2DEBIAN-CVE-2022-0336
Ubuntu20.04:LTSsamba2:4.13.17~dfsg-0ubuntu0.21.04.1UBUNTU-CVE-2022-0336 USN-5260-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.15.4+git.324.8332acf1a63-3.54.1SUSE-SU-2022:0323-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3samba4.15.4+git.324.8332acf1a63-150300.3.25.3SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3ldb2.4.1-150300.3.10.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3libapparmor2.13.6-150300.3.11.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3sssd1.16.1-150300.23.17.3SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3talloc2.3.3-150300.3.3.2SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3tdb1.4.4-150300.3.3.2SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3tevent0.11.0-150300.3.3.2SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3apparmor2.13.6-150300.3.11.2SUSE-SU-2022:0283-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3krb51.19.2-150300.8.3.2SUSE-SU-2022:0283-1
SUSELinux Enterprise Module for Basesystem 15 SP3talloc-man2.3.3-150300.3.3.1SUSE-SU-2022:0283-1
SUSELinux Enterprise Module for Basesystem 15 SP3tevent-man0.11.0-150300.3.3.1SUSE-SU-2022:0283-1
7 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3apparmor2.13.6-150300.3.11.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3krb5, krb5-mini1.19.2-150300.8.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3ldb2.4.1-150300.3.10.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3libapparmor2.13.6-150300.3.11.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3samba4.15.4+git.324.8332acf1a63-150300.3.25.3openSUSE-SU-2022:0283-1
openSUSELeap 15.3sssd1.16.1-150300.23.17.3openSUSE-SU-2022:0283-1
openSUSELeap 15.3talloc2.3.3-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3talloc-man2.3.3-150300.3.3.1openSUSE-SU-2022:0283-1
openSUSELeap 15.3tdb1.4.4-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3tevent0.11.0-150300.3.3.2openSUSE-SU-2022:0283-1
openSUSELeap 15.3tevent-man0.11.0-150300.3.3.1openSUSE-SU-2022:0283-1
openSUSETumbleweedsamba4.15.5+git.328.f1f29505d84-1.1openSUSE-SU-2024:11807-1
Alpinev3.15, v3.16samba4.15.12-r0ALPINE-CVE-2022-0336
Azure Linux2sambano fix listedAZL-10741
Azure Linux3samba4.18.3-1AZL-37009

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

No versions of Red Hat Enterprise Linux, Red Hat Gluster Storage, or any other Red Hat Products are affected by this vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Storage 3sambaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-0336.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON