CVE-2026-81319: Unsafe deserialization of decrypted terms enables node DoS in AshCloak

Published Aug 30, 2026
·
Updated

Deserialization of Untrusted Data vulnerability in ash-project ashcloak allows an attacker who can influence the bytes of an encrypted column to crash the BEAM node, by triggering unbounded atom creation or a decompression bomb during decryption.

AshCloak.Calculations.Decrypt decodes the decrypted binary with Ash.Helpers.nonexecutablebinarytoterm/1 without the :safe option, so atoms in the payload are interned during the decode and never garbage collected, and the term format's compressed form is inflated transparently. vault.decrypt!() is the only barrier and stops tampering only for an authenticated cipher. Cloak also ships the unauthenticated AES.CTR, whose ciphertext an attacker who knows their own plaintext can XOR into any same-length payload without the key, so an ordinary read of the forged column reaches the decoder. A few hundred kilobytes of distinct atoms exhausts the atom table, or a small compressed payload inflates to gigabytes.

This issue affects ashcloak: from 0.1.0 before 0.4.0.

Affected Software

1 affected component
ash-project ash_cloak<0.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ash-project ash_cloak to a version that resolves this vulnerability.

    Fixed in 0.4.0
  2. Configuration

    Ensure decrypted column data is only processed after vault.decrypt!() with an authenticated cipher, since vault.decrypt!() is stated as the only barrier that stops tampering only for an authenticated cipher.

    ash-project ash_cloak vault.decrypt!() / decrypted-column access controls = Authenticated cipher only
  3. Compensating control

    If you cannot immediately upgrade, prevent untrusted users from influencing the bytes of the encrypted column that ash_cloak decrypts/deserializes, because an attacker who can influence those bytes can crash the BEAM node via unbounded atom creation or a decompression bomb.

Event History

Aug 30, 2026
CVE Published
via MITRE·06:05 PM
Data Sourced
via MITRE·06:05 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are most exposed to exploitation?

Deployments using an affected ash_cloak version with encrypted columns that an attacker can modify are exposed. Risk is especially high when Cloak's unauthenticated AES.CTR cipher is used, because an attacker who knows plaintext they supplied can alter a same-length ciphertext without knowing the key.

2

What attacker access is required?

The attacker must be able to influence the stored bytes of an encrypted column and cause that column to be read and decrypted. With an authenticated cipher, vault.decrypt!() prevents tampering; with AES.CTR, forged ciphertext can reach the decoder.

3

Are versions prior to 0.4.0 affected?

Yes. The affected range is ash_cloak 0.1.0 through versions before 0.4.0.

4

What is the impact if exploitation succeeds?

A forged decrypted term can create unbounded atoms, exhausting the BEAM atom table, or trigger decompression of a small payload into gigabytes of data. Either condition can crash the BEAM node.

5

What can be done if upgrading is not immediately possible?

Prevent untrusted parties from modifying encrypted-column bytes and avoid use of the unauthenticated AES.CTR cipher. Authenticated encryption causes vault.decrypt!() to reject tampered ciphertext before it reaches deserialization.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203