CVE-2016-2123: Samba - Privilege Escalation
- Cve: CVE-2016-2123
- Name: Samba - Privilege Escalation
- Description: A flaw was found in samba versions 4.0.0 to 4.5.2. The Samba routine ndr_pull_dnsp_name contains an integer wrap problem, leading to an attacker-controlled memory overwrite. ndr_pull_dnsp_name parses data from the Samba Active Directory ldb database. Any user who can write to the dnsRecord attribute over LDAP can trigger this memory corruption. By default, all authenticated LDAP users can write to the dnsRecord attribute on new DNS objects. This makes the defect a remote privilege escalation.
- Impact: Authenticated LDAP users can escalate privileges remotely by triggering memory corruption, potentially leading to full system compromise.
- Remediation: Update Samba to version 4.5.3 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker needs LDAP write access to dnsRecord attribute
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.06226
- Epss percentile: 0.93711
- Assignee: [email protected]
- Published at: 2018-11-01T13:29:00Z
- Age in days: 2945
- Modified at: 2026-06-17T00:43:30Z
- Patch available: yes
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2016-2123
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.samba.org/samba/security/CVE-2016-2123.html | Patch, Vendor Advisory |
| http://www.securityfocus.com/bid/94970 | Third Party Advisory, VDB Entry |
| http://www.securitytracker.com/id/1037493 | Third Party Advisory, VDB Entry |
| https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-2123 | Issue Tracking |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| samba:samba | >= 4.5.0, < 4.5.3; >= 4.4.0, < 4.4.8; >= 4.3.0, < 4.3.13; >= 4.2.0, <= 4.2.14; >= 4.1.0, <= 4.1.23; >= 4.0.0, <= 4.0.26 | no | nvd | /v1/products/samba/samba |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 60998
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports