Skip to main content
EPSS 0.1%top 99%

CVE-2026-95105: CWE-649 Reliance on Obfuscation or Encryption of Security-Relevant Inputs without Integrity Checking in danielberkompas cloak

0
High
VulnerabilityCVE-2026-95105cvecve-2026-95105cwe-649
Published: 10/06/2026 (10/06/2026, 08:37:56 UTC)
Source: CVE Database V5
Vendor/Project: danielberkompas
Product: cloak

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.

CVSS v4.0

Score 8.2high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

danielberkompas

cloak

Affected versions
>=0.1.0-pre

danielberkompas

cloak

cloak
pkg:hex/cloak
Affected versions
>=0.1.0-pre
GitHub Actionsmore threats →cve
danielberkompas/cloak
pkg:github/danielberkompas/cloak
CPE configurations
cpe:2.3:a:danielberkompas:cloak:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/06/2026, 09:03:20 UTC

Technical Analysis

The vulnerability arises because cloak's AES-256 CTR mode encryption stores the key tag, IV, and ciphertext without any integrity verification such as a MAC. The decrypt function only verifies the key tag and minimum length before returning plaintext. Since CTR mode is a stream cipher, an attacker who can write to the encrypted store (e.g., via SQL injection or compromised replica) and who knows or can guess the plaintext can flip bits in the ciphertext to produce chosen plaintext values of the same length. This manipulation is undetected by the application, leading to potential unauthorized data modification.

Potential Impact

An attacker with write access to the encrypted ciphertext can alter stored encrypted data to arbitrary values of the same length without detection. This undermines data integrity and can lead to unauthorized data manipulation or bypass of security controls relying on the encrypted data. The vulnerability does not require privileges beyond write access to the ciphertext and no user interaction is needed. It affects confidentiality and integrity of the encrypted data.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, applications using cloak should avoid relying solely on AES-CTR encryption without integrity checks for security-relevant inputs. Implementing authenticated encryption (e.g., AES-GCM) or adding a message authentication code (MAC) to verify ciphertext integrity before decryption is recommended to prevent bit-flipping attacks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-09-25T07:00:01.880Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ac4b6462cdf04f65690d9b2

Added to database: 10/06/2026, 08:50:14 UTC

Last enriched: 10/06/2026, 09:03:20 UTC

Last updated: 10/06/2026, 18:57:28 UTC

Views: 20

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses