CVE-2024-55885
highpriority · track · 30OT risk · elevatedEPSS 0.003 · 28 %ileEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 2.7–7.5
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-9j3m-fr7q-jxfwBeego has Collision Hazards of MD5 in Cache Key Filenames2024-12-12ghsa · osvUS
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. code at:https://github.com/beego/beego/blob/bb72dc27ac3970e51d38ee52fc3dc1465ae25b9d/client/cache/file.go#L126
- GO-2024-3331Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego2024-12-18vendor · osvUS
Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/beego/beego/commit/e7fa4835f71f47ab1d13afd638cebf661800d5a4cnnvd
- https://github.com/beego/beego/releases/tag/v2.3.4Patchcnnvd
- https://github.com/beego/beego/security/advisories/GHSA-9j3m-fr7q-jxfwcnnvd
- https://github.com/beego/beego/commit/e7fa4835f71f47ab1d13afd638cebf661800d5a4enisa_euvd
- https://github.com/beego/beego/security/advisories/GHSA-9j3m-fr7q-jxfwenisa_euvd
- https://github.com/beego/beego/commit/e7fa4835f71f47ab1d13afd638cebf661800d5a4Patchnvd
- https://github.com/beego/beego/security/advisories/GHSA-9j3m-fr7q-jxfwMitigationVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan