CVE-2020-5229: Password Hashing: Do not use MD5
7.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36942%
CWE
Published
1/30/2020
Updated
1/9/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.opencastproject:opencast-common-jpa-impl | maven | < 7.6 | 7.6 |
org.opencastproject:opencast-common-jpa-impl | maven | >= 8.0, < 8.1 | 8.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the use of MD5 with username-based salting for password hashing. The commit diff shows the deletion of 'PasswordEncoder.java'
, which contained the insecure MD5 implementation. The replacement with 'CustomPasswordEncoder.java'
using bcrypt confirms this was the vulnerable component. The encode()
method in the removed PasswordEncoder
class directly implemented the flawed hashing logic described in the advisory.