CVE-2026-95105 Details
Description
Reliance on Obfuscation or Encryption of Security-Relevant Inputs without Integrity Checking vulnerability in danielberkompas cloak allows an attacker with write access to stored ciphertext to make it decrypt to a chosen value via bit flipping. Cloak.Ciphers.AES.CTR encrypts with AES-256 in CTR mode and stores the key tag, the IV and the ciphertext with no MAC. decrypt/2 checks only the key tag and the minimum length before it returns the plaintext, and Cloak.Ciphers.Deprecated.AES.CTR decrypts the legacy format the same way. CTR is a stream cipher, so a value XORed into the stored ciphertext is XORed into the plaintext at the same offset. An attacker who can write to the encrypted store (for example through SQL injection or a compromised replica) and who knows or can guess a stored plaintext can replace it with any value of the same length. The application receives that value with no error. This issue affects cloak: from 0.1.0-pre onward.
A vulnerability exists in the Daniel Berkompas Cloak library, specifically in versions 0.1.0-pre and later, within the AES-CTR cipher implementation. This vulnerability allows an attacker with write access to stored ciphertext to manipulate the decryption process, making it return a chosen value. The issue arises because the encryption with AES-256 in CTR mode lacks proper integrity checks. The ciphertext is stored without a Message Authentication Code (MAC), and the decryption function only verifies the key tag and minimum length before returning the plaintext. As a result, an attacker can exploit this by XORing a value into the modified ciphertext, which is then decrypted and trusted by the application.
Users are advised to configure the vault to use 'Cloak.Ciphers.AES.GCM' as the default cipher, which provides integrity authentication for the ciphertext. Existing values should be re-encrypted using the 'cloak.migrate.ecto' task from the 'cloak_ecto' package. After migrating, 'Cloak.Ciphers.AES.CTR' and 'Cloak.Ciphers.Deprecated.AES.CTR' should be removed from the vault configuration to prevent the decryption of CTR-formatted ciphertext.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 6, 2026CISA-ADP
Assessed Oct 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-95105.html | CISA-ADP | AdvisoryExploitRemedy |
| https://cna.erlef.org/cves/CVE-2026-95105.html | EEF | AdvisoryExploitRemedy |
| https://github.com/danielberkompas/cloak/commit/2bd17019e285b55c5c218cc842537bf9280f24c3 | EEF | Source CodeVendor |
| https://osv.dev/vulnerability/EEF-CVE-2026-95105 | EEF | AdvisoryExploitRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-649 | Reliance on Obfuscation or Encryption of Security-Relevant Inputs without Integrity Checking | EEF |
Affected Products
| Product | Versions |
|---|---|
| danielberkompas cloak | >= 0.1.0-pre (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Modified | CISA-ADP |
| Oct 6, 2026 | New CVE Received | EEF |
Volerion