Skip to main content

Samba libldb CVE-2026-125635

| EUVDEUVD-2026-139512 MEDIUM
Missing Authorization (CWE-862)
2026-11-30 secalert@redhat.com GHSA-f99h-5jp9-fm5r
4.3
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privileged directory user
  2. Exploit
    Craft bitmask LDAP search targeting one bit
  3. Execution
    Object inclusion reveals that bit is set
  4. Impact
    Repeat per bit to reconstruct hidden integer

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated, low-privileged account (PR:L) that can reach the directory over the network and list the target directory object; the attacker is able to issue LDAP searches with bitwise/bitmask matching against the object. The disclosed data is limited to integer-typed attributes - the description explicitly states non-integer values such as passwords or keys stored as bytes are NOT returned as numbers, so this does not leak those secrets. Limiting factors: authentication is required (not remote-unauthenticated), the attacker must already be able to see/list the object, and recovery is one bit per search, so extracting a full value requires repeated queries. Applies to Samba deployments exposing the LDAP matching module (e.g. acting as an AD domain controller / LDAP directory).

Impact

This is a genuine but modest-severity information-disclosure issue, not a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N, base 4.3) is internally consistent with the description: a network-reachable but authenticated low-privileged user (PR:L) exploits a missing authorization check (CWE-862) in libldb's ldb_match_bitmask() to read an integer attribute they should not see, yielding limited confidentiality impact (C:L) with no integrity or availability effect. The vuln.today decision label is 'this_month' - a prioritize-and-patch signal, not act_now/emergency. No CISA KEV listing is present and no EPSS score was supplied, so there is no evidence of active or widespread exploitation; exploitation status is 'no public exploit identified at time of analysis.' The four references are a Red Hat advisory, Red Hat and Samba bugzilla entries, and a Samba merge request (the fix) - none is working exploit code. Conflicting-signal note: the input Tag labels this 'Authentication Bypass,' but both the CWE (Missing Authorization) and the description (a PR:L authenticated user bypassing a read restriction) describe an authorization/information-disclosure flaw, not an authentication bypass - the tag overstates the nature of the issue. Net: a real priority for AD DC / LDAP operators to schedule a patch, but low real-world risk given authentication requirement, limited (one-bit-at-a-time integer) disclosure, and no exploitation evidence.

Exploit ScenarioDerived

A low-privileged but authenticated directory user who can list a given directory object issues an LDAP search testing a single bit of a restricted integer attribute; the server includes the object in results when that bit is set, strips the attribute, and thereby leaks the bit. Repeating the search for each bit reconstructs the full integer value the user was never authorized to read. No public exploit code is identified, and the oracle only discloses integer-typed attributes - password/key bytes stored as non-integers are not returned as numbers.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 30, 2026

An information disclosure flaw in Samba's libldb LDAP matching module (ldb_match_bitmask() in ldb_match.c) allows an authenticated, low-privileged user who can list a directory object to recover integer-typed attribute values that the directory intends to withhold, by issuing repeated bitwise/bitmask LDAP searches one bit at a time. Affected deployments are those exposing the LDAP matching module, such as Samba acting as an AD domain controller or LDAP directory. Non-integer values, including passwords or keys stored as bytes, are not returned as numbers per the advisory, and no public exploit or active exploitation is indicated in the available data; EPSS was not provided. This is a genuine but modest-severity information-disclosure issue, not a top-tier emergency.

RemediationAI

