cve.bz

CVE-2018-1057 Incorrect Authorization

8.8 highEPSS 10%

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

On this page
On a Samba 4 AD DC the LDAP server in all versions of Samba from 4.0.0 onwards incorrectly validates permissions to modify passwords over LDAP allowing authenticated users to change any other users' passwords, including administrative users and privileged service accounts (eg Domain Controllers).

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
10% (unchanged from 10% a week ago; 10% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-863 Incorrect Authorization
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-2018-1057 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-1057?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-1057?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-2018-1057 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
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux17.10
debian:debian_linux8.0
samba:sambafrom 4.0.0 before 4.5.16
samba:sambafrom 4.6.0 before 4.6.14
samba:sambafrom 4.7.0 before 4.7.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8samba2:4.2.14+dfsg-0+deb8u12DLA-1754-1
Debian9samba2:4.5.12+dfsg-2+deb9u2DSA-4135-1
Debian12, 13, 14samba2:4.7.4+dfsg-2DEBIAN-CVE-2018-1057
Ubuntu14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.14UBUNTU-CVE-2018-1057 USN-3595-1
Ubuntu16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.13UBUNTU-CVE-2018-1057 USN-3595-1
SUSEEnterprise Storage 5, Linux Enterprise Desktop 12 SP3, Linux Enterprise High Availability Extension 12 SP3 and 3 moresamba4.6.14+git.150.1540e575faf-3.24.1SUSE-SU-2018:1687-1
openSUSETumbleweedsamba4.14.6+git.182.2205d5224e3-1.1openSUSE-SU-2024:11365-1
Alpinev3.4samba4.4.16-r2ALPINE-CVE-2018-1057
Alpinev3.5samba4.5.16-r0ALPINE-CVE-2018-1057
Alpinev3.6samba4.6.14-r0ALPINE-CVE-2018-1057
Alpinev3.7, v3.8, v3.9 and 15 moresamba4.7.6-r0ALPINE-CVE-2018-1057
Azure Linux2samba4.12.5-6AZL-7346

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

The versions of samba shipped with Red Hat Enterprise Linux 6 and 7 do not support Active Directory Domain Controller (AD-DC) mode. Therefore this flaw does not affect Red Hat Enterprise Linux 6 and 7.

Red Hat's mitigation

Revoke the change passwords right for everyone from all user objects (including computers) in the directory. Note that this will prevent users from being able to change their own expired passwords, so the maximum password age should be set to a value that prevents user passwords from expiring while the workaround is in place. For more information please refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1553553#c3

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5sambaNot affected
Red Hat Enterprise Linux 5samba3xNot affected
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 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-2018-1057.

References

Check your stackJSON