cve.bz

CVE-2020-25717 Improper Input Validation

8.1 highEPSS 1.7%Fix available

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

On this page
A flaw was found in the way Samba maps domain users to local users. An authenticated attacker could use this flaw to cause possible privilege escalation.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
1.7% (unchanged from 1.7% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
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-2020-25717 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-25717?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-25717?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-2020-25717 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 3.0.0 before 4.13.14
samba:sambafrom 4.14.0 before 4.14.10
samba:sambafrom 4.15.0 before 4.15.2
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora33
fedoraproject:fedora34
fedoraproject:fedora35
redhat:gluster_storage3.0
redhat:gluster_storage3.5
redhat:openstack13
redhat:openstack16.1
redhat:openstack16.2
redhat:virtualization4.0
redhat:virtualization_host4.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus8.2
redhat:enterprise_linux_eus8.4
redhat:enterprise_linux_for_ibm_z_systems7.0
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_ibm_z_systems_eus8.2
redhat:enterprise_linux_for_ibm_z_systems_eus8.4
redhat:enterprise_linux_for_power_big_endian7.0
redhat:enterprise_linux_for_power_little_endian7.0
redhat:enterprise_linux_for_power_little_endian8.0
redhat:enterprise_linux_for_power_little_endian_eus8.2
redhat:enterprise_linux_for_power_little_endian_eus8.4
redhat:enterprise_linux_for_scientific_computing7.0
redhat:enterprise_linux_resilient_storage7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus8.2
redhat:enterprise_linux_server_aus8.4
redhat:enterprise_linux_server_tus8.4
redhat:enterprise_linux_server_update_services_for_sap_solutions8.2
redhat:enterprise_linux_server_update_services_for_sap_solutions8.4
redhat:enterprise_linux_tus8.2
redhat:enterprise_linux_workstation7.0
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
canonical:ubuntu_linux21.04
canonical:ubuntu_linux21.10

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10samba2:4.9.5+dfsg-5+deb10u2DSA-5015-1
Debian11samba2:4.13.13+dfsg-1~deb11u2DSA-5003-1
Debian12, 13, 14samba2:4.13.14+dfsg-1DEBIAN-CVE-2020-25717
Ubuntu18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.26UBUNTU-CVE-2020-25717 USN-5174-1
Ubuntu20.04:LTSsamba2:4.13.14+dfsg-0ubuntu0.20.04.1UBUNTU-CVE-2020-25717 USN-5142-1
Ubuntu22.04:LTSsamba2:4.13.14+dfsg-0ubuntu1UBUNTU-CVE-2020-25717
UbuntuPro:14.04:LTS, Pro:16.04:LTSsambano fix listedUBUNTU-CVE-2020-25717
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationsamba, samba-dc, samba-libs and 23 more0:4.10.16-17.el7_9RHSA-2021:5192
Red Hatenterprise_linux:7::computenodesamba, samba-dc, samba-pidl and 12 more0:4.10.16-17.el7_9RHSA-2021:5192
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.21-20220126.0.el7_9RHSA-2022:0443
Red Hatenterprise_linux:7::serverctdb, samba, samba-dc and 25 more0:4.10.16-17.el7_9RHSA-2021:5192
Red Hatenterprise_linux:8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 18 more0:4.14.5-7.el8_5RHSA-2021:5082
Red Hatenterprise_linux:8::baseosctdb, samba, samba-libs and 38 more0:4.14.5-7.el8_5RHSA-2021:5082
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, samba-debuginfo and 20 more0:4.14.5-7.el8_5RHSA-2021:5082
Red Hatrhel_eus:8.2::baseosctdb, samba, ctdb-tests and 38 more0:4.11.2-18.el8_2RHSA-2022:0074
Red Hatrhel_eus:8.2::crbctdb-debuginfo, samba-debuginfo, libwbclient-devel and 19 more0:4.11.2-18.el8_2RHSA-2022:0074
Red Hatrhel_eus:8.4::baseosctdb, samba, ctdb-tests and 40 more0:4.13.3-8.el8_4RHSA-2022:0008
Red Hatrhel_eus:8.4::crbsamba-devel, ctdb-debuginfo, samba-debuginfo and 21 more0:4.13.3-8.el8_4RHSA-2022:0008
Red Hatrhev_hypervisor:4.4::el8redhat-virtualization-host, redhat-virtualization-host-image-update0:4.4.9-202201072228_8.5RHSA-2022:0133
2 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 4 moresamba4.9.5+git.471.5edbe3dcae7-3.57.2SUSE-SU-2021:3674-1
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 4 moresamba4.9.5+git.477.8163dd03413-3.61.1SUSE-RU-2021:4117-1
SUSEEnterprise Storage 7ldb2.2.2-4.6.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7samba4.13.13+git.545.5897c2d94f3-3.12.1SUSE-SU-2022:0361-1
SUSEEnterprise Storage 7, Linux Enterprise High Availability Extension 15 SP2, Linux Enterprise High Performance Computing 15 SP2-ESPOS and 7 moresamba4.11.14+git.313.d4e302805e1-4.32.1SUSE-RU-2021:4173-1
SUSEHPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP3, Linux Enterprise High Availability Extension 12 SP4 and 9 moresamba4.6.16+git.307.b3899d08cc6-3.64.2SUSE-SU-2021:3746-1
SUSEHPE Helion OpenStack 8, Linux Enterprise High Availability Extension 12 SP3, Linux Enterprise High Availability Extension 12 SP4 and 9 moresamba4.6.16+git.313.502515a5bfc-3.67.2SUSE-RU-2021:4126-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.10.18+git.339.c912385a5e1-3.41.1SUSE-SU-2021:3649-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.10.18+git.344.93a2ffaacec-3.44.2SUSE-RU-2021:4095-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS and 2 moresamba4.7.11+git.352.41e30c5a0f7-4.57.1SUSE-SU-2021:3747-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS and 2 moresamba4.7.11+git.358.cb5ede6f1e5-4.60.2SUSE-RU-2021:4127-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2samba4.11.14+git.308.666c63d4eea-4.28.1SUSE-SU-2021:3650-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2samba4.11.14+git.308.666c63d4eea-lp152.3.28.1openSUSE-SU-2021:1471-1
openSUSELeap 15.3ldb2.2.2-3.3.1openSUSE-SU-2021:3647-1
openSUSELeap 15.3samba4.11.14+git.308.666c63d4eea-4.28.1openSUSE-SU-2021:3650-1
openSUSELeap 15.3samba4.13.13+git.528.140935f8d6a-3.12.1openSUSE-SU-2021:3647-1
openSUSELeap 15.3samba4.13.13+git.531.903f5c0ccdc-3.17.1openSUSE-SU-2021:3662-1
openSUSELeap 15.3samba4.9.5+git.471.5edbe3dcae7-3.57.2openSUSE-SU-2021:3674-1
openSUSETumbleweedsamba4.15.2+git.193.a4d6307f1fd-1.1openSUSE-SU-2024:11631-1
AlmaLinux8samba-devel, libwbclient-devel, samba-vfs-iouring and 1 more4.14.5-7.el8_5ALSA-2021:5082
AlmaLinux8samba-devel, libwbclient-devel, samba-vfs-iouring and 1 more4.14.5-9.el8_5ALSA-2022:0332
Rocky Linux8samba0:4.14.5-7.el8_5RLSA-2021:5082
Alpinev3.13samba4.13.17-r0ALPINE-CVE-2020-25717
Alpinev3.14samba4.14.12-r0ALPINE-CVE-2020-25717
Alpinev3.15, v3.16, v3.17 and 7 moresamba4.15.2-r0ALPINE-CVE-2020-25717
Azure Linux2sambano fix listedAZL-8650
Azure Linux3samba4.18.3-1AZL-36993

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; 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 · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Setting "gensec:require_pac=true" in the smb.conf makes, due to a cache prime in winbind, the DOMAIN\user lookup succeed, provided nss_winbind is in use, 'winbind use default domain = no' (the default) and no error paths are hit.

It would be prudent to pre-create disabled users in Active Directory matching on all privileged names not held in Active Directory, eg

~~~

samba-tool user add root -H ldap://$SERVER -U$USERNAME%$PASSWORD --random-password

samba-tool user add ubuntu -H ldap://$SERVER -U$USERNAME%$PASSWORD --random-password

~~~

(repeat for eg all system users under 1000 in /etc/passwd or special to any other AD-connected services, eg perhaps "admin" for a web-app)

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7samba-0:4.10.16-17.el7_9Fixed 2021-12-16RHSA-2021:5192
Red Hat Enterprise Linux 8samba-0:4.14.5-7.el8_5Fixed 2021-12-13RHSA-2021:5082
Red Hat Enterprise Linux 8.2 Extended Update Supportsamba-0:4.11.2-18.el8_2Fixed 2022-01-11RHSA-2022:0074
Red Hat Enterprise Linux 8.4 Extended Update Supportsamba-0:4.13.3-8.el8_4Fixed 2022-01-04RHSA-2022:0008
Red Hat Gluster Storage 3.5 for RHEL 7samba-0:4.11.6-114.el7rhgsFixed 2021-11-29RHSA-2021:4844
Red Hat Gluster Storage 3.5 for RHEL 8samba-0:4.14.5-204.el8rhgsFixed 2021-11-29RHSA-2021:4843
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7redhat-virtualization-host-0:4.3.21-20220126.0.el7_9Fixed 2022-02-07RHSA-2022:0443
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8redhat-virtualization-host-0:4.4.9-202201072228_8.5Fixed 2022-01-12RHSA-2022:0133
Red Hat Enterprise Linux 6sambaOut of support scope
Red Hat Enterprise Linux 6samba4Out of support scope
Red Hat Enterprise Linux 9sambaNot 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-2020-25717.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON