CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-105804

CVE-2026-105804: Insecure Default PBKDF2 Password Hashing Configuration in Payload CMS

Alon Barad
Alon Barad
Software Engineer

Oct 6, 2026·6 min read·16 visits

Executive Summary (TL;DR)

Payload CMS utilized a PBKDF2 configuration that requested a 512-byte output length. Because SHA-256 produces 32-byte blocks, the server performed 16x more work than necessary, whereas offline attackers could skip 15 of those blocks to verify guesses, granting them a 16x speedup advantage.

Payload CMS was discovered to use an insecure default configuration for its password-hashing mechanism. The system requested a 512-byte key from PBKDF2-HMAC-SHA256 with 25,000 iterations, creating a severe cryptographic asymmetry. While the defending server sequentially computed 16 blocks of key material (equivalent to 400,000 internal iterations), an offline attacker only needed to compute the first 32-byte block to verify password guesses. This allowed offline attackers to crack stolen database hashes 16 times faster than intended by the security design.

Vulnerability Overview

Payload CMS is a headless content management system built with Node.js and TypeScript. In affected versions starting from 3.0.0 up to 3.90.0, the core authentication handler utilized an insecurely configured key derivation function. Specifically, the implementation relied on PBKDF2-HMAC-SHA256 to hash and store user passwords securely.

To increase defensive resource requirements, the engine was configured with 25,000 iterations. However, it also requested a derived key size of 512 bytes. Because the underlying SHA-256 hash function natively produces digests of only 32 bytes, requesting a 512-byte key size introduced a fundamental performance flaw into the verification pipeline.

The resulting system suffered from computational asymmetry, where the legitimate defender was significantly penalized in performance, while offline attackers holding a copy of the database hashes could bypass the penalty entirely. This design flaw significantly lowered the bar for successful credential recovery via brute-force or dictionary attacks against compromised database dumps.

Root Cause Analysis

The root cause of this vulnerability lies in a mismatch between the requested output key size of the PBKDF2 function and the native block digest size of the underlying hash function (SHA-256). PBKDF2 (Password-Based Key Derivation Function 2) derives keys by executing an internal pseudorandom function (PRF) over multiple iterations.

When the requested key length ($dkLen$) is greater than the native digest size of the PRF ($hLen$), PBKDF2 must run its iteration loop multiple times to generate independent blocks of key material. The total number of blocks ($l$) is calculated as $l = \lceil dkLen \div hLen \rceil$. For a requested key size of 512 bytes using SHA-256 ($hLen = 32$):

$$l = \lceil 512 \div 32 \rceil = 16 \text{ blocks}$$

These 16 blocks are generated sequentially, meaning the defender must compute $16 \times 25,000 = 400,000$ iterations of HMAC-SHA256 to verify a user's password. Crucially, each block is derived independently. An offline attacker attempting to crack a stolen hash does not need to verify the entire 512 bytes. Because the first 32-byte block contains sufficient entropy to confirm a password match, the attacker only computes the first block, requiring only 25,000 iterations. This creates a 16x speedup advantage for the attacker over the defender.

Code Analysis

In vulnerable versions of the application, the generatePasswordSaltHash.ts file configured crypto.pbkdf2 using hardcoded parameters that requested the 512-byte key length:

// Vulnerable Code Path
function pbkdf2Promisified(password: string, salt: string): Promise<Buffer> {
  return new Promise((resolve, reject) =>
    crypto.pbkdf2(password, salt, 25000, 512, 'sha256', (err, hashRaw) =>
      err ? reject(err) : resolve(hashRaw), // Requests 512 bytes (underlying SHA-256 is 32 bytes)
    ),
  )
}

The patch applied in commit 1bc76e540a10f3ec88340f40591a57dae7456d01 resolved this design flaw by increasing the iteration count to modern OWASP recommendations (600,000) and reducing the requested key length to 32 bytes. This ensures that only one block of key material is generated, eliminating the sequential generation overhead.

// Patched Configuration
const currentPasswordHashPrefix = 'pbkdf2-sha256-v1:'
const currentPasswordHashIterations = 600000
const currentPasswordHashKeyLength = 32
const legacyPasswordHashIterations = 25000
const legacyPasswordHashKeyLength = 512

Additionally, to handle legacy hashes seamlessly without forcing a global password reset, an opportunistic upgrade mechanism was introduced inside the authentication routines (login.ts and authenticate.ts). When a user logs in successfully using a legacy hash, the system verifies the password using the legacy parameters, generates a new hash using the upgraded parameters, and updates the database atomically. To prevent concurrency issues or race conditions during this update, the Drizzle database adapter was patched (updateOne.ts) to enforce conditional update constraints.

