# CVE-2026-95105: Cloak AES-CTR cipher lacks ciphertext authentication, allowing chosen-plaintext forgery by bit flipping

- Severity: High 8.2 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-06T08:37:56.987Z
- Modified: 2026-11-25T17:23:11.340Z
- Also known as: EEF-CVE-2026-95105
- Weaknesses: CWE-649
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- cloak: from 0.1.0-pre before *
- danielberkompas/cloak: from 2bd17019e285b55c5c218cc842537bf9280f24c3 before *
- cloak (Hex): from 0.1.0-pre
- https://github.com/danielberkompas/cloak: from 2bd17019e285b55c5c218cc842537bf9280f24c3

## Every score

- EEF: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://cna.erlef.org/cves/CVE-2026-95105.html> (exploit, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-95105> (related)
- <https://github.com/danielberkompas/cloak/commit/2bd17019e285b55c5c218cc842537bf9280f24c3> (related, web)
- <https://hex.pm/packages/cloak> (package)

## Sources

- CVE List: [CVE-2026-95105](https://www.cve.org/CVERecord?id=CVE-2026-95105), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-95105](https://osv.dev/vulnerability/EEF-CVE-2026-95105), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-95105](https://nvd.nist.gov/vuln/detail/CVE-2026-95105), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-95105 · Whole record: https://cve.day/CVE-2026-95105.json · Rebuilt by cve.day 2026-11-25T22:59:42.273Z
