CVE-2026-112041

diem-project diem dmString.php random weak prng

Published Oct 19, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was identified in diem-project diem up to 116974edfb9a5b8bd69cb13586dc62bcdbb485ad. This vulnerability affects the function dmString::random of the file dmCorePlugin/lib/basic/dmString.php. Such manipulation leads to cryptographically weak prng. The attack may be performed from remote. A high complexity level is associated with this attack. It is stated that the exploitability is difficult. The exploit is publicly available and might be used. This product utilizes a rolling release system for continuous delivery, and as such, version information for affected or updated releases is not disclosed. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The vulnerability originates in the dmString::random helper function within the Diem project’s library, causing it to use a cryptographically weak pseudo‑random number generator that can produce predictable random values. As a result, an attacker could potentially guess or manipulate values that should be secure—such as session tokens, nonces, or other cryptographic material—leading to unauthorized access or privilege escalation. The weakness is identified by CWE-331 and CWE-338, and a publicly available exploit exists. The attack vector is remote, requires a high level of skill, and is described as difficult to execute, yet the presence of a public exploit signals a real threat to systems that rely on this function for security.

Affected Systems

The affected product is the Diem project, specifically the Diem core library that implements the dmString::random function. The issue exists in versions up to commit 116974edfb9a5b8bd69cb13586dc62bcdbb485ad. Because the project follows a rolling release model, exact affected releases beyond that commit are not listed, and any current or future releases must be verified for the presence of the fix.

Risk and Exploitability

The CVSS score for this issue is 6.3, indicating a moderate threat. EPSS scoring is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack can be performed from remote, and while the description notes a high complexity and difficult exploitability, it also states that a publicly available exploit exists. This combination suggests that while widespread attacks may be limited, the risk to any system using the vulnerable function remains significant, especially if key security tokens are generated by dmString::random.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest Diem release where the dmString::random issue is fixed.
  • Replace any usage of dmString::random with a secure random number generator such as PHP's random_bytes or openssl_random_pseudo_bytes.
  • Ensure all cryptographic operations or token generation rely on a cryptographically secure pseudorandom number generator.
  • Monitor for anomalies such as token reuse or predictable session identifiers and apply intrusion detection rules accordingly.

Generated by OpenCVE AI on October 19, 2026 at 03:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability was identified in diem-project diem up to 116974edfb9a5b8bd69cb13586dc62bcdbb485ad. This vulnerability affects the function dmString::random of the file dmCorePlugin/lib/basic/dmString.php. Such manipulation leads to cryptographically weak prng. The attack may be performed from remote. A high complexity level is associated with this attack. It is stated that the exploitability is difficult. The exploit is publicly available and might be used. This product utilizes a rolling release system for continuous delivery, and as such, version information for affected or updated releases is not disclosed. The project was informed of the problem early through an issue report but has not responded yet.
Title diem-project diem dmString.php random weak prng
First Time appeared Diem-project
Diem-project diem
Weaknesses CWE-331
CWE-338
CPEs cpe:2.3:a:diem-project:diem:*:*:*:*:*:*:*:*
Vendors & Products Diem-project
Diem-project diem
References
Metrics cvssV2_0

{'score': 2.6, 'vector': 'AV:N/AC:H/Au:N/C:P/I:N/A:N/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 3.7, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-331

    Insufficient Entropy

  • CWE-338

    Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Oct 19, 2026, 5:48 PM
Reserved
Oct 18, 2026, 9:52 AM
Status
Deferred
Published
Oct 19, 2026, 2:17 AM
Modified
Oct 19, 2026, 6:17 PM