Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
HIGH severity

GHSA-5fqv-mpj8-h7gm lemur

HIGHFix: Netflix/lemur@666d853

GHSA-5fqv-mpj8-h7gm is a high-severity (CVSS 7.5) Insufficient Random Values vulnerability in lemur. A fix is available for lemur — see the affected versions and patch details below.

Lemur subject to insecure random generation

Also known asCVE-2023-30797PYSEC-2023-20
Published
Mar 1, 2023
Updated
Jul 8, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Sep 21, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-5fqv-mpj8-h7gm.

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs54th percentile — riskier than 54% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

GHSA-5fqv-mpj8-h7gm plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 377,636 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

Real-World Exposure

1 pkg affected
🐍lemur

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Overview

Lemur was using insecure random generation for its example configuration file, as well as for some utilities.

Impact

The potentially affected generated items include:

Configuration itemConfig option name (if applicable)Documentation link (if applicable)Rotation optionCode reference(s)
Flask session secretSECRET_KEYFlask documentationGenerate a new secret and place in config; all existing sessions will be invalidatedN/A, internal to Flask
Lemur token secretLEMUR_TOKEN_SECRETLemur's configuration documentationGenerate a new secret and place in config; all existing JWTs will be invalidated and must be regenerated (including API keys)1, 2
Lemur database encryption keyLEMUR_ENCRYPTION_KEYSLemur's configuration documentationA new key can be generated and added to this list, but existing data encrypted with prior keys cannot be re-encrypted unless you write a custom re-encryption process1
OAuth2 state token secret keyOAUTH_STATE_TOKEN_SECRETLemur's configuration documentationGenerate a new secret and place in config1
Randomly generated passphrases for openssl keystoresN/A, generated at runtime but persistedN/ARe-export all openssl keystores and replace them wherever they're in use1
Initial password for LDAP usersN/A, generated at runtime but persistedN/AN/A, cannot be rotated*1
Initial password for Ping/OAuth2 usersN/A, generated at runtime but persistedN/AN/A, cannot be rotated*1
Oauth2 nonceN/A, short-lived runtime secretN/AN/A, rotation is not required (these are short-lived)1
Verisign certificate enrollment challengesN/A, short-lived runtime secretN/AN/A, rotation is not required (these are short-lived)1

If your deployment of Lemur is using any of the above config secrets that were generated by Lemur's example config (i.e., generated using insecure randomness), you should rotate those config secrets. If you generated your config secrets in a more secure way, they are not known to be compromised, but you should still upgrade Lemur to ensure that you receive code fixes for the runtime-generated secrets.

For general information and guidance on Lemur secret configuration, see Lemur's configuration documentation, which includes information on many of the configuration options listed above.

*For the user passwords: Even though these users are configured to use SSO, they do get generated with valid database passwords that can be used to log in. Since Lemur doesn't have an option to change passwords (#3888), one option for rotating them would be to directly modify the value in the database to some other unguessable string (you do not need to know the plaintext password since it won't be used).

Patches

The patch is available in v1.3.2.

Workarounds

No workarounds are available.

References

N/A

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIlemurall versions1.3.2pip install --upgrade 'lemur==1.3.2'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for lemur, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update lemur to 1.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-5fqv-mpj8-h7gm is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-5fqv-mpj8-h7gm can be triaged on real exposure rather than presence alone.

Tailored to GHSA-5fqv-mpj8-h7gm. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

### Overview Lemur was using insecure random generation for its example configuration file, as well as for some utilities. ### Impact The potentially affected generated items include: | Configuration item | Config option name (if applicable) | Documentation link (if applicable) | Rotation option | Code reference(s) | | ----------- | ----------- | ----------- | ----------- |----------- | | Flask session secret | `SECRET_KEY` | [Flask documentation](https://flask.palletsprojects.com/en/2.2.x/config/#SECRET_KEY) | Generate a new secret and place in config; all existing sessions
O3 Security · Impact-Aware SCA

Is GHSA-5fqv-mpj8-h7gm in your dependencies?

O3 Security finds GHSA-5fqv-mpj8-h7gm across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

GHSA-5fqv-mpj8-h7gm: lemur (High 7.5) | O3 Security