Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting openmage/magento-lts package, versions <20.18.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-OPENMAGEMAGENTOLTS-16424055
  • published6 May 2026
  • disclosed5 May 2026
  • credit0x0OZ

Introduced: 5 May 2026

CVE-2026-42155  (opens in a new tab)
CWE-330  (opens in a new tab)
CWE-331  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

Upgrade openmage/magento-lts to version 20.18.0 or higher.

Overview

openmage/magento-lts is a This repository is the home of an unofficial community-driven project.

Affected versions of this package are vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in the start function. An attacker can gain unauthorized access to active API sessions by predicting session identifiers through brute-force attacks leveraging the predictability of time-based and process-derived inputs. This enables the attacker to perform actions with the privileges of authenticated API users, such as reading or modifying customer data, orders, and inventory, by submitting crafted session IDs to exposed API endpoints. This is only exploitable if the API endpoints lack rate limiting, allowing high-speed online brute-force attempts.

CVSS Base Scores

version 4.0
version 3.1