Back to Intelligence

CVE-2026-108122: FreeIPA All-Zero NT Hash Enables Pass-the-Hash — Detection and Remediation Guide

SA
Security Arsenal Team
November 30, 2026
13 min read

On the disclosure timeline for 2026, NVD published CVE-2026-108122, a CVSS 9.8 (Critical) vulnerability in FreeIPA that is remotely exploitable over the network with no authentication required beyond knowledge of a valid username. The flaw is a textbook example of how a subtle implementation defect — writing a predictable value where a value should have been left unset — becomes a full identity compromise when it interacts with a legacy authentication protocol.

In affected FreeIPA deployments where NT hash generation is disabled, the ipaNTHash attribute is populated with an all-zero hash on the user's next password change instead of remaining unset. FreeIPA's Samba passdb backend accepts this attribute without validating its contents. The result: any attacker who can reach the Samba service and knows a username can perform NTLM pass-the-hash authentication as that user — no password, no cracking, no credential theft required.

The blast radius expands dramatically on servers configured for Active Directory trust. In those environments, impersonation of privileged accounts can expose cross-forest trust configuration to unauthorized access or modification. For any organization using FreeIPA as an identity bridge into AD, treat this as an emergency-change-level patch event.

Technical Analysis

Affected Component

  • Product: FreeIPA (the open-source identity management solution built on 389 Directory Server, Kerberos, Dogtag PKI, and Samba integration)
  • Affected element: The ipaNTHash attribute handling combined with FreeIPA's Samba passdb backend
  • Attack vector: Network (CVSS 3.x vector: NETWORK, AV:N — no local access or user interaction required)
  • CVSS: 9.8 (Critical) per NVD
  • Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-108122

