{"id":"CVE-2020-5229","aliases":["CVE-2020-5229","GHSA-h362-m8f2-5x7c"],"related":[],"kind":"vulnerability","state":"published","title":"Opencast stores passwords using outdated MD5 hash algorithm","summary":"Opencast before 8.1 stores passwords using the rather outdated and cryptographically insecure MD5 hash algorithm. Furthermore, the hashes are salted using the username instead of a random salt, causing hashes for users with the same username and password to collide which is problematic especially for popular users like the default `admin` user. This essentially means that for an attacker, it might be feasible to reconstruct a user's password given access to these hashes. Note that attackers needing access to the hashes means that they must gain access to the database in which these are stored first to be able to start cracking the passwords. The problem is addressed in Opencast 8.1 which now uses the modern and much stronger bcrypt password hashing algorithm for storing passwords. Note, that old hashes remain MD5 until the password is updated. For a list of users whose password hashes are stored using MD5, take a look at the `/user-utils/users/md5.json` REST endpoint.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Opencast before 8.1 stores passwords using the rather outdated and cryptographically insecure MD5 hash algorithm. Furthermore, the hashes are salted using the username instead of a random salt, causing hashes for users with the same username and password to collide which is problematic especially for popular users like the default `admin` user. This essentially means that for an attacker, it might be feasible to reconstruct a user's password given access to these hashes. Note that attackers needing access to the hashes means that they must gain access to the database in which these are stored first to be able to start cracking the passwords. The problem is addressed in Opencast 8.1 which now uses the modern and much stronger bcrypt password hashing algorithm for storing passwords. Note, that old hashes remain MD5 until the password is updated. For a list of users whose password hashes are stored using MD5, take a look at the `/user-utils/users/md5.json` REST endpoint.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUser passwords are stored in the database using the rather outdated and cryptographically insecure MD5 hash algorithm. Furthermore, the hashes are salted using the username instead of a random salt, causing hashes for users with the same username and password to collide which is problematic especially for popular users like the default `admin` user.\n\nThis essentially means that for an attacker, it might be feasible to reconstruct a user's password given access to these hashes.\n\nNote that attackers needing access to the hashes means that they must gain access to the database in which these are stored first to be able to start cracking the passwords.\n\n\n### Patches\n\nThe problem is addressed in Opencast 8.1 which now uses the modern and much stronger bcrypt password hashing algorithm for storing passwords. Note, that old hashes remain MD5 until the password is updated.\n\nFor a list of users whose password hashes are stored using MD5, take a look at the `/user-utils/users/md5.json` REST endpoint.\n\n\n### Workarounds\n\nThere is no workaround.\n\n### References\n\n- [MD5 (Wikipedia)](https://en.wikipedia.org/wiki/MD5)\n- [bcrypt (Wikipedia)](https://en.wikipedia.org/wiki/Bcrypt)\n- [How weak is MD5 as a password hashing function?](https://security.stackexchange.com/q/52461)\n\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [opencast/opencast](https://github.com/opencast/opencast/issues)\n- For security-relevant information, email us at security@opencast.org","format":"markdown","source":"ghsa"},{"lang":"es","text":"Opencast versiones anteriores a 8.1, almacena contraseñas usando el algoritmo hash MD5 bastante antiguo y criptográficamente no seguro. Además, los hash son salados utilizando el nombre de usuario en lugar de una sal aleatoria, causando que los hash para usuarios con el mismo nombre de usuario y contraseña choquen, lo que es problemático, especialmente para usuarios populares tales como el usuario predeterminado \"admin\". Esto esencialmente significa que para un atacante, podría ser factible reconstruir la contraseña de un usuario dado el acceso a estos hashes. Considere que los atacantes al necesitar acceso a los hashes significa que deben obtener acceso a la base de datos en la que se almacenan primero, para que sean capaces de descifrar las contraseñas. El problema es abordado en Opencast versión 8.1, que ahora utiliza el algoritmo de hash de contraseña bcrypt moderno y mucho más fuerte para almacenar contraseñas. Tome en cuenta que los hashes antiguos permanecen MD5 hasta que se actualiza la contraseña. Para obtener una lista de los usuarios cuyos hash de contraseña son almacenados con MD5, visualice al endpoint REST \"/user-utils/users/md5.json\".","source":"nvd"}],"published":"2020-01-30T20:05:17.000Z","modified":"2026-09-10T03:48:42.375Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","score":7.7,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-327"],"affected":[{"ranges":[{"version":"< 8.1","status":"affected"}],"vendor":"opencast","product":"opencast","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.6"}],"ecosystem":"Maven","package":"org.opencastproject:opencast-common-jpa-impl","purl":"pkg:maven/org.opencastproject/opencast-common-jpa-impl","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0","status":"affected","fixed":"8.1"}],"ecosystem":"Maven","package":"org.opencastproject:opencast-common-jpa-impl","purl":"pkg:maven/org.opencastproject/opencast-common-jpa-impl","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.1"}],"vendor":"apereo","product":"opencast","cpe":"cpe:2.3:a:apereo:opencast:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/opencast/opencast/security/advisories/GHSA-h362-m8f2-5x7c","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/opencast/opencast/commit/32bfbe5f78e214e2d589f92050228b91d704758e","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5229","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-5229","url":"https://www.cve.org/CVERecord?id=CVE-2020-5229","licence":"CVE Terms of Use","modified":"2024-08-04T08:22:08.967Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h362-m8f2-5x7c","url":"https://github.com/advisories/GHSA-h362-m8f2-5x7c","licence":"CC-BY-4.0","modified":"2026-09-10T03:48:42.375Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-5229","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5229","licence":"Public domain","modified":"2026-06-17T03:21:04.277Z"}],"updatedAt":"2026-11-25T22:57:50.726Z","epss":{"score":0.00626,"percentile":0.51336,"date":"2026-12-01T12:00:22.000Z"}}