{"id":"CVE-2025-62710","aliases":["CVE-2025-62710","GHSA-gr7h-xw4f-wh86"],"related":[],"kind":"vulnerability","state":"published","title":"Sakai kernel-impl: predictable PRNG used to generate server‑side encryption key in EncryptionUtilityServiceImpl","summary":"Sakai is a Collaboration and Learning Environment. Prior to versions 23.5 and 25.0, 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. SAK-49866 is patched in Sakai 23.5, 25.0, and trunk.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Sakai is a Collaboration and Learning Environment. Prior to versions 23.5 and 25.0, 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. SAK-49866 is patched in Sakai 23.5, 25.0, and trunk.","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Sakai es un Entorno de Colaboración y Aprendizaje. Antes de las versiones 23.5 y 25.0, EncryptionUtilityServiceImpl inicializaba una contraseña de AES256TextEncryptor (serverSecretKey) utilizando RandomStringUtils con el java.util.Random predeterminado. java.util.Random es un PRNG no criptográfico y puede predecirse a partir de información limitada de estado/semilla (p. ej., ventana de tiempo de inicio), reduciendo sustancialmente el espacio de búsqueda efectivo de la clave generada. Un atacante que puede obtener textos cifrados (p. ej., cadenas exportadas o en reposo protegidas por este servicio) y aproximar la semilla del PRNG puede reconstruir de forma factible la serverSecretKey y descifrar los datos afectados. SAK-49866 está parcheado en Sakai 23.5, 25.0 y trunk.","source":"nvd"}],"published":"2025-10-22T19:41:49.000Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-337"],"affected":[{"ranges":[{"version":"< 23.5","status":"affected"},{"version":"< 25.0","status":"affected"}],"vendor":"sakaiproject","product":"sakai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"23.3"}],"ecosystem":"Maven","package":"org.sakaiproject.kernel:sakai-kernel-impl","purl":"pkg:maven/org.sakaiproject.kernel/sakai-kernel-impl","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"23.5"}],"vendor":"sakailms","product":"sakai","cpe":"cpe:2.3:a:sakailms:sakai:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sakaiproject/sakai/security/advisories/GHSA-gr7h-xw4f-wh86","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sakaiproject/sakai/commit/bde070104b1de01f4a6458dca6d9e0880a0e3c04","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62710","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sakaiproject/sakai","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-23T15:37:06.777Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-62710","url":"https://www.cve.org/CVERecord?id=CVE-2025-62710","licence":"CVE Terms of Use","modified":"2025-10-24T18:28:07.317Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gr7h-xw4f-wh86","url":"https://github.com/advisories/GHSA-gr7h-xw4f-wh86","licence":"CC-BY-4.0","modified":"2025-10-24T18:59:01.678Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-62710","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62710","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"}],"updatedAt":"2026-11-25T22:59:06.729Z","epss":{"score":0.002,"percentile":0.10303,"date":"2026-12-01T12:00:22.000Z"}}