Skip to content
Heist/ feed
Back to feed
HighFix available

samba — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-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 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.

Products
samba
Affected versions
Not specified
Fixed versions
4.15.12-r0
CVEs
CVE-2022-0336
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:08 UTC · Revision 1

Source evidence

ALPINE-CVE-2022-0336

core-osv · Original source

Published 29 Aug 2022, 15:15 UTC

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.

osv:ALPINE-CVE-2022-0336

samba

Fixed versions: 4.15.12-r0

samba

Fixed versions: 4.15.12-r0

Complete source record
{
  "id": "fbcc65a51f2761d7f72594a41e3a694afca7c4bd7d6e401c65bb23759f31d1d3",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2022-0336",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2022-0336",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2022-0336",
    "products": [
      {
        "name": {
          "value": "samba",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.15.12-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "samba",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.15.12-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "ALPINE-CVE-2022-0336",
      "aliases": [
        "ALPINE-CVE-2022-0336"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.0.0"
                },
                {
                  "fixed": "4.15.12-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "samba",
            "purl": "pkg:apk/alpine/samba?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-0336.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.0.0"
                },
                {
                  "fixed": "4.15.12-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "samba",
            "purl": "pkg:apk/alpine/samba?arch=source",
            "ecosystem": "Alpine:v3.16"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2022-0336.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-15T07:17:54.139215665Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-0336"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2022-0336"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-0336",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 321590,
  "published_at": "2022-08-29T15:15:09.25+00:00"
}