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.
Published: 2026-10-19
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: Cryptographically Weak Random Number Generation
Action: Assess Impact
AI Analysis

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.

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

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 yet.

History

Mon, 19 Oct 2026 02:15:00 +0000

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'}


Subscriptions

Diem-project Diem
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-10-19T02:00:21.063Z

Reserved: 2026-10-18T09:52:22.316Z

Link: CVE-2026-112041

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-19T02:17:06.840

Modified: 2026-10-19T02:17:06.840

Link: CVE-2026-112041

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T03:30:06Z

Weaknesses
  • CWE-331

    Insufficient Entropy

  • CWE-338

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