cve.bz

CVE-2020-10704 Uncontrolled Recursion

7.5 highEPSS 3.5%

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

On this page
A flaw was found when using samba as an Active Directory Domain Controller. Due to the way samba handles certain requests as an Active Directory Domain Controller LDAP server, an unauthorized user can cause a stack overflow leading to a denial of service. The highest threat from this vulnerability is to system availability. This issue affects all samba versions before 4.10.15, before 4.11.8 and before 4.12.2.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.5% (unchanged from 3.5% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-674 Uncontrolled Recursion
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-10704 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-10704?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-10704?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-10704 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 4.0.0 before 4.10.15
samba:sambafrom 4.11.0 before 4.11.8
samba:sambafrom 4.12.0 before 4.12.2
fedoraproject:fedora30
fedoraproject:fedora31
opensuse:leap15.2
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9samba2:4.5.16+dfsg-1+deb9u3DLA-2463-1
Debian12, 13, 14samba2:4.12.3+dfsg-2DEBIAN-CVE-2020-10704
Ubuntu16.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.16.04.26UBUNTU-CVE-2020-10704 USN-4341-1
Ubuntu18.04:LTSsamba2:4.7.6+dfsg~ubuntu-0ubuntu2.16UBUNTU-CVE-2020-10704 USN-4341-1
Ubuntu20.04:LTSsamba2:4.11.6+dfsg-0ubuntu1.1UBUNTU-CVE-2020-10704 USN-4341-1
UbuntuPro:14.04:LTSsamba2:4.3.11+dfsg-0ubuntu0.14.04.20+esm6UBUNTU-CVE-2020-10704 USN-4341-2
SUSEEnterprise Storage 6, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise Module for Basesystem 15 SP1 and 1 moresamba4.9.5+git.317.6d82fb3918b-3.35.1SUSE-SU-2020:1133-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.17+git.203.862547088ca-3.14.1SUSE-SU-2020:2673-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.231.7f324c4d89e-4.40.1SUSE-SU-2020:1132-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Python 2 15 SP2samba4.11.11+git.180.2cf3b203f07-4.5.1SUSE-SU-2020:1948-1
SUSELinux Enterprise Module for Basesystem 15 SP2ldb2.0.12-3.3.1SUSE-SU-2020:1948-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5ldb1.5.8-3.5.1SUSE-SU-2020:2673-1
openSUSELeap 15.1samba4.9.5+git.317.6d82fb3918b-lp151.2.24.1openSUSE-SU-2020:0601-1
openSUSELeap 15.2ldb2.0.12-lp152.2.3.1openSUSE-SU-2020:1023-1
openSUSELeap 15.2ldb2.0.12-lp152.2.6.1openSUSE-SU-2020:1313-1
openSUSELeap 15.2samba4.11.11+git.180.2cf3b203f07-lp152.3.3.1openSUSE-SU-2020:1023-1
openSUSELeap 15.2samba4.11.11+git.180.2cf3b203f07-lp152.3.6.1openSUSE-SU-2020:1313-1
openSUSETumbleweedsamba4.14.6+git.182.2205d5224e3-1.1openSUSE-SU-2024:11365-1
Alpinev3.10samba4.10.15-r0ALPINE-CVE-2020-10704
Alpinev3.11samba4.11.8-r0ALPINE-CVE-2020-10704
Alpinev3.12, v3.13, v3.14 and 10 moresamba4.12.2-r0ALPINE-CVE-2020-10704

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

This flaw does not affect the version of samba shipped with Red Hat Enterprise Linux as there is no support for samba as an Active Directory Domain Controller (AD DC). Similarly, the version of samba shipped with Red Hat Gluster Storage 3 is also not supported for use as an AD DC and, thus, is not affected by this vulnerability.

Red Hat's mitigation

By default, Samba 4.10 is run using the "standard" process model, which would leave only the CLDAP server affected. (Later versions use 'prefork').

This is controlled by the -M or --model parameter to the samba binary.

All Samba versions are impacted if -M prefork or -M single is used. To mitigate this issue for LDAP only, select -M standard (however this will use more memory, may allow resource exhaustion, and will still leave the CLDAP server exposed).

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-2020-10704.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

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

References

Check your stackJSON