{"answers":{"affected":"4 open source packages ship an affected version, including org.opencastproject:opencast-common-jpa-impl. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5229 in the wild and no public exploit code.","fix":"Upgrade org.opencastproject:opencast-common-jpa-impl to a fixed version for your release line: 7.6 or 8.1.","what":"CVE-2020-5229 is a high-severity vulnerability in opencast, published on 30 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5229 and fix it if it is affected.\n\nWhat it is: CVE-2020-5229 is a high-severity vulnerability in opencast, published on 30 Jan 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5229 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.opencastproject:opencast-common-jpa-impl (Maven): affected all versions; fixed in 7.6\n- org.opencastproject:opencast-common-jpa-impl (Maven): affected all versions; fixed in 7.6\n- org.opencastproject:opencast-common-jpa-impl (Maven): affected from 8.0; fixed in 8.1\n- org.opencastproject:opencast-common-jpa-impl (Maven): affected from 8.0; fixed in 8.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5229/ (Markdown: https://insights.sbomify.com/CVE-2020-5229/index.md)","id":"CVE-2020-5229","markdown":"https://insights.sbomify.com/CVE-2020-5229/index.md","name":"CVE-2020-5229","record":{"aliases":["GHSA-h362-m8f2-5x7c"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Opencast media platform","requires_auth":"low_privilege","summary":"Opencast uses insecure MD5 hashing with predictable salts, allowing attackers with database access to potentially recover user passwords.","user_interaction":"required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"opencast","vendor":"apereo"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Opencast stores passwords using outdated MD5 hash algorithm","id":"CVE-2020-5229","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"weak_cryptography","year":"2020"},"n_packages":4,"n_references":2,"next":{"headline":"Opencast uses unsafe identifiers","id":"CVE-2020-5230"},"packages":[{"ecosystem":"Maven","fixed":["7.6"],"introduced":["0"],"last_affected":[],"package":"org.opencastproject:opencast-common-jpa-impl","purl":null,"source":"GHSA-h362-m8f2-5x7c"},{"ecosystem":"Maven","fixed":["7.6"],"introduced":["0"],"last_affected":[],"package":"org.opencastproject:opencast-common-jpa-impl","purl":"pkg:maven/org.opencastproject/opencast-common-jpa-impl","source":"GHSA-h362-m8f2-5x7c"},{"ecosystem":"Maven","fixed":["8.1"],"introduced":["8.0"],"last_affected":[],"package":"org.opencastproject:opencast-common-jpa-impl","purl":null,"source":"GHSA-h362-m8f2-5x7c"},{"ecosystem":"Maven","fixed":["8.1"],"introduced":["8.0"],"last_affected":[],"package":"org.opencastproject:opencast-common-jpa-impl","purl":"pkg:maven/org.opencastproject/opencast-common-jpa-impl","source":"GHSA-h362-m8f2-5x7c"}],"prev":{"headline":"Opencast allows unauthorized public access via OAI-PMH","id":"CVE-2020-5228"},"products":["opencast"],"published":"2020-01-30","related":[{"cvss_score":9.9,"headline":"Files Accessible to External Parties in Opencast","id":"CVE-2021-43821","kev_date_added":null,"published":"2021-12-14"},{"cvss_score":8.7,"headline":"Authentication Bypass For Endpoints With Anonymous Access in OpenCast","id":"CVE-2020-5206","kev_date_added":null,"published":"2020-01-30"},{"cvss_score":8.1,"headline":"Opencast vulnerable to billion laughs attack (XML bomb)","id":"CVE-2021-32623","kev_date_added":null,"published":"2021-06-15"},{"cvss_score":7.7,"headline":"Opencast uses unsafe identifiers","id":"CVE-2020-5230","kev_date_added":null,"published":"2020-01-30"},{"cvss_score":7.6,"headline":"Opencast allows unauthorized public access via OAI-PMH","id":"CVE-2020-5228","kev_date_added":null,"published":"2020-01-30"},{"cvss_score":7.5,"headline":"Opencast publishes global system account credentials","id":"CVE-2018-16153","kev_date_added":null,"published":"2023-12-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["opencast"]},"summary":"Opencast uses insecure MD5 hashing with predictable salts, allowing attackers with database access to potentially recover user passwords.","url":"https://insights.sbomify.com/CVE-2020-5229/"}