cve.bz

CVE-2023-3961 Path traversal

9.8 criticalExploit referenceEPSS 2.7%Fix available

Critical (9.8). EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR LSA or SPOOLSS, which Samba initiates on demand. However, due to inadequate sanitization of incoming client pipe names, allowing a client to send a pipe name containing Unix directory traversal characters (../). This could result in SMB clients connecting as root to Unix domain sockets outside the private directory. If an attacker or client managed to send a pipe name resolving to an external service using an existing Unix domain socket, it could potentially lead to unauthorized access to the service and consequential adverse events, including compromise or service crashes.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.7% (unchanged from 2.7% a week ago; 2.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.18.6-2.el8_9
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support: fixed in 0:4.15.5-13.el8_6
  • Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support: fixed in 0:4.17.5-4.el8_8
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:4.18.6-101.el9_3
  • Red Hat Red Hat Enterprise Linux 9.0 Extended Update Support: fixed in 0:4.15.5-111.el9_0
  • Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support: fixed in 0:4.17.5-104.el9_2
  • Red Hat Red Hat Virtualization 4 for Red Hat Enterprise Linux 8: fixed in 0:4.15.5-13.el8_6
  • Debian, Red Hat, SUSE, openSUSE, AlmaLinux, Alpine: fixed package versions per release
  • Vendor advisory: https://www.samba.org/samba/security/CVE-2023-3961.html

Ask an AI about this CVE

Show the promptExplain CVE-2023-3961 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-3961?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-3961?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-2023-3961 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 CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:4.18.6-2.el8_9
Red Hat Enterprise Linux 8.6 Extended Update Support0:4.15.5-13.el8_6
Red Hat Enterprise Linux 8.8 Extended Update Support0:4.17.5-4.el8_8
Red Hat Enterprise Linux 90:4.18.6-101.el9_3
Red Hat Enterprise Linux 9.0 Extended Update Support0:4.15.5-111.el9_0
Red Hat Enterprise Linux 9.2 Extended Update Support0:4.17.5-104.el9_2
Red Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.15.5-13.el8_6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12samba2:4.17.12+dfsg-0+deb12u1DEBIAN-CVE-2023-3961 DSA-5525-1
Debian13, 14samba2:4.19.1+dfsg-1DEBIAN-CVE-2023-3961
Red Hatenterprise_linux:8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.18.6-2.el8_9RHSA-2023:7467
Red Hatenterprise_linux:8::baseosctdb, samba, libnetapi and 50 more0:4.18.6-2.el8_9RHSA-2023:7467
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, libnetapi-devel and 27 more0:4.18.6-2.el8_9RHSA-2023:7467
Red Hatenterprise_linux:9::appstreamsamba-client, samba-winexe, ctdb-debuginfo and 28 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatenterprise_linux:9::baseossamba, libnetapi, samba-libs and 40 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatenterprise_linux:9::crbsamba-pidl, samba-test, samba-devel and 31 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatenterprise_linux:9::resilientstoragectdb, ctdb-debuginfo, samba-debuginfo and 23 more0:4.18.6-101.el9_3RHSA-2023:6744
Red Hatrhel_eus:8.6::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 18 more0:4.15.5-13.el8_6RHSA-2023:7408
Red Hatrhel_eus:8.6::baseosctdb, samba, samba-libs and 38 more0:4.15.5-13.el8_6RHSA-2023:7408
Red Hatrhel_eus:8.6::crbsamba-devel, ctdb-debuginfo, samba-debuginfo and 20 more0:4.15.5-13.el8_6RHSA-2023:7408
Red Hatrhel_eus:8.8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.17.5-4.el8_8RHSA-2023:7464
Red Hatrhel_eus:8.8::baseosctdb, samba, libnetapi and 50 more0:4.17.5-4.el8_8RHSA-2023:7464
10 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5samba4.17.9+git.421.abde31ca5c2-150500.3.11.1SUSE-SU-2023:4046-1
openSUSELeap 15.5samba4.17.9+git.421.abde31ca5c2-150500.3.11.1SUSE-SU-2023:4046-1
openSUSETumbleweedsamba4.19.1+git.312.c912b3d2ef6-1.1openSUSE-SU-2024:13332-1
AlmaLinux8ctdb, samba, libnetapi and 31 more4.18.6-2.el8_9.alma.1ALSA-2023:7467
AlmaLinux9ctdb, samba, libnetapi and 31 more4.18.6-101.el9_3.alma.1ALSA-2023:6744
Alpinev3.18, v3.19, v3.20 and 4 moresamba4.18.8-r0ALPINE-CVE-2023-3961
Azure Linux2sambano fix listedAZL-31899
Azure Linux3sambano fix listedAZL-37024

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; 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 · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8samba-0:4.18.6-2.el8_9Fixed 2023-11-22RHSA-2023:7467
Red Hat Enterprise Linux 8.6 Extended Update Supportsamba-0:4.15.5-13.el8_6Fixed 2023-11-21RHSA-2023:7408
Red Hat Enterprise Linux 8.8 Extended Update Supportsamba-0:4.17.5-4.el8_8Fixed 2023-11-22RHSA-2023:7464
Red Hat Enterprise Linux 9samba-0:4.18.6-101.el9_3Fixed 2023-11-07RHSA-2023:6744
Red Hat Enterprise Linux 9.0 Extended Update Supportsamba-0:4.15.5-111.el9_0Fixed 2023-10-31RHSA-2023:6209
Red Hat Enterprise Linux 9.2 Extended Update Supportsamba-0:4.17.5-104.el9_2Fixed 2023-11-21RHSA-2023:7371
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8samba-0:4.15.5-13.el8_6Fixed 2023-11-21RHSA-2023:7408
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Storage 3sambaOut of support scope

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-2023-3961.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

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

References

Check your stackJSON