Skip to main content

Netflix Lemur CVE-2026-44304

HIGH
LDAP Injection (CWE-90)
2026-05-06 https://github.com/Netflix/lemur GHSA-3r34-vq8m-39gh
8.1
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
Source Code Evidence Fetched
May 06, 2026 - 19:47 vuln.today
Analysis Generated
May 06, 2026 - 19:47 vuln.today
CVE Published
May 06, 2026 - 19:16 nvd
HIGH 8.1

DescriptionGitHub Advisory

Description

Overview

Lemur's LDAP authentication module (lemur/auth/ldap.py) constructs LDAP search filters using unsanitized user input via Python string interpolation. An authenticated LDAP user can inject LDAP filter metacharacters through the username field to manipulate group membership queries and escalate their privileges to administrator.

Vulnerable Code

Location: lemur/auth/ldap.py, _bind() method

Filter 1 - User lookup (line ~161):

python
ldap_filter = "userPrincipalName=%s" % self.ldap_principal

self.ldap_principal is derived directly from args["username"] submitted at POST /auth/login with no sanitization. The ldap.filter.escape_filter_chars() function is never called.

Filter 2 - Active Directory group lookup (line ~189):

python
groupfilter = "(&(objectclass=group)(member:1.2.840.113556.1.4.1941:={}))".format(userdn)

The userdn value is derived from the LDAP response to the first unsanitized query, making it potentially tainted as well.

Impact

An authenticated LDAP user can:

  1. Inject LDAP filter syntax into the username field during login
  2. Manipulate the group membership query to return arbitrary groups
  3. Be assigned the admin role or any other privileged role in Lemur
  4. Gain unauthorized access to all certificates, private keys (via /certificates/<id>/key), and CA configurations
  5. Issue certificates under any authority

Exploitation Constraint

The simple_bind_s() call must succeed before the injectable filter is reached, so the attacker requires valid LDAP credentials. This is a post-authentication privilege escalation.

Steps to Reproduce

  1. Deploy Lemur with LDAP authentication enabled:
python
   LDAP_AUTH = True
   LDAP_IS_ACTIVE_DIRECTORY = True
   LDAP_BIND_URI = "ldaps://dc.corp.example.com"
   LDAP_BASE_DN = "DC=corp,DC=example,DC=com"
   LDAP_EMAIL_DOMAIN = "corp.example.com"
  1. Create a valid LDAP user account
  2. Send login request with crafted username containing LDAP metacharacters:
   POST /auth/login
   Content-Type: application/json

   {
     "username": "validuser)(memberOf=CN=LemurAdmins,DC=corp,DC=example,DC=com",
     "password": "validpassword"
   }
  1. The LDAP filter becomes:
   userPrincipalName=validuser)(memberOf=CN=LemurAdmins,DC=corp,DC=example,DC=com@corp.example.com
  1. Depending on the LDAP server's parsing, this can alter query semantics
  2. The user is assigned roles they should not have access to

Remediation

Apply ldap.filter.escape_filter_chars() to all user-controlled values before interpolation:

python
from ldap.filter import escape_filter_chars
# Fix 1: User lookup filter
ldap_filter = "userPrincipalName=%s" % escape_filter_chars(self.ldap_principal)
# Fix 2: Active Directory group filter
groupfilter = "(&(objectclass=group)(member:1.2.840.113556.1.4.1941:={}))".format(
    escape_filter_chars(userdn)
)

Resources

  • CWE-90: https://cwe.mitre.org/data/definitions/90.html
  • OWASP LDAP Injection: https://owasp.org/www-community/attacks/LDAP_Injection
  • Python ldap.filter.escape_filter_chars: https://www.python-ldap.org/en/python-ldap-3.4.0/reference/ldap-filter.html

AnalysisAI

LDAP filter injection in Netflix Lemur certificate management platform allows authenticated users with valid LDAP credentials to escalate privileges to administrator by injecting metacharacters into the username field during login. Attackers manipulate group membership queries to gain unauthorized admin roles, enabling access to all certificates, private keys via /certificates/<id>/key endpoint, and CA configurations. Vendor-released patch confirmed in version 1.9.0 (GitHub advisory GHSA-3r34-vq8m-39gh). CVSS 8.1 indicates high confidentiality and integrity impact with low attack complexity from network-authenticated attackers. No public exploit code identified at time of analysis, though detailed reproduction steps exist in the advisory.

Technical ContextAI

This vulnerability stems from unsafe Python string interpolation in Lemur's LDAP authentication module (lemur/auth/ldap.py). The code constructs LDAP search filters using percent-formatting and .format() methods without calling Python-LDAP's ldap.filter.escape_filter_chars() sanitization function. CWE-90 (Improper Neutralization of Special Elements used in an LDAP Query) occurs at two injection points: the userPrincipalName filter receiving unsanitized args["username"] from POST /auth/login, and the Active Directory group membership filter using userdn derived from the first tainted query. LDAP filter syntax uses parentheses, ampersands, and pipes as logical operators; injecting these metacharacters allows attackers to break out of intended filter structure and introduce arbitrary conditions. The vulnerability affects the python-ldap library integration pattern where developers bypass built-in escaping functions. Affected package identifier: pkg:pip/lemur versions prior to 1.9.0.

RemediationAI

Upgrade to Netflix Lemur version 1.9.0 or later, which contains fixes for this LDAP injection vulnerability as confirmed in the GitHub security advisory GHSA-3r34-vq8m-39gh (https://github.com/Netflix/lemur/security/advisories/GHSA-3r34-vq8m-39gh) and release notes (https://github.com/Netflix/lemur/releases/tag/v1.9.0). The patch applies ldap.filter.escape_filter_chars() sanitization to user-controlled input before LDAP filter construction. If immediate patching is not feasible, disable LDAP authentication (set LDAP_AUTH = False) and use alternative authentication mechanisms such as OAuth, SAML, or local database authentication until upgrade can be completed-note this workaround prevents LDAP users from accessing the system entirely. As a compensating control, implement strict LDAP account monitoring and audit logging for privilege escalation events, though this is detective rather than preventive. Network segmentation to restrict access to Lemur's /auth/login endpoint to trusted networks reduces exposure but does not eliminate risk from insider threats or compromised low-privilege accounts. Review LDAP group membership assignments and certificate access logs for unauthorized administrative actions if breach is suspected post-deployment.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2026-55255 HIGH POC
8.4 Jun 19

Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing

Share

CVE-2026-44304 vulnerability details – vuln.today

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