Skip to main content

Netflix Lemur CVE-2026-44305

MEDIUM
Improper Certificate Validation (CWE-295)
2026-05-06 https://github.com/Netflix/lemur GHSA-vr7c-r5gj-j3w5
6.8
CVSS 3.1 · Vendor: https://github.com/Netflix/lemur
View

Attack ChainAIDerived

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

  1. Recon
    Compromise network path
  2. Delivery
    Deploy TLS proxy
  3. Exploit
    Accept self-signed LDAP certificate
  4. Install
    Extract credentials from intercepted TLS session
  5. C2
    Inject admin group membership in LDAP response
  6. Execute
    Authenticate to Lemur as admin
  7. Impact
    Access PKI and certificate management functions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires the following SPECIFIC conditions: (1) LDAP_AUTH must be enabled in Lemur configuration (LDAP_AUTH = True); (2) LDAP_USE_TLS must be set to True, which enables the vulnerable code path; (3) The LDAP_BIND_URI must point to an LDAP server reachable over the network. The vulnerability activates unconditionally when these configuration settings are present-there is no additional feature flag or special deployment mode. The attacker must have network-layer positioning between Lemur and the LDAP server (adjacent network, VLAN access, routing control, or compromise of intermediate network infrastructure). The vulnerability does NOT require user interaction, authentication to Lemur, or special Lemur functionality-it triggers on any LDAP authentication attempt. What LIMITS exploitation: (1) the attacker must be on the network path (AV:A in CVSS), not remotely exploitable via the internet; (2) the LDAP server must be configured to use TLS (ldaps:// protocol or STARTTLS), as exploitation of unencrypted LDAP does not benefit from certificate bypass; (3) organizations that do not use LDAP for Lemur authentication are unaffected.

Impact

CVSS 6.8 (AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N) indicates high confidentiality and integrity impact but requires adjacent network access and high attack complexity, reflecting the MITM positioning requirement. The high complexity factor (AC:H) is appropriate because the attacker must be on the network path between Lemur and LDAP-not trivial but absolutely possible in shared network segments, compromised routers, or cloud environments where VLAN isolation is misconfigured. Real-world risk is SEVERE despite the CVSS complexity penalty because: (1) the vulnerability is in a certificate management system whose entire purpose is TLS security, creating an ironic and high-value target; (2) credential interception leads directly to PKI compromise, affecting all downstream certificate operations and potentially the organization's entire TLS infrastructure; (3) LDAP response modification allows privilege escalation without credential knowledge; (4) the vulnerability is unconditional-it activates whenever LDAP_USE_TLS is set to True, which is the documented configuration for production deployments; (5) no special attack sophistication is required once network positioning is achieved-tools like mitmproxy or stunnel suffice. The CVSS vector is consistent with the description: AV:A correctly specifies adjacent network access (MITM positioning), AC:H reflects the MITM setup effort, PR:N and UI:N confirm no credentials or user interaction needed once attack position is established, S:U means scope is limited to the LDAP authentication mechanism, and C:H/I:H reflect credential and response modification impacts. No EPSS or KEV status was provided in the input, but the fix confirmation in version 1.9.0 and the GitHub Security Advisory indicate this is a credible, documented vulnerability rather than speculative. The absence of POC code in references does not diminish risk-MITM proxy setup is a well-known technique.

Exploit ScenarioDerived

An attacker positioned on the network between a Lemur instance and its LDAP server (e.g., via ARP spoofing on a shared network segment, BGP hijacking, compromised network appliance, or cloud hypervisor compromise) intercepts the TLS connection. The attacker presents a self-signed or attacker-controlled certificate using mitmproxy or stunnel, and because Lemur's vulnerable code sets OPT_X_TLS_NEVER, the certificate is accepted without validation. The attacker decrypts the LDAP authentication request in transit, capturing the username and password in plaintext. The attacker then either exfiltrates the credentials for offline use or modifies the LDAP response to inject administrative group memberships, immediately gaining admin access to Lemur's certificate management interface. Subsequent actions include issuing unauthorized certificates, revoking legitimate ones, or accessing stored private keys.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 06, 2026

Man-in-the-middle attacks can intercept LDAP credentials in Lemur when LDAP TLS is enabled because the authentication module globally disables TLS certificate verification using ldap.OPT_X_TLS_NEVER. Attackers positioned between Lemur and the LDAP server can capture plaintext usernames and passwords, modify LDAP group responses to grant admin access, and compromise the entire PKI infrastructure managed by Lemur. The vulnerability affects Lemur versions before 1.9.0 and is confirmed fixed in version 1.9.0.

RemediationAI

Upgrade Lemur to version 1.9.0 or later, which fixes the vulnerability by replacing the global ldap.set_option() call with instance-level options and changing OPT_X_TLS_NEVER to OPT_X_TLS_DEMAND to enforce strict certificate validation. The patched code sets TLS options on the LDAP client instance rather than globally, allowing proper per-connection verification. For organizations unable to upgrade immediately, the following workarounds provide limited mitigation: (1) disable LDAP_USE_TLS and instead configure LDAP_BIND_URI to use ldaps:// protocol with operating system-level TLS verification, though this does not fully remediate the code-level issue; (2) restrict network access to the LDAP server to prevent MITM positioning by implementing network segmentation, firewall rules blocking traffic from unauthorized sources, and monitoring for certificate mismatches; (3) deploy LDAP over a VPN or IPsec tunnel to the directory server, adding a second encryption layer independent of the vulnerable application code. However, these workarounds do not address the root cause and must be considered temporary until upgrade to 1.9.0. Reference the GitHub Security Advisory at https://github.com/advisories/GHSA-vr7c-r5gj-j3w5 for additional context and the release notes at https://github.com/Netflix/lemur/releases/tag/v1.9.0 for upgrade instructions.

Affected Packages

pypi lemur fix: 1.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

Lemur is a certificate management platform that uses python-ldap for LDAP authentication when LDAP_USE_TLS = True. The vulnerable code in lemur/auth/ldap.py calls the global ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER) method, which disables TLS certificate verification at the Python process level rather than on a per-connection basis. The OPT_X_TLS_NEVER constant means the OpenSSL library accepts all certificates regardless of validity-self-signed, expired, wrong hostname, or revoked certificates are silently accepted. This is a CWE-295 (Improper Certificate Validation) vulnerability in which TLS certificate pinning and hostname verification are completely bypassed, enabling straightforward MITM attacks. The vulnerability exists because there is no configuration option to enable proper certificate validation, and the insecure setting is hardcoded when TLS is enabled.

