Loading advisory.
Loading advisory.
Ciphertext Malleability Issue in Tink Java
Tink's Java version before 1.5 under some circumstances allowed attackers to change the key ID part of the ciphertext, resulting in the attacker creating a second ciphertext that will decrypt to the same plaintext.
Published 2020-10-16 00:51 UTC · Modified 2026-07-08 06:00 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| com.google.crypto.tink:tink | Maven | < 1.5.0 versions 1.0.0, 1.1.0, 1.1.1, 1.2.0, 1.2.0-rc2, 1.2.0-rc3, 1.2.0-rc4, 1.2.1, 1.2.2, 1.3.0, 1.3.0-rc1, 1.3.0-rc2, 1.3.0-rc3, 1.3.0-rc4, 1.4.0, 1.4.0-rc1, 1.4.0-rc2 | 1.5.0 | No single command for Maven. Update to 1.5.0 in your build file. |
| tink | PyPI | git commits in https://github.com/google/tink: < 93d839a5865b9d950dffdc9d0bc99b71280a8899 < 1.5.0 versions 1.4.0 | 93d839a5865b9d950dffdc9d0bc99b71280a8899, 1.5.0 | pip install --upgrade 'tink>=93d839a5865b9d950dffdc9d0bc99b71280a8899'pip install --upgrade 'tink>=1.5.0' |
Tink's Java version before 1.5 under some circumstances allowed attackers to change the key ID part of the ciphertext, resulting in the attacker creating a second ciphertext that will decrypt to the same plaintext. This can be a problem in particular in the case of encrypting with a deterministic AEAD with a single key, and relying on the fact that there is only a single valid ciphertext per plaintext.
No loss of confidentiality or loss of plaintext integrity occurs due to this problem, only ciphertext integrity is compromised.
The issue was fixed in this pull request.
The only workaround is to backport the fixing pull request.
Tink uses the first five bytes of a ciphertext for a version byte and a four byte key ID. Since each key has a well defined prefix, this extends non-malleability properties (but technically not indistinguishability). However, in the Java version this prefix lookup used a hash map indexed by unicode strings instead of the byte array, which means that invalid Unicode characters would be replaced by U+FFFD by the Java API's default behavior. This means several different values for the five bytes would result in the same hash table key, which allows an attacker to exchange one invalid byte sequence for another, creating a mutated ciphertext that still decrypts (to the same plaintext).
We'd like to thank Peter Esbensen for finding this issue and raising it internally.
If you have any questions or comments about this advisory:
Open an issue in Tink
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.005 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |