Skip to main content

Netflix Lemur CVE-2026-55164

| EUVDEUVD-2026-61150 MEDIUM
Plaintext Storage of a Password (CWE-256)
2026-06-25 https://github.com/Netflix/lemur GHSA-q437-g7fv-2jvv PYSEC-2026-2587
4.9
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. Access
    Obtain database read access (backup, replica, or SQL injection)
  2. Delivery
    Query users table for non-bcrypt password rows
  3. Exploit
    Extract plaintext credentials directly
  4. Execution
    Authenticate to Lemur or downstream services with harvested credentials
  5. Impact
    Escalate or pivot using PKI admin access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V6 - Authentication Credential storage protection
Exploitation Conditions

Exploitation of the storage flaw itself requires an attacker to have read access to the Lemur PostgreSQL users table, a database backup, a streaming replica, or query/audit logs that captured the UPDATE statement - none of which require network access to the Lemur application tier. The write-side condition that creates the plaintext row requires an authenticated Lemur administrator to call PUT /api/1/users/<id> with a password field; this is gated by @admin_permission.require and a valid admin JWT. The SSO/OAuth login path in lemur/auth/views.py:323 is explicitly not affected because it passes only six positional arguments and the password parameter defaults to None. Exploitation is limited to password changes performed through the admin UI or API after deployment of the vulnerable version; accounts whose passwords were set only at account creation time (before_insert path) are not affected and retain bcrypt hashes.

Impact

The NVD CVSS base score of 4.9 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N) accurately reflects that exploitation requires administrator-level privileges, which substantially constrains the attack surface. However, CVSS does not capture the compounding risk: admin-driven password resets are routine post-incident procedure, meaning the flaw is most likely to fire precisely when a security team believes it is improving posture. No EPSS score was provided in the intelligence sources; given the absence of KEV listing, broad automated exploitation is unlikely. The real-world risk is meaningfully elevated above what the raw CVSS score suggests when considering that the exposed credential is immediately usable (no cracking step), that it persists in backups and audit logs, and that the reproduction steps are fully documented in the public GitHub Security Advisory. A secondary operational impact - user login failure after every admin-initiated password reset - may have already caused affected deployments to apply workarounds that mask the underlying exposure. CVSS correctly identifies no integrity or availability impact from the storage flaw itself, though the locked-out-user side effect has practical availability consequences. No conflicting signals detected; CVSS vector and description are fully consistent.

Exploit ScenarioDerived

An attacker who has compromised the Lemur PostgreSQL database (via SQL injection, stolen backup, replica exfiltration, or query log access) queries the users table and recovers all passwords reset by administrators since the vulnerable code was deployed - no hash-cracking tools or GPU clusters required. The advisory provides exact reproduction steps including the curl command and SQL verification query, making the exploit trivially reproducible. Because Lemur manages PKI infrastructure, the blast radius extends to any service sharing credentials with Lemur user accounts.

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

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

Alert me

AnalysisAIv1 – Jun 25, 2026

Cleartext password storage in Netflix Lemur's user-update service path allows any attacker who gains read access to the Lemur database, its backups, query logs, or read replicas to obtain directly usable plaintext credentials - no offline cracking required. The flaw affects all Lemur deployments running pip/lemur <= 1.9.1 and is triggered exclusively when an administrator resets a user password through the admin-gated PUT /api/1/users/<id> API endpoint. No public exploit is required: the advisory itself contains precise reproduction steps, and the side effect (immediate login failure for affected users) makes the exposure operationally detectable. No KEV listing exists at time of analysis.

RemediationAI

Upgrade to pip/lemur version 1.9.2, which adds the missing before_update SQLAlchemy event listener alongside the before_insert registration, closing the hashing gap for all future code paths that mutate user.password. Release notes and the fixed package are available at https://github.com/Netflix/lemur/releases/tag/v1.9.2 and the advisory at https://github.com/Netflix/lemur/security/advisories/GHSA-q437-g7fv-2jvv. Upgrading alone is insufficient: any password changed through the PUT /api/1/users/<id> endpoint prior to applying the patch is stored in cleartext and must be treated as compromised - rotate it immediately rather than simply re-hashing it in place, because the plaintext value may already exist in database backups, WAL logs, audit trails, and read replicas. A detection query can identify affected rows: any users.password value that does not begin with $2b$, $2a$, or $2y$ is stored in cleartext. As a short-term compensating control before patching, restrict network access to the Lemur admin API surface; however, this does not remediate already-stored cleartext rows and should not substitute for upgrading. Database-level encryption at rest reduces - but does not eliminate - the exposure window because application-layer reads still return plaintext.

Affected VersionsENISA

Lemur < 1.9.2

Affected Packages

