Skip to content

fix: upgrade weak hash in speech.py (CWE-328) - #71

Open
anupamme wants to merge 1 commit into
audiojs:masterfrom
anupamme:fix-repo-audio-cwe-328-md5-cache-tag
Open

anupamme wants to merge 1 commit into
audiojs:masterfrom
anupamme:fix-repo-audio-cwe-328-md5-cache-tag

Conversation

@anupamme

Copy link
Copy Markdown

MD5 is used for generating cache tags from reference directory names. MD5 is a cryptographically broken hash algorithm vulnerable to collision attacks, which could theoretically allow cache tag collision if an attacker can control directory names. The affected code is bench/speech.py:140. This change is the fix I would apply.

Reference: CWE-328

What changed

  • bench/speech.py

Verification

No automated check could be run against this repository, so this change is unverified beyond review. Please treat it as a suggestion.


Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant