p PatchFirst

CVE-2026-53939

CVE-2026-53939 · OpenIDC/cjose uses all-zero Content Encryption Key for AES-CBC-HMAC JWE encryption

CVSS 9.1 · Critical · EPSS 0.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • cjoseNo fix published
  • cjose Debian 12Update to 0.6.2.1-1+deb12u2
  • cjose Debian 13Update to 0.6.2.3-1+deb13u1
  • cjose Debian 14Update to 0.6.2.7-1
  • and 6 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="cjose"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

OpenIDC/cjose is a C library implementing the Javascript Object Signing and Encryption (JOSE). In versions 0.6.1 through 0.6.2.5, when cjose encrypts a JWE using an AES-CBC-HMAC content-encryption algorithm (`A128CBC-HS256`, `A192CBC-HS384`, or `A256CBC-HS512`) together with any key-management algorithm that generates a fresh content-encryption key (CEK), the CEK is all zero bytes instead of being randomly generated. The resulting JWE is therefore encrypted and authenticated under a fixed, publicly known key, so anyone who obtains the JWE can recover the plaintext and forge or modify the content. This is fixed in version 0.6.2.6 by `_cjose_jwe_set_cek_aes_cbc()` generating the CEK from `RAND_bytes`. A regression test asserts that the `encrypted_key` differs across two encryptions for each AES-CBC-HMAC variant. Until upgrading, for data encrypted with cjose, three options are available. Use an AES-GCM `enc` (`A128GCM` / `A192GCM` / `A256GCM`) instead of an AES-CBC-HMAC `enc`, use `alg=dir` with a caller-supplied CEK, or avoid using cjose for JWE encryption with the affected algorithm pair. These are mitigations for new ciphertexts only; data already encrypted under the zero key remains compromised and should be re-encrypted (and any secrets it contained rotated).

Published
Updated

Fixes in distributions

  • RLSA-2026:103380 · Rocky Linux 9 ·
  • RHSA-2026:103380 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 crb ·
  • ALSA-2026:103380 · AlmaLinux 9 ·
  • RHSA-2026:98074 · Red Hat Enterprise Linux 10.3 ·
  • RHSA-2026:92155 · Red Hat rhel e4s 9.4 appstream ·
  • RHSA-2026:92156 · Red Hat rhel e4s 9.2 appstream ·
  • RHSA-2026:92157 · Red Hat Enterprise Linux 8 appstream ·
  • RHSA-2026:92158 · Red Hat rhel e4s 8.8 appstream, Red Hat rhel tus 8.8 appstream ·
  • RHSA-2026:92159 · Red Hat rhel aus 8.6 appstream, Red Hat rhel eus long life 8.6 appstream ·
  • RHSA-2026:92160 · Red Hat rhel aus 8.4 appstream, Red Hat rhel eus long life 8.4 appstream ·
  • RHSA-2026:92145 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 crb ·
  • RHSA-2026:92154 · Red Hat rhel eus 9.6 appstream, Red Hat rhel eus 9.6 crb ·
  • RLSA-2026:98074 · Rocky Linux 10 ·
  • ALSA-2026:98074 · AlmaLinux 10 ·
  • DLA-4887-1 · Debian 12 ·
  • RLSA-2026:92145 · Rocky Linux 9 ·
  • RLSA-2026:92157 · Rocky Linux 8 ·
  • ALSA-2026:92157 · AlmaLinux 8 ·
  • ALSA-2026:92145 · AlmaLinux 9 ·
  • RHSA-2026:83224 · Red Hat enterprise linux eus 10.0 ·
  • RHSA-2026:80605 · Red Hat Enterprise Linux 10.2 ·
  • RLSA-2026:80605 · Rocky Linux 10 ·
  • ALSA-2026:80605 · AlmaLinux 10 ·
  • SUSE-SU-2026:23910-1 · SUSE Linux Enterprise Server 16.0, SUSE Linux Enterprise Server for SAP applications 16.0 ·
  • openSUSE-SU-2026:21944-1 · openSUSE Leap 16.0 ·
  • SUSE-SU-2026:4253-1 · SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS, SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP4-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP4, SUSE Linux Enterprise Server for SAP Applications 15 SP5 ·
  • SUSE-SU-2026:4251-1 · SUSE Linux Enterprise Module for Server Applications 15 SP7, SUSE Linux Enterprise Server 15 SP6-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP6 ·
  • SUSE-SU-2026:4237-1 · SUSE Linux Enterprise Server 12 SP5-LTSS, SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
  • DSA-6499-1 · Debian 13 ·
  • openSUSE-SU-2026:11784-1 · openSUSE Tumbleweed ·

Stack: system

Affected products and versions

  • cjose

    Versions
    • >= 0.6.1, < 0.6.2.6: Affected

    No fix published

  • cjose Debian 12

    Versions
    • 0.6.2.1-1
    • 0.6.2.1-1+deb12u1
    Affected ranges
    • ECOSYSTEM: < 0.6.2.1-1+deb12u2

    Update to 0.6.2.1-1+deb12u2

  • cjose Debian 13

    Versions
    • 0.6.2.3-1
    Affected ranges
    • ECOSYSTEM: < 0.6.2.3-1+deb13u1

    Update to 0.6.2.3-1+deb13u1

  • cjose Debian 14

    Versions
    • 0.6.2.3-1
    • 0.6.2.4-1
    Affected ranges
    • ECOSYSTEM: < 0.6.2.7-1

    Update to 0.6.2.7-1

  • cjose Ubuntu Pro 18.04 LTS

    Versions
    • 0.4.1-3ubuntu1
    • 0.5.1+dfsg1-1
    • 0.5.1+dfsg1-2
    • 0.5.1+dfsg1-2build1
    • 0.6.0+dfsg1-1
    • 0.6.0+dfsg1-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cjose Ubuntu 20.04 LTS

    Versions
    • 0.6.1+dfsg1-1
    • 0.6.1+dfsg1-1ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cjose Ubuntu 22.04 LTS

    Versions
    • 0.6.1+dfsg1-1
    • 0.6.1+dfsg1-3
    • 0.6.1+dfsg1-3ubuntu1
    • 0.6.1+dfsg1-3ubuntu1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cjose Ubuntu 24.04 LTS

    Versions
    • 0.6.2.2-1
    • 0.6.2.2-1build1
    • 0.6.2.2-1build2
    • 0.6.2.2-1build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cjose Ubuntu 26.10

    Versions
    • 0.6.2.4-1
    • 0.6.2.8-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • cjose Ubuntu 26.04 LTS

    Versions
    • 0.6.2.3-1
    • 0.6.2.4-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →