Cloudanix VulnDB

CVE-2012-1164

None

CVSS

—

EPSS

3.6%

Published

Jun 29, 2012

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in directory lookup software lets anyone on the network send one special request that instantly stops the service, cutting off access to user and system information.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Denial Of Service
Component
Network Service
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw triggers an assertion failure inside slapd when an LDAP search request arrives with attrsOnly set to true, causing empty attribute lists to be generated and the daemon to terminate.

Why it matters to the business

Causes abrupt loss of directory service availability; with 98 downstream dependents the outage can cascade into authentication, identity, and application failures across multiple systems.

How an attack unfolds

An unauthenticated remote attacker sends a single crafted LDAP search query that sets the attrsOnly flag to true; the server processes the request, hits the internal assertion, and exits, producing a denial of service.

How to fix it

Upgrade OpenLDAP to 2.4.30 or newer; for tensorflow (Bitnami) deployments apply the fixed release 2.1.4.

How to confirm the fix worked

Confirm slapd version is 2.4.30 or later; replay a search query with attrsOnly=true in a test environment and verify the daemon remains running.

Typical attack path

  1. Locate an exposed LDAP server (port 389/636)
  2. Craft an LDAP search request with attrsOnly=true
  3. Transmit the request to the server
  4. Server hits assertion and terminates

How to detect it

Inspect slapd logs for assertion-failure messages or sudden daemon exits correlated with LDAP search activity; review system crash reports and service restart events.

  • assertion failure
  • slapd.*daemon exit
  • attrsOnly.*true

What your security team should do

  • Apply the fixed version immediately given the long public exposure window
  • Restrict inbound LDAP traffic to trusted sources only
  • Enable process monitoring and automatic restart with crash logging

The record

slapd in OpenLDAP before 2.4.30 allows remote attackers to cause a denial of service (assertion failure and daemon exit) via an LDAP search query with attrsOnly set to true, which causes empty attributes to be returned.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 openldap 0 2.4.31-1
Debian:11 openldap 0 2.4.31-1
Debian:12 openldap 0 2.4.31-1
Debian:13 openldap 0 2.4.31-1
Debian:6.0 openldap 0 2.4.23-7.3+deb6u1
Red Hat:enterprise_linux:6::client openldap 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::client openldap-clients 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::client openldap-debuginfo 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::client openldap-devel 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::client openldap-servers 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::client openldap-servers-sql 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::computenode openldap 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::computenode openldap-clients 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::computenode openldap-debuginfo 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::computenode openldap-devel 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::computenode openldap-servers 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::computenode openldap-servers-sql 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::server openldap 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::server openldap-clients 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::server openldap-debuginfo 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::server openldap-devel 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::server openldap-servers 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::server openldap-servers-sql 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::workstation openldap 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::workstation openldap-clients 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::workstation openldap-debuginfo 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::workstation openldap-devel 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::workstation openldap-servers 0 0:2.4.23-26.el6
Red Hat:enterprise_linux:6::workstation openldap-servers-sql 0 0:2.4.23-26.el6
Ubuntu:14.04:LTS openldap 0 2.4.31-1+nmu2ubuntu8.1

Related vulnerabilities