6.9medium
Beego Vulnerable to Collision Hazards of MD5 in Cache Key Filenames
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.35% (higher than 30% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-9j3m-fr7q-jxfwGO-2024-3331
Description
beego is an open-source web framework for the Go programming language. Versions of beego prior to 2.3.4 use MD5 as a hashing algorithm. MD5 is no longer considered secure against well-funded opponents due to its vulnerability to collision attacks. Version 2.3.4 replaces MD5 with SHA256.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| beego beego | < 2.3.4, before 2.3.4 | CVE List, NVD |
| github.com/beego/beego (Go) | up to 1.12.14, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/beego/beego/v2 (Go) | before 2.3.4 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
beego is an open-source web framework for the Go programming language. Versions of beego prior to 2.3.4 use MD5 as a hashing algorithm. MD5 is no longer considered secure against well-funded opponents due to its vulnerability to collision attacks. Version 2.3.4 replaces MD5 with SHA256.
GitHub Advisory Database
In the context of using MD5 to generate filenames for cache keys, there are significant collision hazards that need to be considered. MD5, or Message Digest Algorithm 5, is a widely known cryptographic hash function that produces a 128-bit hash value. However, MD5 is no longer considered secure against well-funded opponents due to its vulnerability to collision attacks.
Understanding Collisions
A collision in hashing occurs when two different inputs produce the same hash output. For MD5, this means that it is theoretically possible, and even practical, to find two distinct cache keys that result in the same MD5 hash. This vulnerability has been well-documented and exploited in various security contexts.
Implications for Cache Systems
In a cache system where filenames are derived from the MD5 hash of cache keys, a collision could lead to several critical issues:
Data Integrity Risks: If two different keys collide, they will map to the same filename. This could result in data being overwritten incorrectly, leading to data loss or corruption. Security Vulnerabilities: An attacker could potentially exploit collisions to manipulate cache data. For instance, by crafting a key that collides with another key, an attacker might gain unauthorized access to sensitive cached information or inject malicious data.
Unpredictable Behavior: Collisions can cause the cache system to behave unpredictably, as it may retrieve or store data in unintended files, leading to system instability or incorrect behavior.
Mitigation Strategies
To mitigate these risks, consider the following strategies:
Use a More Secure Hash Function: Replace MD5 with a more secure hash function like SHA-256, which has a significantly lower probability of collisions and is resistant to known attack vectors.
Go Vulnerability Database
Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego
NVD (es)
beego es un framework web de código abierto para el lenguaje de programación Go. Las versiones de beego anteriores a la 2.3.4 utilizan MD5 como algoritmo hash. MD5 ya no se considera seguro contra oponentes bien financiados debido a su vulnerabilidad a los ataques de colisión. La versión 2.3.4 reemplaza MD5 por SHA256.
References
| https://github.com/beego/beego/security/advisories/GHSA-9j3m-fr7q-jxfw | advisory, mitigation, vendor-advisory, web | |
| https://github.com/beego/beego/commit/e7fa4835f71f47ab1d13afd638cebf661800d5a4 | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-55885 | advisory | |
| https://github.com/beego/beego | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-55885 changed 2024-12-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9j3m-fr7q-jxfw changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3331 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-55885 changed 2026-06-17 | Public domain |