CVE-2025-62710: Sakai kernel-impl Predictable PRNG Used To Generate Vulnerability

MODERATE
Advisory Identifier: GHSA-gr7h-xw4f-wh86
CVSS 5.9
CWE-337
Published
Advisory Summary

CVE-2025-62710 is a MODERATE (CVSS 5.9) predictable prng used to generate vulnerability (CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG)) affecting Sakai kernel-impl libraries in the Maven ecosystem. The issue involves predictable prng used to generate server‑side encryption key in encryptionutilityserviceimpl. Remediation is available in the latest vendor maintenance releases.

CVE-2025-62710 at a Glance

CVE Identifier CVE-2025-62710
GHSA Identifier GHSA-gr7h-xw4f-wh86
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG)
Affected Product Sakai kernel-impl
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-62710

To remediate this vulnerability, upgrade all affected Sakai kernel-impl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.sakaiproject.kernel:sakai-kernel-impl fixed: Latest secure release
<dependency>
    <groupId>org.sakaiproject.kernel</groupId>
    <artifactId>sakai-kernel-impl</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.sakaiproject.kernel

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-62710, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.sakaiproject.kernel

Analyze the terminal output to locate any version of Sakai kernel-impl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.sakaiproject.kernel command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG), where a pseudo-random number generator (prng) is initialized from a predictable seed, such as the process id or system time. In Sakai kernel-impl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact EncryptionUtilityServiceImpl initialized an AES256TextEncryptor password (serverSecretKey) using RandomStringUtils with the default java.util.Random. java.util.Random is a non‑cryptographic PRNG and can be predicted from limited state/seed information (e.g., start time window), substantially reducing the effective search space of the generated key. An attacker who can obtain ciphertexts (e.g., exported or at‑rest strings protected by this service) and approximate the PRNG seed can feasibly reconstruct the serverSecretKey and decrypt affected data. ### Patches SAK-49866 is patched in Sakai 23.5, 25.0, and trunk. ### Credits - Reported by [Suraj Gangwar](https://www.linkedin.com/in/surajgangwar?trk=contact-info). - Patched by Sam Ottenhoff (Longsight).

CVE-2025-62710 Affected Sakai kernel-impl Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
org.sakaiproject.kernel:sakai-kernel-impl
Maven
≤ 23.3

References

Frequently Asked Questions

What is CVE-2025-62710?
CVE-2025-62710 is a security vulnerability in Sakai kernel-impl involving predictable PRNG used to generate server‑side encryption key in EncryptionUtilityServiceImpl under CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG).
Which Sakai kernel-impl versions are affected?
Affected versions include releases prior to current release patches across affected packages: org.sakaiproject.kernel:sakai-kernel-impl.
What version fixes CVE-2025-62710?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is sakai-kernel-impl affected?
Yes, org.sakaiproject.kernel:sakai-kernel-impl is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-62710?
CVE-2025-62710 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-62710?
CVE-2025-62710 is classified under CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG) (A Pseudo-Random Number Generator (PRNG) is initialized from a predictable seed, such as the process ID or system time.).
How can I check Maven dependencies for CVE-2025-62710?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.sakaiproject.kernel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gr7h-xw4f-wh86",
  "modified" : "2025-10-24T18:27:44Z",
  "published" : "2025-10-22T19:41:49Z",
  "aliases" : [ "CVE-2025-62710" ],
  "summary" : "Sakai kernel-impl: predictable PRNG used to generate server‑side encryption key in EncryptionUtilityServiceImpl",
  "details" : "### Impact\nEncryptionUtilityServiceImpl initialized an AES256TextEncryptor password (serverSecretKey) using RandomStringUtils with the default java.util.Random. java.util.Random is a non‑cryptographic PRNG and can be predicted from limited state/seed information (e.g., start time window), substantially reducing the effective search space of the generated key. An attacker who can obtain ciphertexts (e.g., exported or at‑rest strings protected by this service) and approximate the PRNG seed can feasibly reconstruct the serverSecretKey and decrypt affected data.\n\n### Patches\nSAK-49866 is patched in Sakai 23.5, 25.0, and trunk. \n\n### Credits\n- Reported by [Suraj Gangwar](https://www.linkedin.com/in/surajgangwar?trk=contact-info).\n- Patched by Sam Ottenhoff (Longsight).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.sakaiproject.kernel:sakai-kernel-impl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "23.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sakaiproject/sakai/security/advisories/GHSA-gr7h-xw4f-wh86"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-62710"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sakaiproject/sakai/commit/bde070104b1de01f4a6458dca6d9e0880a0e3c04"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sakaiproject/sakai"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-337" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-22T19:41:49Z",
    "nvd_published_at" : "2025-10-22T23:15:34Z"
  }
}