pypi lemur fix: 1.9.2

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 (pkg:pip/lemur) is Netflix's open-source PKI and certificate lifecycle management platform built on Python/Flask with a PostgreSQL backend accessed via SQLAlchemy ORM. The root cause maps directly to CWE-256 (Plaintext Storage of a Password): the User model in lemur/users/models.py registers its bcrypt hashing callback exclusively on SQLAlchemy's before_insert ORM event (line 111), leaving no equivalent before_update listener. Because User.password is a plain Column(String(128)) with no Python property setter, raw string assignment to user.password does not trigger any hashing side effect. The service layer function update() in lemur/users/service.py performs a direct attribute assignment (user.password = password) followed immediately by database.update(user), which issues a raw SQL UPDATE committing the cleartext string. The bcrypt code path in hash_password() exists and is correct - it is simply never invoked on the update path. The SSO/OAuth login path in lemur/auth/views.py:323 also calls user_service.update() but omits the password positional argument, meaning password defaults to None and the if password: guard prevents exposure on that path.

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 4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 4.9 MEDIUM

Admin JWT required to trigger the write path (PR:H); network-accessible API endpoint (AV:N); no integrity or availability impact from the storage flaw itself.

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

Primary rating from Vendor (https://github.com/Netflix/lemur).

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

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

DescriptionCVE.org

Summary

lemur.users.service.update() writes a user's new password as plaintext to the users.password column. The User model wires bcrypt hashing to SQLAlchemy's before_insert event but registers no equivalent listener for before_update, and service.update() does not call user.hash_password() after assigning the new value. Every password change performed through the admin-gated PUT /api/1/users/<id> endpoint persists the user's password to the database in cleartext.

Root Cause

lemur/users/models.py:

python
# line 38
class User(BaseModel):
    __tablename__ = "users"
    id = Column(Integer, primary_key=True)
    password = Column(String(128))
# plain column, no setter, no Vault descriptor
# line 74
    def hash_password(self):
        if self.password:
            self.password = bcrypt.generate_password_hash(self.password).decode("utf-8")
# line 111
listen(User, "before_insert", hash_password)
# only before_insert is wired

lemur/users/service.py:

python
# line 46
def update(user_id, username, email, active, profile_picture, roles, password=None):
    ...
    user = get(user_id)
    user.username = username
    user.email = email
    user.active = active
    user.profile_picture = profile_picture
    if password:
        user.password = password
# raw assignment
    update_roles(user, roles)
    return database.update(user)
# commits, no hashing

No before_update listener exists. User.password is a plain Column(String(128)) with no property setter that hashes on assignment. The bcrypt code path is bypassed entirely on every UPDATE statement that touches this column.

Affected Endpoints

MethodPathSource
PUT/api/1/users/<id>lemur/users/views.py:274 (gated by @admin_permission.require)

lemur/auth/views.py:323 also calls user_service.update() during SSO/OAuth login, but passes only six positional arguments. password defaults to None on that path and the if password: guard short-circuits. The bug is triggered only through the admin-only PUT handler.

Impact

When an administrator changes a user's password via PUT /api/1/users/<id>, the cleartext password is persisted to users.password. Subsequent login attempts for that user will fail (check_password calls bcrypt.check_password_hash against an unhashed value), pushing operators toward workarounds.

The more serious consequence is a defense-in-depth bypass. Bcrypt is the protection that prevents a database compromise from yielding usable credentials. With plaintext rows present, an attacker who exfiltrates the users table, a backup, a read replica, or query logs obtains directly usable login credentials - no offline cracking required. Because users reuse passwords across services, the blast radius extends beyond Lemur.

The bug specifically affects admin-driven password resets, which are the normal post-incident workflow and exactly when plaintext storage is most harmful.

Steps to Reproduce

  1. Install Lemur with default config. Create an admin user and a target user 'alice' (created via the standard flow, password will be hashed correctly on insert).
  2. Verify the initial hash:

psql lemur -c "SELECT password FROM users WHERE username='alice';"

Output: $2b$12$N9Q... (bcrypt hash, as expected)

  1. As admin, change alice's password via the API:

curl -X PUT https://lemur.local/api/1/users/<alice_id> \ -H "Authorization: Bearer <admin_jwt>" \ -H "Content-Type: application/json" \ -d '{ "username": "alice", "email": "alice@example.com", "active": true, "profile_picture": null, "roles": [{"name": "operator"}], "password": "ProofOfConcept_2026" }'

  1. Read the column again:

psql lemur -c "SELECT password FROM users WHERE username='alice';"

Output: ProofOfConcept_2026 ← plaintext, not hashed

  1. Confirm the failure mode: 'alice' can no longer log in with 'ProofOfConcept_2026'

because check_password runs bcrypt.check_password_hash() against the cleartext column.

Remediation

Register the listener for both events:

python
# lemur/users/models.py
listen(User, "before_insert", hash_password)
listen(User, "before_update", hash_password)

Alternative, equivalent fix in the service layer:

python
# lemur/users/service.py, in update()
    if password:
        user.password = password
        user.hash_password()

The listener fix is preferred because it closes the gap for any future code path that mutates user.password.

A one-time migration is recommended to detect and re-hash any rows already stored in cleartext. Bcrypt hashes begin with $2b$, $2a$, or $2y$. Any cleartext credential should be treated as compromised - rotate it, do not just re-hash it - since it has been at rest in plaintext and may exist in backups, audit logs, and replicas.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Low
niche open-source PKI management tool, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
5 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.2%
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
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
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 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