crypto-android is vulnerable to Improper Input Validation
33
CVE Score
Low
Improper Input Validation
Before the fix, sha256Into fed the thread-local SHA-256 digest before validating the caller's output buffer and length, so a short buffer left the digest polluted and the thread's next hash was wrong; Sha256Midstate.digestInto wrote 32 bytes into any caller buffer, hasLeadingZeroBits returned true for negative counts and read past its state above 256 bits, and releasing one Sha256Pool hasher twice let two threads hash on a single digest. Any application code calling these public helpers with the arguments it controls triggers the flaws. The fix validates arguments before any hashing, bounds the bit count, and makes a double release a no-op.
Upgrade the com.vitorpamplona.crypto:crypto-android package to 2.0.0 or later.
You are affected if you are using a version that falls within the vulnerable range of com.vitorpamplona.crypto:crypto-android.
1.0.0 - 1.0.0
Fixed in 2.0.0crypto-android is vulnerable to Improper Input Validation in versions 1.0.0 - 1.0.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.