{"id":"CVE-2026-95105","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-10-06T09:17:57.200","lastModified":"2026-10-06T15:03:59.427","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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.\n\nCloak.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.\n\nThis issue affects cloak: from 0.1.0-pre onward."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"danielberkompas","product":"cloak","defaultStatus":"unaffected","collectionURL":"https://repo.hex.pm","packageName":"cloak","cpes":["cpe:2.3:a:danielberkompas:cloak:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Cloak.Ciphers.AES.CTR'","'Elixir.Cloak.Ciphers.Deprecated.AES.CTR'"],"programFiles":["lib/cloak/ciphers/aes_ctr.ex","lib/cloak/ciphers/deprecated/aes_ctr.ex"],"programRoutines":[{"name":"'Elixir.Cloak.Ciphers.AES.CTR':encrypt/2"},{"name":"'Elixir.Cloak.Ciphers.AES.CTR':decrypt/2"},{"name":"'Elixir.Cloak.Ciphers.Deprecated.AES.CTR':decrypt/2"}],"repo":"https://github.com/danielberkompas/cloak","packageURL":"pkg:hex/cloak","versions":[{"version":"0.1.0-pre","lessThan":"*","versionType":"semver","status":"affected"}]},{"vendor":"danielberkompas","product":"cloak","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"danielberkompas/cloak","cpes":["cpe:2.3:a:danielberkompas:cloak:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Cloak.Ciphers.AES.CTR'","'Elixir.Cloak.Ciphers.Deprecated.AES.CTR'"],"programFiles":["lib/cloak/ciphers/aes_ctr.ex","lib/cloak/ciphers/deprecated/aes_ctr.ex"],"programRoutines":[{"name":"'Elixir.Cloak.Ciphers.AES.CTR':encrypt/2"},{"name":"'Elixir.Cloak.Ciphers.AES.CTR':decrypt/2"},{"name":"'Elixir.Cloak.Ciphers.Deprecated.AES.CTR':decrypt/2"}],"repo":"https://github.com/danielberkompas/cloak","packageURL":"pkg:github/danielberkompas/cloak","versions":[{"version":"2bd17019e285b55c5c218cc842537bf9280f24c3","lessThan":"*","versionType":"git","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":8.2,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-06T11:37:58.212117Z","id":"CVE-2026-95105","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-649"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-95105.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/danielberkompas/cloak/commit/2bd17019e285b55c5c218cc842537bf9280f24c3","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-95105","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://cna.erlef.org/cves/CVE-2026-95105.html","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}