CVE-2022-3592
Samba vulnerability analysis and mitigation

Overview

A symlink following vulnerability (CVE-2022-3592) was discovered in Samba versions 4.17.0 and later. The vulnerability was introduced when Samba 4.17 implemented following symlinks in user space, intended to properly check symlink targets within configured shares. However, due to an improper check in a corner case, users could create symbolic links that would allow smbd to escape the configured share path (Samba Security).

Technical details

The vulnerability affects all versions of Samba since 4.17.0 and has been assigned a CVSSv3.1 score of 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N). The flaw exists in the symlink following implementation where the security check fails to properly handle certain corner cases (Samba Security).

Impact

When exploited, this vulnerability allows remote users with access to the exported part of the file system under a share via SMB1 unix extensions or NFS to create symlinks to files outside the smbd configured share path. This could potentially grant unauthorized access to restricted parts of the server's file system (Debian Security).

Mitigation and workarounds

Several mitigation options are available: 1) Disable SMB1 (disabled by default in Samba from version 4.11.0), 2) If SMB1 must be enabled, add 'unix extensions = no' to the [global] section of smb.conf, 3) For non-patched versions, only export areas of the file system by either SMB2 or NFS, not both. The vulnerability has been fixed in Samba 4.17.2, and administrators are advised to upgrade to this release (Samba Security).

Additional resources


SourceThis report was generated using AI

Related Samba vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-10230CRITICAL10
  • SambaSamba
  • samba-ldb-ldap-modules
NoYesNov 07, 2025
CVE-2020-25720HIGH7.5
  • SambaSamba
  • samba-test-debuginfo
NoYesNov 17, 2024
CVE-2025-0620MEDIUM4.9
  • SambaSamba
  • samba-devel
NoYesJun 06, 2025
CVE-2025-9640MEDIUM4.3
  • SambaSamba
  • samba-client-debuginfo
NoYesOct 15, 2025
CVE-2025-58160LOW2.3
  • RustRust
  • bustle-debuginfo
NoYesAug 29, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management