Exploitation Methodology

Exploitation of this vulnerability occurs offline and does not require direct interaction with the running Payload CMS server. The attack flow begins when an attacker obtains an unauthorized copy of the application database (e.g., via SQL injection, directory traversal, or exposed backup files).

Upon parsing the database, the attacker identifies stored password hashes lacking the modern pbkdf2-sha256-v1: prefix, indicating they were generated under the legacy configuration. Instead of running a standard hashing derivation utility that calculates all 512 bytes, the attacker configures a high-performance cracking platform (such as Hashcat or John the Ripper) to run a custom kernel.

This optimized kernel is configured to truncate the target hashes and only verify candidate passwords against the first 32 bytes of the stored hash. Because only one block of PBKDF2 is calculated, the hardware cracks passwords at a rate 16 times higher than the target system's performance would suggest, vastly reducing the time required to recover plaintext credentials.

Impact Assessment

The CVSS v4 score is evaluated at 5.7 (Medium). The attack vector is classified as Local (AV:L) because obtaining the raw password hashes generally requires local or pre-existing high-privilege access to the target system's database or filesystems.

The real-world security impact is highly significant for environments that rely on complex user management and permission structures. Successful cracking of database hashes allows attackers to recover administrative credentials. Once administrative access is achieved on a headless CMS like Payload, attackers can manipulate content, execute unauthorized API queries, or leverage server-side privileges to move laterally within the hosting environment.

Remediation & Mitigation

The primary remediation strategy is upgrading all Payload CMS dependencies to versions >= 3.90.0 or >= 4.0.0-canary.34. These releases implement the modern hashing standard and enforce secure PBKDF2 parameters.

Upgrades are backwards-compatible and handle existing hashes transparently. When users log in, the application will automatically migrate their password hashes to the secure standard. For administrators who cannot upgrade immediately, the following defensive practices are strongly recommended:

  1. Restrict and monitor all administrative access to the underlying database layers.
  2. Ensure database storage backups are encrypted at rest using AES-256 with strict access controls.
  3. Enforce strong, high-entropy password requirements to counter dictionary attacks.

Fix Analysis (1)

Technical Appendix

CVSS Score
5.7/ 10
CVSS:4.0/AV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Affected Systems

Payload CMS (payload) installations between versions 3.0.0 and 3.90.0

Affected Versions Detail

Product
Affected Versions
Fixed Version
payload
payloadcms
>= 3.0.0, < 3.90.03.90.0
payload
payloadcms
>= 4.0.0-canary.0, < 4.0.0-canary.344.0.0-canary.34
AttributeDetail
CWE IDCWE-916
Attack VectorLocal
CVSS v4 Score5.7 (Medium)
EPSS ScoreNot listed
Exploit Statusnone
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1110.002Password Cracking
Credential Access
CWE-916
Use of Password Hash With Insufficient Computational Effort

The application generates hashes for passwords using parameters that make the hashing process computationally inexpensive, facilitating offline dictionary or brute-force attacks.

References & Sources

  • [1]Official GitHub Security Advisory
  • [2]Official Release Announcement (v3.90.0)

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•GHSA-9J25-MM2H-2F76
9.9

CVE-2026-48750: Arbitrary File Write on Host via exec-output Symlink in Canonical LXD and Incus

Canonical LXD and LXC Incus contain an arbitrary file write vulnerability (CWE-73 / CWE-59) in the `/1.0/instances/<name>/exec` REST API endpoint. When an instance is unpacked from an image archive, top-level symbolic links are extracted directly onto the host filesystem within the instance storage directory. If a crafted image includes a symbolic link named `exec-output` pointing to an arbitrary host path, invoking the execution endpoint with `record-output: true` causes the privileged host daemon to follow the symlink and write command output files directly to the target host directory. An authenticated attacker with permissions to import images and execute commands can exploit this flaw to write controlled content to sensitive host directories such as `/etc/cron.d`, resulting in arbitrary code execution on the host as `root`.

Alon Barad
Alon Barad
4 views•12 min read
•about 2 hours ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
3 views•9 min read
•about 3 hours ago•GHSA-FMC8-P6Q7-75CC
9.9

GHSA-fmc8-p6q7-75cc: Argument Injection in Canonical LXD Backup Compression Leads to Host Root Code Execution

GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 4 hours ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
7 views•10 min read
•about 8 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 9 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
6 views•9 min read