Vulnerability DatabaseGHSA-gr7h-xw4f-wh86

GHSA-gr7h-xw4f-wh86
Java vulnerability analysis and mitigation

Overview

A security vulnerability was identified in Sakai's kernel-impl component (GHSA-gr7h-xw4f-wh86) affecting versions up to 23.3. The issue involves the use of a predictable Pseudo-Random Number Generator (PRNG) in the EncryptionUtilityServiceImpl class for generating server-side encryption keys. The vulnerability was discovered by Suraj Gangwar and patched by Sam Ottenhoff from Longsight, with fixes implemented in Sakai versions 23.5, 25.0, and trunk (GitHub Advisory).

Technical details

The vulnerability stems from the EncryptionUtilityServiceImpl's initialization of an AES256TextEncryptor password (serverSecretKey) using RandomStringUtils with the default java.util.Random. This implementation is problematic as java.util.Random is a non-cryptographic PRNG that can be predicted from limited state/seed information, such as start time windows. The vulnerability has been assigned a CVSS score of 5.9 (Moderate) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating network attack vector with high complexity, no privileges required, and potential impact on confidentiality (GitHub Advisory).

Impact

The vulnerability significantly reduces the effective search space of the generated encryption key. An attacker who can obtain ciphertexts (such as exported or at-rest strings protected by this service) and approximate the PRNG seed could potentially reconstruct the serverSecretKey and decrypt affected data (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been addressed in SAK-49866 and is patched in Sakai versions 23.5, 25.0, and trunk. Users are advised to upgrade to these patched versions to mitigate the vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62249MEDIUM6.9
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesOct 21, 2025
CVE-2025-62250MEDIUM6.9
  • JavaJava
  • com.liferay:com.liferay.portal.cluster.multiple
NoYesOct 21, 2025
GHSA-gr7h-xw4f-wh86LOW2.6
  • JavaJava
  • org.sakaiproject.kernel:sakai-kernel-impl
NoNoOct 22, 2025
CVE-2025-11965N/AN/A
  • JavaJava
  • pki-resteasy-servlet-initializer
NoYesOct 22, 2025
CVE-2025-11966N/AN/A
  • JavaJava
  • io.vertx:vertx-web
NoYesOct 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management