GHSA-gr7h-xw4f-wh86

Suggest an improvement
Source
https://github.com/advisories/GHSA-gr7h-xw4f-wh86
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-gr7h-xw4f-wh86/GHSA-gr7h-xw4f-wh86.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gr7h-xw4f-wh86
Aliases
Published
2025-10-22T19:41:49Z
Modified
2025-10-24T18:59:01.678693Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
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.
  • Patched by Sam Ottenhoff (Longsight).
Database specific
{
    "cwe_ids": [
        "CWE-337"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-10-22T19:41:49Z",
    "nvd_published_at": "2025-10-22T23:15:34Z",
    "severity": "MODERATE"
}
References

Affected packages

Maven / org.sakaiproject.kernel:sakai-kernel-impl

Package

Name
org.sakaiproject.kernel:sakai-kernel-impl
View open source insights on deps.dev
Purl
pkg:maven/org.sakaiproject.kernel/sakai-kernel-impl

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
23.3

Affected versions

1.*

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.0
1.3.1
1.3.2
1.3.3

10.*

10.3
10.4
10.6
10.7

11.*

11.0
11.1
11.2
11.3
11.4

12.*

12.0
12.1
12.2
12.3
12.4
12.5
12.6
12.7

19.*

19.0
19.1
19.2
19.3
19.4
19.5
19.6

20.*

20.0
20.1
20.2
20.3
20.4
20.5
20.6

21.*

21.0
21.1
21.2
21.3
21.4
21.5

22.*

22.0
22.1
22.2
22.3
22.4
22.5

23.*

23.0
23.1
23.2
23.3