7.5high
Use of Password Hash With Insufficient Computational Effort and Use of a Broken or Risky Cryptographic Algorithm and Reversible One-Way Hash in hashing.py
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-35m5-8cvj-8783PYSEC-2021-385
Description
EnroCrypt is a Python module for encryption and hashing. Prior to version 1.1.4, EnroCrypt used the MD5 hashing algorithm in the hashing file. Beginners who are unfamiliar with hashes can face problems as MD5 is considered an insecure hashing algorithm. The vulnerability is patched in v1.1.4 of the product. As a workaround, users can remove the `MD5` hashing function from the file `hashing.py`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Morgan-Phoenix EnroCrypt | < 1.1.4 | CVE List |
| enrocrypt (PyPI) | before 1.1.4, before e652d56ac60eadfc26489ab83927af13a9b9d8ce | GitHub Advisory Database, PyPA Advisory Database |
| enrocrypt_project enrocrypt | before 1.1.4 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
EnroCrypt is a Python module for encryption and hashing. Prior to version 1.1.4, EnroCrypt used the MD5 hashing algorithm in the hashing file. Beginners who are unfamiliar with hashes can face problems as MD5 is considered an insecure hashing algorithm. The vulnerability is patched in v1.1.4 of the product. As a workaround, users can remove the `MD5` hashing function from the file `hashing.py`.
GitHub Advisory Database
Impact
The vulnerability is we used MD5 hashing Algorithm In our hashing file. If anyone who is a beginner(and doesn't know about hashes) can face problems as MD5 is considered a Insecure Hashing Algorithm.
Patches
The vulnerability is patched in v1.1.4 of the product, the users can upgrade to version 1.1.4.
Workarounds
If u specifically want a version and don't want to upgrade, you can remove the MD5 hashing function from the file hashing.py and this vulnerability will be gone
References
https://www.cybersecurity-help.cz/vdb/cwe/916/ https://www.cybersecurity-help.cz/vdb/cwe/327/ https://www.cybersecurity-help.cz/vdb/cwe/328/ https://www.section.io/engineering-education/what-is-md5/ https://www.johndcook.com/blog/2019/01/24/reversing-an-md5-hash/
For more information
If you have any questions or comments about this advisory:
- Open an issue in Enrocrypt's Official Repo
- Create a Discussion in Enrocrypt's Official Repo
NVD (es)
EnroCrypt es un módulo de Python para encriptación y hashing. En versiones anteriores a 1.1.4, EnroCrypt usaba el algoritmo de hashing MD5 en el archivo de hashing. Los principiantes que no estén familiarizados con los hashes pueden tener problemas ya que MD5 es considerado un algoritmo de hashing no seguro. La vulnerabilidad está parcheada en la versión 1.1.4 del producto. Como solución, los usuarios pueden eliminar la función de hashing "MD5" del archivo "hashing.py"
References
| https://github.com/Morgan-Phoenix/EnroCrypt/security/advisories/GHSA-35m5-8cvj-8783 | advisory, third-party-advisory, web | |
| https://github.com/Morgan-Phoenix/EnroCrypt/commit/e652d56ac60eadfc26489ab83927af13a9b9d8ce | exploit, fix, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-39182 | advisory | |
| https://github.com/Morgan-Phoenix/EnroCrypt | package | |
| https://github.com/pypa/advisory-database/tree/main/vulns/enrocrypt/PYSEC-2021-385.yaml | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-39182 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-35m5-8cvj-8783 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-39182 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-385 changed 2023-11-08 | CC-BY-4.0 |