Skip to main content

Pyload ng: pyLoad has an authentication bypass in API key validation (check_apikey cache)

0
High
Published: 10/09/2026 (10/09/2026, 16:43:55 UTC)
Source: GCVE Database
Product: pyload-ng

Description

pyLoad-ng contains a critical authentication bypass vulnerability in its API key validation cache. The cache mechanism in check_apikey() uses only the key_id to validate requests, skipping secret verification on cache hits within a 300-second window. Since key_id values are sequential and easily guessable, an attacker can forge an API key with a known key_id that was recently used legitimately and gain full access without knowing the secret. This results in a complete remote authentication bypass with high impact on confidentiality, integrity, and availability. A patch is available to fix this issue.

CVSS v3.1

Score 8.1high

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

Affected software

PyPIghsa
pyload-ng
Affected versions
<0.5.0b3.dev101

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/09/2026, 22:54:46 UTC

Technical Analysis

The vulnerability exists in pyLoad-ng's API key validation logic where successful API key validations are cached based solely on key_id, which is parsed from user input. On cache hits, the secret part of the API key is not verified, allowing any forged API key with a valid key_id recently used to bypass authentication. The cache stores metadata excluding the key hash, so secret verification is skipped during the cache lifetime (default 300 seconds). Because key_id values are small sequential integers, they are trivial to enumerate, enabling attackers to impersonate users if the cache contains a valid entry for that key_id. The issue affects versions prior to 0.5.0b3.dev101. The CVSS v3.1 score is 8.1 (High), with attack vector network, high attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.

Potential Impact

An attacker can bypass API key secret verification entirely for any key_id whose legitimate key has been used within the last 5 minutes, gaining the same permissions as the legitimate user. This leads to a complete remote authentication bypass, compromising confidentiality, integrity, and availability of the affected system. The vulnerability is critical due to trivial key_id enumeration and the ability to forge API keys without knowing secrets during the cache window.

Mitigation Recommendations

A patch is available for this vulnerability. The vendor should be consulted for the official fix. The core issue is that secret verification must occur on every request, including cache hits. Suggested fixes include storing a hash of the complete API key in the cache and verifying it on each request or keying the cache by a cryptographic hash of the entire API key. Until patched, systems should consider disabling or reducing the cache TTL to minimize exposure, but the definitive remediation is to apply the official patch.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-r44w-v6gf-x3p6
Osv Schema Version
1.4.0
Ecosystems
["PyPI"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6ac96e652cdf04f65689a92e

Added to database: 10/09/2026, 22:44:53 UTC

Last enriched: 10/09/2026, 22:54:46 UTC

Last updated: 10/09/2026, 22:54:46 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses