{"id":"CVE-2024-55885","aliases":["CVE-2024-55885","GHSA-9j3m-fr7q-jxfw","GO-2024-3331"],"related":["CGA-h8jv-xf4q-pg52"],"kind":"vulnerability","state":"published","title":"Beego Vulnerable to Collision Hazards of MD5 in Cache Key Filenames","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n### Understanding Collisions\nA 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.\n\n### Implications for Cache Systems\nIn a cache system where filenames are derived from the MD5 hash of cache keys, a collision could lead to several critical issues:\n\nData 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.\nSecurity 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.\n\nUnpredictable 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.\n\n### Mitigation Strategies\nTo mitigate these risks, consider the following strategies:\n\nUse 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.\n\ncode at:https://github.com/beego/beego/blob/bb72dc27ac3970e51d38ee52fc3dc1465ae25b9d/client/cache/file.go#L126","format":"markdown","source":"ghsa"},{"lang":"en","text":"Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-12-12T19:22:39.000Z","modified":"2026-09-10T03:50:56.131Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-327","CWE-328"],"affected":[{"ranges":[{"version":"< 2.3.4","status":"affected"}],"vendor":"beego","product":"beego","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.12.14"}],"ecosystem":"Go","package":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.4"}],"ecosystem":"Go","package":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.4"}],"ecosystem":"Go","package":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.3.4"}],"vendor":"beego","product":"beego","cpe":"cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/beego/beego/security/advisories/GHSA-9j3m-fr7q-jxfw","tags":["advisory","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/beego/beego/commit/e7fa4835f71f47ab1d13afd638cebf661800d5a4","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55885","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/beego/beego","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-13T15:46:03.778Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-55885","url":"https://www.cve.org/CVERecord?id=CVE-2024-55885","licence":"CVE Terms of Use","modified":"2024-12-13T15:46:22.821Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9j3m-fr7q-jxfw","url":"https://github.com/advisories/GHSA-9j3m-fr7q-jxfw","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.131Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3331","url":"https://pkg.go.dev/vuln/GO-2024-3331","licence":"CC-BY-4.0","modified":"2026-02-04T02:21:25.221Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-55885","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55885","licence":"Public domain","modified":"2026-06-17T08:11:24.350Z"}],"updatedAt":"2026-11-25T22:58:50.070Z","epss":{"score":0.00347,"percentile":0.30265,"date":"2026-12-01T12:00:22.000Z"}}