GHSA-gr7h-xw4f-wh86

    Dashboard / Vulnerabilities / GHSA-gr7h-xw4f-wh86

    GHSA-gr7h-xw4f-wh86

    Published: 22 Oct 2025Last Modified: 24 Oct 2025

    Summary: Sakai kernel-impl: predictable PRNG used to generate server‑side encryption key in EncryptionUtilityServiceImpl

    Details: ### 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).

    Affected packages

    Package

    Name: org.sakaiproject.kernel:sakai-kernel-impl

    Purl: pkg:maven/org.sakaiproject.kernel/sakai-kernel-impl

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.3.0
    1.3.0-b03
    1.3.0-b04
    1.3.0-b06
    1.3.0-b07
    1.3.0-rc01
    1.3.0-rc02
    1.3.0-rc03
    1.3.1
    1.3.2
    1.3.3

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-gr7h-xw4f-wh86 | CVE-DB