Know when Python 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 (https://github.com/Netflix/lemur) PRIMARY 6.8 MEDIUM
AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/Netflix/lemur) · only source for this CVE.

CVSS VectorVendor: https://github.com/Netflix/lemur

Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

DescriptionCVE.org

Description

Overview

When LDAP TLS is enabled (LDAP_USE_TLS = True), Lemur's LDAP authentication module unconditionally disables TLS certificate verification at the global ldap module level. This allows a man-in-the-middle attacker positioned between Lemur and the LDAP server to intercept all authentication credentials.

Vulnerable Code

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

python
if self.ldap_use_tls:
    ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)

Key issues:

  1. ldap.set_option() is a global call (as opposed to self.ldap_client.set_option()), meaning it disables TLS verification for the entire Python process, not just this connection
  2. OPT_X_TLS_NEVER means no certificate validation is performed whatsoever - self-signed, expired, wrong hostname, and revoked certificates are all silently accepted
  3. There is no configuration option to override this behavior - TLS verification is always disabled when TLS is enabled

Impact

A network-positioned attacker (man-in-the-middle) between Lemur and the LDAP server can:

  • Intercept all LDAP credentials (usernames and plaintext passwords) for every user who authenticates
  • Modify LDAP responses to inject arbitrary group memberships, granting admin access
  • Compromise the entire PKI infrastructure managed by Lemur, since authentication controls access to certificates and private keys

This is particularly severe because Lemur is a certificate management system - the tool designed to manage TLS security is itself vulnerable to a TLS attack.

Steps to Reproduce

  1. Deploy Lemur with LDAP TLS enabled:
python
   LDAP_AUTH = True
   LDAP_USE_TLS = True
   LDAP_BIND_URI = "ldaps://dc.corp.example.com"
  1. Intercept the LDAP connection using a TLS proxy (e.g., mitmproxy or stunnel):
bash
# Generate a self-signed certificate
   openssl req -x509 -newkey rsa:2048 -keyout mitm.key -out mitm.crt -days 1 -nodes -subj "/CN=mitm"
# Proxy LDAP traffic
   stunnel -d 0.0.0.0:636 -r real-ldap-server:636 -p mitm.pem
  1. Point Lemur's LDAP_BIND_URI at the proxy (or perform ARP spoofing/DNS hijacking)
  2. Observe that Lemur connects without any certificate verification error
  3. All credentials are visible in the proxy's TLS session

Remediation

Remove the global TLS verification bypass and default to strict verification:

python
if self.ldap_use_tls:
# Use instance-level option, not global
    self.ldap_client.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_DEMAND)
    self.ldap_client.set_option(ldap.OPT_PROTOCOL_VERSION, 3)
    if self.ldap_cacert_file:
        self.ldap_client.set_option(ldap.OPT_X_TLS_CACERTFILE, self.ldap_cacert_file)

If backward compatibility is needed, make it configurable with a secure default:

python
tls_require_cert = current_app.config.get("LDAP_TLS_REQUIRE_CERT", ldap.OPT_X_TLS_DEMAND)
self.ldap_client.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, tls_require_cert)

Resources

  • CWE-295: https://cwe.mitre.org/data/definitions/295.html
  • python-ldap TLS documentation: https://www.python-ldap.org/en/python-ldap-3.4.0/reference/ldap.html#tls-options

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
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.0%
Patch available Yes
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· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

pkg:pip/lemur

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-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-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-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

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

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