CVE-2026-65629

Weak PBKDF2 parameters for password-encrypted private-key export in jose

Published Oct 26, 2026 CVSS 4.0 · 7.4 High EPSS < 1% KEV · Not listed
Description
Use of Password Hash With Insufficient Computational Effort in the jose library allows an attacker who obtains a password-encrypted private-key export to recover the private key through an offline password-cracking attack.

When jose exports a password-encrypted private key with jose_jwk:to_der/2 (JOSE.JWK.to_der/2), the jose_jwk_der:to_binary/3 function in src/jwk/jose_jwk_der.erl serializes the key as a PKCS#8 EncryptedPrivateKeyInfo using the PBES2 scheme with hardcoded key-derivation parameters: PBKDF2-HMAC-SHA256 with an iteration count of 2048 and an 8-byte (64-bit) random salt. Neither value can be overridden by the caller.

Both values are far below current guidance (OWASP recommends on the order of 600,000 iterations for PBKDF2-HMAC-SHA256, and NIST recommends salts of at least 128 bits), so the key-stretching work factor is roughly 300 times lower than intended and the short salt reduces the cost of precomputation across keys. The symmetric encryption (AES-256-CBC with a 16-byte random IV) is not affected; the weakness is entirely in the derivation strength. An attacker who obtains one of these exported blobs (for example from a backup, configuration repository, object storage, or logs) can mount a cheap offline dictionary or brute-force attack against the export password, and success yields the full private key.

This issue affects jose: from 1.10.0 before 1.11.13.

Analysis

AI-generated

Technical impact

Exploitation of weak key‑derivation parameters (PBKDF2‑HMAC‑SHA256 with 2048 iterations and a 64‑bit salt) in the jose library reduces the cost of cracking the password used to encrypt exported private‑key blobs. When an attacker obtains a PKCS#8 EncryptedPrivateKeyInfo blob produced by jose_jwk:to_der/2, a modest offline dictionary or brute‑force attack can recover the private key, leading to full compromise of the key holder’s cryptographic credentials. The weakness is confined to the derivation stage; the underlying AES‑256‑CBC encryption remains unaffected.

Affected Systems

The flaw impacts the Jose library shipped by potatosalad under the name jose, versions 1.10.0 through 1.11.12 inclusive. Any Erlang application employing these versions for password‑protected private‑key export is vulnerable. The issue does not affect later releases (≥ 1.11.13) where the library substitutes stronger PBKDF2 parameters.

Risk and Exploitability

The CVSS base score of 7.4 categorises the problem as high severity, but the EPSS score is not available, leaving the current global exploitation likelihood unclear. The vulnerability is not in CISA’s KEV list, indicating no documented high‑profile exploitation yet. An attacker must first obtain an exported encrypted private key blob, which is commonly stored in backups, configuration repositories, or logs. Once the file is in hand, the low iteration count and short salt render offline cracking inexpensive compared to modern best practices, making the attack feasible for both hobbyists and skilled adversaries.

Remediation

Vendor Workaround

When exporting a password-encrypted private key with jose_jwk:to_der/2 (JOSE.JWK.to_der/2), use a long, high-entropy passphrase, since the weak key-derivation work factor only meaningfully lowers the cost of cracking guessable passwords. Restrict access to exported EncryptedPrivateKeyInfo blobs and keep them out of backups, repositories, object storage, and logs that an attacker could read.


OpenCVE Recommended Actions

  • Upgrade the Jose library to version 1.11.13 or later, where PBKDF2 iteration count and salt size are increased to meet current recommendations.
  • When exporting a password‑encrypted private key, use a strong, high‑entropy passphrase that is at least 20 characters long and contains a mix of upper‑case, lower‑case, digits, and symbols.
  • Restrict access to exported EncryptedPrivateKeyInfo files and avoid storing them in backups, repositories, object storage, or logs that could be read by an attacker.

Generated by OpenCVE AI on October 27, 2026 at 01:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Use of Password Hash With Insufficient Computational Effort in the jose library allows an attacker who obtains a password-encrypted private-key export to recover the private key through an offline password-cracking attack. When jose exports a password-encrypted private key with jose_jwk:to_der/2 (JOSE.JWK.to_der/2), the jose_jwk_der:to_binary/3 function in src/jwk/jose_jwk_der.erl serializes the key as a PKCS#8 EncryptedPrivateKeyInfo using the PBES2 scheme with hardcoded key-derivation parameters: PBKDF2-HMAC-SHA256 with an iteration count of 2048 and an 8-byte (64-bit) random salt. Neither value can be overridden by the caller. Both values are far below current guidance (OWASP recommends on the order of 600,000 iterations for PBKDF2-HMAC-SHA256, and NIST recommends salts of at least 128 bits), so the key-stretching work factor is roughly 300 times lower than intended and the short salt reduces the cost of precomputation across keys. The symmetric encryption (AES-256-CBC with a 16-byte random IV) is not affected; the weakness is entirely in the derivation strength. An attacker who obtains one of these exported blobs (for example from a backup, configuration repository, object storage, or logs) can mount a cheap offline dictionary or brute-force attack against the export password, and success yields the full private key. This issue affects jose: from 1.10.0 before 1.11.13.
Title Weak PBKDF2 parameters for password-encrypted private-key export in jose
First Time appeared Potatosalad
Potatosalad jose
Weaknesses CWE-916
CPEs cpe:2.3:a:potatosalad:jose:*:*:*:*:*:*:*:*
Vendors & Products Potatosalad
Potatosalad jose
References
Metrics cvssV4_0

{'score': 7.4, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-916

    Use of Password Hash With Insufficient Computational Effort

Sources

Status
PUBLISHED
Assigner
EEF
Published
Updated
Nov 2, 2026, 9:30 PM
Reserved
Jul 22, 2026, 1:58 PM
Status
Deferred
Published
Oct 26, 2026, 8:17 PM
Modified
Nov 2, 2026, 10:17 PM