Vendor-released patch: not confirmed in the available data; the upstream fix is referenced by Samba GitLab merge request 4811 (https://gitlab.com/samba-team/samba/-/merge_requests/4811), so an upstream fix is available as a merge request, but a released patched version is not independently confirmed - check Samba Bugzilla 16214 (https://bugzilla.samba.org/show_bug.cgi?id=16214) and Red Hat Bugzilla 2585960 (https://bugzilla.redhat.com/show_bug.cgi?id=2585960) for the version that carries the corrected ldb_match_bitmask() logic and apply the vendor build for your distribution. Track distribution errata via the Red Hat advisory page (https://access.redhat.com/security/cve/CVE-2026-125635). Where patching cannot be applied immediately, the exposure is limited by the preconditions the assessment confirms: the attacker must already hold an authenticated, low-privileged account and must be able to list the target object, and only integer-typed attributes are exposed - restricting LDAP search access to trusted principals and limiting which accounts can list objects containing sensitive integer attributes reduces exposure, with the trade-off of tightening directory usability for ordinary users.

Affected ProductsAI

Samba deployments that expose the libldb LDAP matching module are affected, most notably Samba configured as an Active Directory domain controller or otherwise serving an LDAP directory, where ldb_match.c and the ldb_match_bitmask() function are reachable through LDAP search filters. No specific version ranges or CPE strings were supplied in the available intelligence. The reporter is Red Hat, and vendor tracking is available through the Red Hat security page (https://access.redhat.com/security/cve/CVE-2026-125635), Red Hat Bugzilla 2585960 (https://bugzilla.redhat.com/show_bug.cgi?id=2585960), Samba Bugzilla 16214 (https://bugzilla.samba.org/show_bug.cgi?id=16214) and the upstream Samba GitLab merge request 4811 (https://gitlab.com/samba-team/samba/-/merge_requests/4811); ENISA tracks the issue as EUVD-2026-139512.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libldb is Samba's embedded LDAP-like database library, and its matching module implements the server-side filter evaluation used for LDAP searches. The flaw is classified CWE-862 (Missing Authorization): in ldb_match_bitmask(), an attribute the caller is not permitted to read is marked as such by the directory, yet the bitwise comparison still operates on that value before the attribute is stripped from the response. The observable side channel is presence or absence of the object in the result set - when the probed bit is set the object is included, and the disallowed attribute is removed from the answer, so the bit is inferred from inclusion alone. Because the leak is one bit per query, reconstructing a full integer requires repeated searches, and the disclosure is confined to integer-typed attributes since byte-oriented values such as passwords or keys are not compared or returned numerically. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N) confirms network reachability, low privileges and confidentiality-only, low-scope impact.

Know when Samba gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 4.3 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.3 MEDIUM

Authenticated low-privileged network user (PR:L, AV:N, AC:L) abuses a missing read-authorization check to leak a restricted integer attribute, giving limited confidentiality (C:L) and no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

A missing authorization check has been found in the ldb_match_bitmask() function in ldb_match.c of the LDAP matching module in the libldb library of Samba. The directory marks an attribute the caller is not allowed to read, and the bitwise comparison uses that value anyway. A low-privileged network attacker or user who can list a directory object searches for one bit of an integer attribute on that object. The directory includes the object when that bit is set, and it removes the attribute from the answer. Repeating the search for each bit discloses the integer. A value that is not an integer, including a password or a key stored as bytes, is not returned as a number.

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
High
Samba is widely deployed enterprise AD/LDAP and file-sharing software across Linux environments
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

23
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +22
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Samba

View all
CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-1182 CRITICAL POC
10.0 Apr 10

The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement valida

CVE-2015-0240 CRITICAL POC
10.0 Feb 24

The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1

CVE-2016-2118 HIGH POC
7.5 Apr 12

The MS-SAMR and MS-LSAD protocol implementations in Samba 3.x and 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x befor

CVE-2013-4124 MEDIUM POC
5.0 Aug 06

Integer overflow in the read_nttrans_ea_list function in nttrans.c in smbd in Samba 3.x before 3.5.22, 3.6.x before 3.6.

CVE-2014-3560 HIGH
7.9 Aug 06

NetBIOS name services daemon (nmbd) in Samba 4.0.x before 4.0.21 and 4.1.x before 4.1.11 allows remote attackers to exec

CVE-2023-34966 HIGH
7.5 Jul 20

An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. Rated high severity (CVSS 7.5), th

CVE-2023-34967 MEDIUM
5.3 Jul 20

A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. Rated medium severity (CVSS 5.3),

CVE-2012-0870 HIGH
7.9 Feb 23

Heap-based buffer overflow in process.c in smbd in Samba 3.0, as used in the file-sharing service on the BlackBerry Play

CVE-2015-7540 HIGH
7.5 Dec 29

The LDAP server in the AD domain controller in Samba 4.x before 4.1.22 does not check return values to ensure successful

CVE-2017-15275 HIGH
7.5 Nov 27

Samba before 4.7.3 might allow remote attackers to obtain sensitive information by leveraging failure of the server to c

CVE-2017-14746 CRITICAL
9.8 Nov 27

Use-after-free vulnerability in Samba 4.x before 4.7.3 allows remote attackers to execute arbitrary code via a crafted S

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy