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-74871

CVE-2026-74871: Memory-Hard KDF Cost Bypass via Sequential-XOR Last-Stage Cancellation in openssl_encrypt

Amit Schendel
Amit Schendel
Senior Security Researcher

Dec 4, 2026·12 min read·15 visits

Executive Summary (TL;DR)

A redundant accumulator append in openssl_encrypt prior to version 1.4.6 causes the final key derivation stage to XOR with itself and cancel out in sequential XOR mode (format versions 8 and 10), reducing single-KDF configurations to unhardened SHA-256 digests.

CVE-2026-74871 (also tracked as GHSA-vxf9-vwp6-2w43 and PYSEC-2026-3976) is a cryptographic composition vulnerability in the Python file encryption library openssl_encrypt affecting versions prior to 1.4.6. When generating keys under sequential XOR composition mode (format versions 8 and 10), the key derivation routine redundantly appends the final chain output to an accumulator that already contains the normalized output of the final derivation stage. Because bitwise XOR is self-inverting (A XOR A = 0), the final stage cancels itself out completely. When a single memory-hard key derivation function (such as Argon2id or Scrypt) is configured without preceding hash stages, the derived key collapses to an unhardened SHA-256(password || salt) digest, allowing offline password cracking at raw SHA-256 throughput.

Vulnerability Overview

openssl_encrypt is a Python library and command-line utility designed for password-based file encryption. It supports configurable multi-stage key derivation chains, combining memory-hard key derivation functions (KDFs) such as Argon2, Scrypt, and Balloon hashing with traditional cryptographic hash primitives. Users can select different composition modes to combine the outputs of these stages into a final symmetric encryption key, tracked on disk via a format_version metadata integer.

In versions prior to 1.4.6, a cryptographic key derivation flaw exists within the sequential XOR composition mode, which corresponds to on-disk format_version 8 and format_version 10. This mode is triggered via the CLI flags --xor or --use-xor-composition. Additionally, in certain pre-1.4.6 releases, the encrypt_file() function in openssl_encrypt/modules/crypt_core.py defaulted its format_version parameter to 10, causing programmatic callers relying on default arguments to automatically produce affected ciphertext containers.

Classified under CWE-916 (Use of Password Hash With Insufficient Computational Effort), the vulnerability stems from an algebraic self-cancellation error during the accumulation of intermediate KDF stage outputs. At the completion of the sequential derivation chain, the final stage output is appended a second time to the XOR accumulator list. When all elements in the accumulator are combined via bitwise exclusive-OR (XOR), the duplicate copies of the final stage cancel each other out ($X \oplus X = 0$).

When a file is encrypted using a single KDF configuration (for example, Argon2id alone with no preceding hash stages), that KDF acts as the final stage in the chain and is completely eliminated from the derived key. The resulting symmetric encryption key collapses to the initial pre-hash snapshot, $\text{SHA-256}(\text{password} \parallel \text{salt})$. An attacker who obtains the encrypted file can perform offline brute-force or dictionary attacks at raw SHA-256 computational speeds, bypassing the memory and time costs configured for the KDF.

Root Cause Analysis

The root cause of CVE-2026-74871 lies in how generate_key() inside openssl_encrypt/modules/crypt_core.py tracks and combines intermediate cryptographic material during sequential XOR composition. In this mode, the key derivation pipeline feeds the output of each enabled stage into the input of the next stage while simultaneously recording a normalized key-length snapshot of each stage into a list named xor_accumulator.

Before executing the configured KDF stages, the key derivation routine initializes the accumulator with a baseline snapshot ($ ext{snapshot}_0$) derived by hashing the concatenation of the raw user password and the primary salt with SHA-256:

$$\text{snapshot}_0 = \text{SHA-256}(\text{password} \parallel \text{salt})$$

$$\text{xor_accumulator} = [\text{snapshot}_0]$$

Next, the routine iterates through the ordered sequence of $n$ enabled hashing and KDF stages. For each stage $i \in {1, \dots, n}$, the algorithm transforms the active state variable (password), normalizes the resulting output to the required symmetric key length (key_length), and appends this intermediate value ($ ext{snapshot}_i$) to xor_accumulator. When the loop terminates after stage $n$, xor_accumulator already contains all $n$ stage snapshots:

$$\text{xor_accumulator} = [\text{snapshot}_0, \text{snapshot}_1, \dots, \text{snapshot}_n]$$

However, immediately following the loop, the implementation erroneously assumed that the final sequential result had not yet been recorded in the accumulator. The code executed a redundant normalization and append operation on the final password state variable (sequential_result = normalize_to_key_length_secure(password, key_length) followed by xor_accumulator.append(sequential_result)). Because password at loop termination holds the exact output of stage $n$, sequential_result is strictly equal to $\text{snapshot}_n$.

When the accumulator array $[\text{snapshot}_0, \text{snapshot}_1, \dots, \text{snapshot}_n, \text{snapshot}_n]$ is folded using bitwise XOR to construct the master encryption key $K$, the self-inverting involution property of XOR ($A \oplus A = 0$ and $B \oplus 0 = B$) causes the duplicate final terms to annihilate:

$$K = \text{snapshot}_0 \oplus \text{snapshot}1 \oplus \dots \oplus \text{snapshot}{n-1} \oplus (\text{snapshot}_n \oplus \text{snapshot}_n)$$

$$K = \text{snapshot}_0 \oplus \text{snapshot}1 \oplus \dots \oplus \text{snapshot}{n-1}$$

In the standard single-KDF configuration where $n = 1$ (e.g., only Argon2id is enabled), all terms except $\text{snapshot}_0$ cancel out:

$$K = \text{snapshot}_0 \oplus (\text{snapshot}_1 \oplus \text{snapshot}_1) = \text{snapshot}_0 = \text{SHA-256}(\text{password} \parallel \text{salt})$$

Even in multi-stage configurations ($n > 1$), the security contribution and computational work factor of the final stage $n$ are completely lost. Because memory-hard KDFs are typically positioned at the end of a derivation pipeline following fast pre-hashing stages, this bug systematically strips the highest-cost stage from the key derivation routine.

Code Analysis

The remediation of CVE-2026-74871 was implemented across commits 1c122790d6d914909514dbe026d051bc06c50844, e1b6731fae6ed9d6b17ecdc3b72edc3b364ee339, and a7d2c9054f5b4374561c82665b24adfe3fad360c. Addressing the flaw required balancing two competing requirements: fixing the key derivation math for new ciphertexts while preserving the ability to decrypt existing format_version 8 and 10 files already deployed by users.

In commit 1c122790d6d914909514dbe026d051bc06c50844, the developers introduced format_version 13 and gated the redundant accumulator append in openssl_encrypt/modules/crypt_core.py so that it only executes when reading legacy format versions strictly below 13:

# File: openssl_encrypt/modules/crypt_core.py
 
        # CANCELLATION BUG (v8/v10) vs FIX (format_version >= 13): the chain's final
        # value equals the last stage's snapshot already in the accumulator, so
        # appending it again makes the last stage XOR with itself -> 0 -> the last
        # stage cancels out of the key (a single memory-hard KDF placed last is then
        # bypassed). v8/v10 keep the append so existing files still decrypt
        # (append-only); v13+ skips it so every stage contributes.
        if format_version is None or format_version < 13:
            sequential_result = normalize_to_key_length_secure(password, key_length)
            xor_accumulator.append(sequential_result)  # SecureBytes object
 
        if debug:
            logger.debug("V10-XOR: Added sequential chain final result")

While introducing format_version 13 corrected the mathematical construction for v13 files, encrypt_file() still defaulted to format_version=10 and allowed callers to explicitly request format_version 8 or 10 during new encryption operations. To eliminate the creation of vulnerable ciphertexts, commit e1b6731fae6ed9d6b17ecdc3b72edc3b364ee339 (and its 1.5.x branch counterpart a7d2c9054f5b4374561c82665b24adfe3fad360c) designated versions 8 and 10 as decrypt-only formats and changed the default format version in encrypt_file() to 9 (chained-salt mode).

# File: openssl_encrypt/modules/crypt_core.py
 
# Define legacy cancelling formats as a single source of truth
_UNSAFE_SEQUENTIAL_XOR_VERSIONS = (8, 10)
 
def encrypt_file(
    input_file,
    output_file,
    password,
    # ...
    format_version=9,  # Changed default from 10 to safe version 9
    # ...
    allow_insecure_legacy_xor=False,
):
    # Refuse to ENCRYPT new files with the cancelling sequential-XOR versions
    # (v8/v10). Raised at the very top -- before any directory archiving or
    # temp files -- so a refused request never leaves a cleartext artifact.
    if format_version in _UNSAFE_SEQUENTIAL_XOR_VERSIONS and not allow_insecure_legacy_xor:
        raise ValueError(
            f"Refusing to encrypt a new file with format_version={format_version}: "
            "the v8/v10 sequential-XOR derivation cancels the last KDF stage "
            "(cost bypass) and is decrypt-only. Use format_version=9 (default) or 13."
        )

The fix is comprehensive and prevents variant exposure across auxiliary code paths. By defining _UNSAFE_SEQUENTIAL_XOR_VERSIONS = (8, 10) as a constant, the patch enforces identical checks across encrypt_file(), envelope fast-path key re-wrapping, and rekey operations. When a user invokes rekey on a legacy v8 or v10 container, the tool automatically upgrades the output file to a non-cancelling format version rather than preserving the vulnerable version header. An explicit override flag (allow_insecure_legacy_xor=True) is restricted to internal unit test fixtures verifying legacy decryption compatibility.

Exploitation

Exploitation of CVE-2026-74871 is an offline cryptanalytic attack targeting captured ciphertext files. The attacker requires local read access to an encrypted container generated by openssl_encrypt prior to version 1.4.6 with format_version 8 or 10. No access to the original encryption host or runtime environment is necessary once the file is obtained.

To execute the attack against a single-KDF container, the attacker first parses the unencrypted file header of the target .enc file (or runs openssl-encrypt info -i target.enc) to extract the 16-byte primary salt, the symmetric cipher algorithm (e.g., aes-gcm), the nonce/IV, and the authentication tag or verification block. In an affected container where only a single KDF (such as Argon2id) was enabled, the attacker completely ignores the Argon2 parameters (time_cost, memory_cost, parallelism) stored in the header.

Instead of computing Argon2id for each candidate password in a wordlist or brute-force keyspace, the attacker computes a single SHA-256 digest per candidate:

$$K_{\text{candidate}} = \text{SHA-256}(\text{password}_{\text{candidate}} \parallel \text{salt})$$

The attacker then attempts to decrypt or verify the AEAD authentication tag (such as the AES-256-GCM tag) using $K_{\text{candidate}}$. Because a modern GPU cluster can evaluate billions of raw SHA-256 hashes and AES-GCM tag checks per second—compared to only hundreds or thousands of memory-hard Argon2id evaluations per second—passwords with low-to-moderate entropy that would normally resist offline cracking become trivial to recover.

> [!NOTE] > The following verification script, adapted from the official regression suite (test_format_v13_sequential_xor.py), demonstrates that changing Argon2 time and memory parameters has zero effect on the derived v10 key, and confirms that the key equals the raw SHA-256 pre-hash.

import hashlib
from openssl_encrypt.modules.crypt_core import generate_key
 
PASSWORD = b"v13-sequential-xor-test-password"
SALT = bytes.fromhex("0f0e0d0c0b0a09080706050403020100")
 
# Low-cost Argon2 configuration (512 KiB memory, 1 iteration)
ARGON2_CHEAP = {
    "argon2": {"enabled": True, "time_cost": 1, "memory_cost": 512, "parallelism": 1, "type": "id"}
}
 
# High-cost Argon2 configuration (8192 KiB memory, 5 iterations)
ARGON2_COSTLY = {
    "argon2": {"enabled": True, "time_cost": 5, "memory_cost": 8192, "parallelism": 1, "type": "id"}
}
 
# 1. Derive keys under vulnerable format_version=10
key_v10_cheap, _, _ = generate_key(
    PASSWORD, SALT, ARGON2_CHEAP, quiet=True, algorithm="aes-gcm", format_version=10
)
key_v10_costly, _, _ = generate_key(
    PASSWORD, SALT, ARGON2_COSTLY, quiet=True, algorithm="aes-gcm", format_version=10
)
 
# Both configurations yield the exact same key because the Argon2 stage cancels out
assert bytes(key_v10_cheap) == bytes(key_v10_costly)
 
# Verify the derived key collapses to raw SHA-256(password || salt)
raw_sha256 = hashlib.sha256(PASSWORD + SALT).digest()
assert bytes(key_v10_cheap) == raw_sha256
print(f"[!] Vulnerable v10 Key matches raw SHA-256: {raw_sha256.hex()}")
 
# 2. Derive keys under patched format_version=13
key_v13_cheap, _, _ = generate_key(
    PASSWORD, SALT, ARGON2_CHEAP, quiet=True, algorithm="aes-gcm", format_version=13
)
key_v13_costly, _, _ = generate_key(
    PASSWORD, SALT, ARGON2_COSTLY, quiet=True, algorithm="aes-gcm", format_version=13
)
 
# Under v13, Argon2 output is retained and cost parameters alter the key
assert bytes(key_v13_cheap) != bytes(key_v13_costly)
assert bytes(key_v13_cheap).hex() == "1a969679dc31bf8552a661345a050198c099bb88decfe57d0dbd3537150fdff3"
print(f"[+] Patched v13 Key (Cheap):  {bytes(key_v13_cheap).hex()}")
print(f"[+] Patched v13 Key (Costly): {bytes(key_v13_costly).hex()}")

Impact Assessment

The primary security impact of CVE-2026-74871 is the degradation of cryptographic key derivation work factors, leading to a high confidentiality risk for encrypted files protected by human-chosen passwords. Users configuring memory-hard KDFs such as Argon2id, Scrypt, or Balloon hashing rely on high memory and CPU costs to defend against offline brute-force hardware (GPUs, FPGAs, and ASICs). By collapsing the derived key in single-KDF sequential XOR mode to a single uniterated SHA-256 computation, the vulnerability reduces the attacker's per-guess cost by several orders of magnitude.

Under the CVSS v3.1 framework, NVD scored the vulnerability at 6.2 (Medium) with the vector CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. The Local attack vector (AV:L) reflects that the vulnerability does not allow remote network exploitation on its own; an adversary must first obtain the encrypted file from local storage, backups, cloud buckets, or intercepted transfers. Once the ciphertext container is acquired, Attack Complexity is Low (AC:L), requiring no privileges (PR:N) or user interaction (UI:N), resulting in a High Confidentiality impact (C:H) upon recovery of the plaintext.

Under the CVSS v4.0 specification, the assigning CNA (VulnCheck) assessed a base score of 6.9 (Medium) via the vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N. Note that the vulnerability only impacts containers created with format_version 8 or 10. Files encrypted using the chained-salt mode (format_version 9), independent Massey-combiner XOR mode (format_version 11), or streaming chunked AEAD mode (format_version 12) do not experience last-stage cancellation.

Threat intelligence metrics indicate a low likelihood of widespread automated exploitation in the wild. The Exploit Prediction Scoring System (EPSS) assigns CVE-2026-74871 a score of 0.00081 (0.081%, 0.198th percentile), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. In multi-stage configurations where two or more KDFs/hashes are chained in format_version 8 or 10, only the final stage in the chain cancels out; earlier stages remain active in the XOR sum, partially mitigating the severity depending on the strength of the preceding stages.

Remediation

Remediation requires both upgrading the openssl_encrypt software package and re-encrypting any sensitive files previously generated using the vulnerable format versions. Simply upgrading the library does not retroactively protect existing ciphertexts on disk, because patched versions must maintain backward-compatible derivation logic for format_version 8 and 10 to allow users to decrypt their legacy data.

First, upgrade openssl_encrypt to version 1.4.6 or later (such as 1.4.8 or the 1.5.x release line) via pip:

pip install --upgrade "openssl-encrypt>=1.4.6"

Second, audit existing encrypted files across storage volumes and repositories to identify containers utilizing format_version 8 or 10. The built-in info subcommand outputs header metadata without requiring the decryption password:

openssl-encrypt info -i archive.enc

If the metadata output reports "format_version": 8 or "format_version": 10, the container was generated using the cancelling sequential XOR algorithm. These files must be migrated using the rekey subcommand or decrypted and re-encrypted. In openssl_encrypt 1.4.6 and later, running rekey automatically migrates legacy v8 and v10 files to a safe format version (format_version 9 by default, or format_version 13 when sequential XOR composition is explicitly selected):

openssl-encrypt rekey -i vulnerable_v10.enc -o migrated_safe.enc

After verifying that migrated_safe.enc decrypts properly and reports format_version 9 or 13 via openssl-encrypt info, securely erase all copies and backups of the legacy v8 or v10 ciphertext. For programmatic integrations calling crypt_core.encrypt_file(), ensure that allow_insecure_legacy_xor is never enabled in production code.

Official Patches

jahlives (GitHub Security Advisory)Official GitHub Security Advisory GHSA-vxf9-vwp6-2w43 detailing the sequential-XOR last-stage cancellation bug.
jahlives (GitHub Release)Release v1.4.8 containing the fix and enforcement blocking new v8/v10 encryption.

Fix Analysis (3)

Technical Appendix

CVSS Score
6.2/ 10
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Probability
0.08%
Top 100% most exploited

Affected Systems

openssl_encrypt Python package (versions < 1.4.6)Encrypted files generated with format_version 8 or format_version 10 (sequential XOR mode)

Affected Versions Detail

Product
Affected Versions
Fixed Version
openssl_encrypt
jahlives
< 1.4.61.4.6
AttributeDetail
Vulnerability TypeCWE-916: Use of Password Hash With Insufficient Computational Effort
Attack VectorLocal / Offline Cryptanalysis of Captured Ciphertext (AV:L)
CVSS v3.1 / v4.0 Score6.2 (Medium) / 6.9 (Medium)
EPSS Score0.081% (0.198th Percentile)
Affected Formatsformat_version 8 and 10 (Sequential XOR Composition)
Security ImpactMemory-Hard KDF Bypass (Key Collapses to Raw SHA-256 Pre-hash)
Exploit StatusProof-of-Concept / Cryptanalytic Reduction Verified
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1110.002Brute Force: Password Cracking
Credential Access
T1552.001Unsecured Credentials: Credentials In Files
Credential Access
CWE-916
Use of Password Hash With Insufficient Computational Effort

The software generates a password hash or derives cryptographic keys using a method that does not require sufficient computational effort, decreasing the work factor required for an attacker to crack passwords offline via dictionary or brute-force techniques.

Vulnerability Timeline

Flaw identified during internal cryptographic review; initial fix committed (1c122790d6d914909514dbe026d051bc06c50844) introducing format_version 13.
2026-06-28
Enforcement commits (e1b6731fae6ed9d6b17ecdc3b72edc3b364ee339 and a7d2c9054f5b4374561c82665b24adfe3fad360c) change default format_version to 9 and block new encryption under v8/v10.
2026-07-06
CVE-2026-74871 officially published by CNA VulnCheck and recorded in the National Vulnerability Database (NVD).
2026-08-17
NVD completes enrichment with CVSS v3.1 base score 6.2 and CWE-916 mapping.
2026-09-10
CVE.org record updated with CNA CVSS v4.0 metrics (score 6.9).
2026-10-01

References & Sources

  • [1]GitHub Security Advisory: GHSA-vxf9-vwp6-2w43
  • [2]VulnCheck Advisory: openssl_encrypt KDF Bypass via Sequential XOR
  • [3]NVD Entry: CVE-2026-74871
  • [4]CVE.org Record: CVE-2026-74871
  • [5]CVEListV5 Official JSON Record: CVE-2026-74871
  • [6]GitHub Commit: fix(v13) sequential XOR last-stage cancellation
  • [7]GitHub Commit: fix(kdf) default off cost-bypassing v8/v10 (1.4.x)
  • [8]GitHub Commit: fix(kdf) default off cost-bypassing v8/v10 (1.5.x)
  • [9]GitHub Release: openssl_encrypt v1.4.8

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

•36 minutes ago•CVE-2026-145367
7.7

CVE-2026-145367: Control Plane Nil Pointer Dereference and Crash-Loop DoS in Istio Ambient Mode

A denial-of-service vulnerability exists in the Istio Pilot control plane (istiod) when operating in ambient mesh mode. In versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0, creating a ServiceEntry with DNS or DNS_ROUND_ROBIN resolution attached to a waypoint proxy that resolves to zero endpoints causes buildCluster to return a nil pointer. The waypoint inbound cluster generation routine subsequently dereferences this nil pointer without validation, triggering an unhandled Go runtime panic that places all istiod replicas into a continuous crash-loop.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 2 hours ago•CVE-2026-144303
7.5

CVE-2026-144303: Denial of Service via Uncaught Exception in Node.js websocket-driver

CVE-2026-144303 (GHSA-mxfr-rg9v-vp3c) is a denial-of-service vulnerability affecting the websocket-driver package for Node.js prior to version 0.8.3. When a remote client sends WebSocket frame data concatenated in the same TCP segment as the initial HTTP Upgrade request headers, applications following the documented integration pattern pass the trailing byte buffer to driver.io.write() before calling driver.start(). Because internal protocol parser states and frame reader components are not initialized until driver.start() executes, attempting to parse early frame bytes triggers an unhandled TypeError, terminating the Node.js process.

Amit Schendel
Amit Schendel
3 views•9 min read
•about 4 hours ago•CVE-2026-137197
8.1

CVE-2026-137197: Command Injection on Windows in Node.js cross-spawn via Batch File Resolution Divergence

CVE-2026-137197 (GHSA-w3gc-668g-rf8f) is an OS command injection vulnerability (CWE-78) in the Node.js cross-spawn library affecting versions prior to 6.0.8 and 7.1.1 on Microsoft Windows. The flaw stems from parsing and resolution discrepancies between how cross-spawn identifies batch scripts (.bat and .cmd) and how Windows cmd.exe resolves target files. When a command string contains embedded double quotes, token delimiters, trailing whitespace, or relies on a child-specific PATHEXT environment variable, cross-spawn fails to detect that the target is a batch script and omits cmd.exe metacharacter escaping on user-supplied arguments, enabling arbitrary OS command execution.

Amit Schendel
Amit Schendel
8 views•13 min read
•about 8 hours ago•GHSA-6PPQ-9X26-5R92
5.3

GHSA-6ppq-9x26-5r92: Secret Retention Policy Bypass via Zero Expiry Override in Luzifer OTS

An input validation flaw in github.com/Luzifer/ots prior to version 1.21.8 allows unauthenticated remote attackers to bypass configured secret expiration policies. By supplying an expire=0 query parameter during secret creation, clients force the server to store secrets without a time-to-live (TTL) in both Redis and in-memory storage backends. This invalidates administrative data retention policies and permits unbounded storage consumption via unread secrets.

Alon Barad
Alon Barad
7 views•9 min read
•about 12 hours ago•CVE-2026-91110
6.4

CVE-2026-91110: Stored Cross-Site Scripting via URL Sanitisation Bypass in Silverstripe Framework

A stored Cross-Site Scripting (XSS) vulnerability exists in Silverstripe Framework versions prior to 6.2.13 within the HTML sanitisation engine (SilverStripe\Core\XssSanitiser). The sanitiser fails to strip or normalize non-printable ASCII C0 control characters and DEL bytes prior to evaluating URI attributes against scheme-blocking regular expressions. Because modern web browsers ignore these control bytes according to the WHATWG URL Standard, an authenticated CMS author can embed control bytes before or within a javascript: URI to bypass detection and execute arbitrary JavaScript in the browser context of users viewing the rendered content.

Alon Barad
Alon Barad
9 views•9 min read
•about 14 hours ago•CVE-2026-142637
4.8

CVE-2026-142637: Query Logic Injection in Laravel Database Validation Rules

CVE-2026-142637 (GHSA-ch34-gjmh-c4hp) is a query logic injection vulnerability (CWE-943) in the Laravel framework prior to versions 12.73.0 and 13.43.0. When fluent database validation rules such as Rule::exists() or Rule::unique() are scoped using the scalar where() method, the framework serializes the rule object into its legacy comma-delimited string format and subsequently reparses it. During reparsing, the database presence verifier evaluates specific reserved tokens—'NULL', 'NOT_NULL', and values prefixed with '!'—as SQL predicates rather than literal values. If an application passes untrusted user input into a fluent where() scope, an attacker can supply these sentinel tokens to alter the SQL evaluation logic and bypass multi-tenant isolation or ownership validation.

Alon Barad
Alon Barad
8 views•11 min read