How the Vulnerability Works (Defender's View of the Attack Chain)

Understanding the exploit chain is essential because it shapes every detection opportunity:

  1. Precondition — configuration drift. The vulnerable state exists when NT hash generation is disabled in FreeIPA (a common hardening choice in environments that want to avoid storing NTLM-compatible credential material). Ironically, a hardening decision creates the exposure.
  2. Trigger — a password change occurs. When a user changes their password, FreeIPA writes the ipaNTHash attribute. Instead of leaving the attribute unset, it writes a predictable all-zero value (the NTLM hash equivalent of 00000000000000000000000000000000).
  3. Failure — no validation in passdb. FreeIPA's Samba passdb backend consumes the ipaNTHash attribute to satisfy NTLM authentication requests. It does not validate the hash contents — an all-zero hash is accepted as legitimate credential material.
  4. Exploitation — pass-the-hash without theft. A remote attacker who knows a valid username initiates an NTLM authentication against the Samba service and supplies the known all-zero hash. Authentication succeeds. The attacker now operates as that user.
  5. Escalation — AD trust abuse. On FreeIPA servers configured for Active Directory trust, the impersonated context can extend to privileged accounts, enabling unauthorized access to or modification of cross-forest trust configuration — a direct threat to the integrity of the AD trust relationship.

This is not pass-the-hash in the classic sense (stealing a hash from memory or a database). The attacker doesn't need to steal anything — the hash value is a deterministic constant. The only preconditions are network reachability to the Samba service and a valid username, both of which are trivially obtainable in most enterprise environments.

Exploitation Status

At the time of writing, the NVD record is freshly published. Defenders should assume the following until proven otherwise:

  • The exploitation mechanics are fully deterministic and require no exploit development skill — the 'exploit' is standard NTLM authentication tooling (e.g., any pass-the-hash-capable client) pointed at the Samba service with a zeroed hash.
  • Because the technique abuses legitimate NTLM authentication flows, network-level exploitation is indistinguishable from normal authentication traffic unless you are specifically looking for the all-zero hash pattern or anomalous authentication sources.
  • Monitor CISA's Known Exploited Vulnerabilities (KEV) catalog for inclusion; a 9.8 network-exploitable identity flaw of this simplicity is a strong KEV candidate if in-the-wild activity emerges.

Detection & Response

The detection strategy must operate at three layers: (1) identity/attribute state on the FreeIPA directory, (2) Samba/NTLM authentication telemetry, and (3) host-level evidence of pass-the-hash tooling reaching Linux servers.

Sigma Rules

YAML
---
title: Suspicious NTLM Authentication Success from Non-Standard Source (Potential Pass-the-Hash)
id: 8b3f2c19-4d7a-4e91-a3c2-1f5d8a6b9c0d
status: experimental
description: Detects successful NTLM authentication events where the workstation/source is unusual for the account, a pattern consistent with pass-the-hash abuse of predictable ipaNTHash values in FreeIPA (CVE-2026-108122). Tune against known Samba client baselines.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-108122
  - https://attack.mitre.org/techniques/T1550/002/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.lateral_movement
  - attack.t1550.002
logsource:
  category: authentication
  product: linux
detection:
  selection:
    EventType: 'Authentication'
    AuthenticationPackage: 'NTLM'
    Result: 'success'
  filter_known_clients:
    SourceWorkstation|in:
      - 'KNOWN_WORKSTATION_1'
      - 'KNOWN_WORKSTATION_2'
  condition: selection and not filter_known_clients
falsepositives:
  - Newly provisioned workstations authenticating to Samba shares
  - Service accounts using NTLM from automation hosts
level: high
---
title: FreeIPA Directory Modification of ipaNTHash Attribute
id: 2f7a9d41-6c8b-4f12-b5e3-9d1c7a4e2f8b
status: experimental
description: Detects LDAP modification operations targeting the ipaNTHash attribute, indicating a password change event that may have written the predictable all-zero hash associated with CVE-2026-108122. High-volume in large environments; use for audit and exposure scoping rather than real-time alerting.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-108122
  - https://attack.mitre.org/techniques/T1098/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.persistence
  - attack.t1098
logsource:
  category: audit
  product: linux
detection:
  selection:
    CommandLine|contains:
      - 'ipaNTHash'
      - 'changetype: modify'
falsepositives:
  - Legitimate user password changes in FreeIPA environments
  - Directory synchronization operations
level: medium
---
title: Pass-the-Hash Tooling Execution on Linux Hosts
title_notes: Detects execution of common pass-the-hash capable tools (impacket, samba-client with hash auth) on FreeIPA/Samba server segments
id: 5c1e8b74-3a9d-4f62-a8e7-2b6d9f3c1a45
status: experimental
description: Detects process execution of pass-the-hash capable tooling such as impacket modules or smbclient invoked with hash-based authentication flags on or targeting FreeIPA server segments, consistent with exploitation of CVE-2026-108122.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2026-108122
  - https://attack.mitre.org/techniques/T1550/002/
author: Security Arsenal
date: 2026/01/15
tags:
  - attack.lateral_movement
  - attack.t1550.002
logsource:
  category: process_creation
  product: linux
detection:
  selection:
    CommandLine|contains:
      - 'impacket'
      - 'wmiexec'
      - 'psexec'
      - 'smbclient --pw-nt-hash'
      - 'atexec'
      - '--hashes'
falsepositives:
  - Internal red team or penetration testing activity
  - Security tooling that legitimately uses impacket libraries
level: high

Tuning guidance: Rule 1 is your highest-fidelity signal but requires a baseline of legitimate Samba clients; deploy it in detection-only mode for a week before enabling alerting. Rule 2 is intentionally audit-grade — in any environment with routine password churn it will be high-volume, so use it for scoping exposure (which accounts have had password changes since NT hash generation was disabled), not for paging the on-call. Rule 3 catches the tooling layer and is appropriate for real-time alerting on server segments where impacket has no business executing.

KQL — Microsoft Sentinel Hunt Query

FreeIPA authentication and syslog data ingested into Sentinel via Syslog/CEF connectors allows hunting for anomalous NTLM authentication against Samba services, including patterns consistent with pass-the-hash abuse of CVE-2026-108122:

KQL — Microsoft Sentinel / Defender
// Hunt: Anomalous NTLM authentication successes against FreeIPA Samba services
// Focus: source hosts not in the known-client baseline, off-hours activity, and
// authentication bursts across multiple usernames (spray-style pass-the-hash testing)
let KnownClients = dataclass(SourceIP:string) [
    "10.0.1.50",
    "10.0.1.51"
];
Syslog
| where Facility == "auth" or ProcessName in ("smbd", "samba")
| where SyslogMessage has_any ("NTLM", "ntlmssp", "authentication")
| extend AuthUser = extract(@"user[=\s]([\w\-\.]+)", 1, SyslogMessage)
| extend AuthResult = iif(SyslogMessage has_any ("success", "succeeded", " OK"), "success", "failure")
| where AuthResult == "success"
| where Computer !in_ ("known-freeipa-client-1", "known-freeipa-client-2")
| summarize AuthCount = count(),
            DistinctUsers = dcount(AuthUser),
            Users = make_set(AuthUser),
            FirstSeen = min(TimeGenerated),
            LastSeen = max(TimeGenerated)
          by Computer, ProcessName, SourceIP = column_ifexists("HostIP", "")
| where DistinctUsers > 3 or AuthCount > 50
| sort by DistinctUsers desc

Why the multi-user pivot matters: A deterministic all-zero hash invites exactly the behavior a real credential never produces — an attacker can test dozens of usernames in rapid succession because the credential material never changes. A single source IP successfully authenticating as many distinct accounts within a short window is nearly pathognomonic for this exploit. Baseline your legitimate Samba clients first; replace the placeholder values in KnownClients and the Computer exclusions with your actual inventory.

If you also ingest Windows security telemetry from the AD side of the trust, pivot into SecurityEvent (EventID 4624, logon type 3, NTLM) to correlate cross-forest authentication attempts from FreeIPA-segment source IPs.

Velociraptor VQL

For endpoint forensics on FreeIPA servers, hunt for evidence of hash-based authentication tooling and unexpected processes holding network connections to Samba ports:

VQL — Velociraptor
-- CVE-2026-108122 Hunt: pass-the-hash tooling and suspicious SMB connectivity
-- on FreeIPA/Samba server endpoints

-- Part 1: Process execution matching pass-the-hash tooling patterns
SELECT Pid, Name, CommandLine, Exe, Username, CreateTime
FROM pslist()
WHERE CommandLine =~ 'impacket|wmiexec|psexec|atexec|--hashes|pw-nt-hash'
   OR Name =~ '(?i)(impacket|crackmapexec|netexec)'

-- Part 2 (run separately or combine with UNION): active connections to
-- Samba service ports from unexpected source processes
SELECT Pid, Name, Path, Laddr, Raddr, Status
FROM netstat()
WHERE (Raddr =~ ':445' or Raddr =~ ':139' or Raddr =~ ':135')
  AND Status == 'ESTABLISHED'
  AND NOT Name =~ '(?i)(smbd|samba|winbindd|sssd)'

Interpretation: On a FreeIPA server, the only processes that should hold established connections on 445/139 are smbd/winbindd-family daemons. Any other process with an established SMB connection — particularly outbound from the server to a client segment — is an anomaly worth investigating. Pair Part 2's results with Part 1 to see whether the same PID shows up in the tooling hunt; a match is high-confidence evidence of exploitation or red-team activity.

Remediation Script — Exposure Scoping and Verification (Bash)

The script below is designed for FreeIPA servers. It inventories user entries carrying the predictable all-zero ipaNTHash value (the direct exposure indicator), reports current Samba/passdb configuration state, and checks installed FreeIPA package versions so you can confirm patch level after upgrade. Run with ldapsearch credentials appropriate for your environment (a privileged bind DN or GSSAPI via kinit as an admin principal).

Bash / Shell
#!/bin/bash
# CVE-2026-108122 exposure scoping for FreeIPA servers
# Run on or against the FreeIPA directory. Requires ldapsearch (openldap-clients)
# and a privileged bind. Adjust LDAP_HOST, BASE_DN, and auth flags to your env.

set -euo pipefail
LDAP_HOST="ipa.example.com"
BASE_DN="dc=example,dc=com"
ALL_ZERO_NT="00000000000000000000000000000000"

echo "[+] FreeIPA package version (verify against fixed version from vendor advisory):"
rpm -q ipa-server ipa-server-trust-ad 2>/dev/null || dpkg -l | grep -i freeipa || true

echo "[+] Checking whether AD trust components are installed (higher-risk config):"
ipa trust-show --all 2>/dev/null | head -20 || echo "    (ipa CLI not available or no trust configured)"

echo "[+] Searching directory for users with predictable all-zero ipaNTHash (EXPOSED):"
# Authenticate first, e.g.: kinit admin  (GSSAPI) then use -Y GSSAPI, or use -D/-W for simple bind
ldapsearch -x -H "ldap://${LDAP_HOST}" \
  -D "cn=Directory Manager" -W \
  -b "${BASE_DN}" \
  "(ipaNTHash=${ALL_ZERO_NT})" \
  uid ipaNTHash 2>/dev/null | grep -E "^uid:|^dn:" || echo "    No exposed entries found (or auth failed)."

echo "[+] Listing accounts modified since NT hash generation was disabled (audit scope):"
echo "    (Adjust timestamp to the date you disabled NT hash generation)"
ldapsearch -x -H "ldap://${LDAP_HOST}" \
  -D "cn=Directory Manager" -W \
  -b "${BASE_DN}" \
  "(&(objectClass=posixAccount)(modifyTimestamp>=20260101000000Z))" \
  uid modifyTimestamp 2>/dev/null | grep -E "^uid:" || true

echo "[+] Samba service exposure on this host:"
ss -tlnp 2>/dev/null | grep -E ':445|:139|:135' || echo "    No Samba ports listening locally."

echo "[+] Done. Any user listed under the all-zero ipaNTHash search is impersonable TODAY."
echo "    Force a password change for those accounts AFTER applying the fixed package,"
echo "    or the predictable value persists."

Critical nuance the script surfaces: patching alone does not repair already-written all-zero hashes. The vulnerable attribute values written under the defective code remain in the directory until each affected user changes their password again under the fixed version. Your remediation plan must include a forced password change (or targeted attribute cleanup) for every account surfaced by the exposure search — otherwise you close the door on new writes while leaving the old skeleton keys in the lock.

Remediation

Priority: Emergency. CVSS 9.8, network-exploitable, no authentication prerequisite, deterministic exploitation mechanics, and a direct path to privileged impersonation in AD-trust configurations.

  1. Patch immediately. Apply the fixed FreeIPA packages per your vendor advisory (Red Hat, and downstream distributions shipping FreeIPA, publish fixes via their security channels). Confirm the fixed package version against the official advisory linked from the NVD record: https://nvd.nist.gov/vuln/detail/CVE-2026-108122. Do not rely on distribution mirrors lagging the advisory — verify the changelog explicitly references CVE-2026-108122.

  2. Repair existing credential material. After patching, force a password change for every account that had a password change while NT hash generation was disabled — these are the accounts whose ipaNTHash holds the predictable all-zero value. Until this is done, those accounts remain impersonable even on patched servers.

  3. Restrict network reachability to Samba services. As a defense-in-depth measure, limit which client segments can reach TCP 445/139/135 on FreeIPA servers. The exploit requires network reachability to the Samba passdb backend; segmentation shrinks the attack surface to only hosts with a legitimate need.

  4. Audit AD trust configuration. On servers with Active Directory trust configured, review trust objects, cross-forest access, and any privileged group memberships for unauthorized changes during your exposure window. Impersonation of privileged accounts can be used to modify trust configuration — treat any unexpected trust modification as a potential intrusion indicator and investigate accordingly.

  5. Hunt retroactively. Run the KQL query and VQL artifact above across your historical telemetry window. Because exploitation rides on legitimate NTLM flows, confirm whether any source host authenticated as an unusually broad set of usernames — the signature behavior of someone iterating accounts with a known hash.

  6. Reconsider the NT-hash configuration decision. If NT hash generation was disabled as a hardening measure, revisit that decision in light of this flaw's mechanics: the hardening choice created the exposure. Post-patch, work with your IdM architects to confirm the corrected behavior (attribute left unset rather than zeroed) and validate via the ldapsearch checks above.

  7. Monitor CISA KEV. If CVE-2026-108122 lands in the KEV catalog, federal deadlines apply to applicable organizations and the remediation clock for everyone else shortens accordingly. Treat KEV inclusion as a forcing function, not a prerequisite — the exploitation simplicity here warrants action now.

Bottom Line

CVE-2026-108122 is dangerous precisely because it is boring. There is no exploit chain to reverse-engineer, no payload to sandbox — just a predictable credential value accepted by a backend that never asked whether it was valid. Detection hinges on behavioral outliers (one source authenticating as many users; tooling on server segments), and remediation is a two-part job: patch the code and repair the poisoned directory state. Do one without the other and you have not finished.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.