Intel

AIKIDO-2026-875825

crypto-android is vulnerable to Improper Input Validation

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 4 days ago
November 5, 2026

33

CVE Score

Low

Improper Input Validation

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the com.vitorpamplona.crypto:crypto-android package to 2.0.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range of com.vitorpamplona.crypto:crypto-android.

Versions

1.0.0 - 1.0.0

Fixed in 2.0.0

Background info

crypto-android is vulnerable to Improper Input Validation in versions 1.0.0 - 1.0.0.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea