CVE-2026-81695

openssl_encrypt before 1.4.9 Terminal Injection via key_id

Published Aug 27, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
openssl_encrypt versions before 1.4.9 fail to escape attacker-controlled key_id values printed to stderr during decrypt auto-detection. Attackers can craft encrypted files with malicious key_id containing escape sequences to repaint terminal output and forge authenticity verification blocks.

Analysis

AI-generated

Technical impact

The vulnerability lies in the fact that openssl_encrypt versions prior to 1.4.9 print a user‑controlled key_id directly to standard error without escaping control characters. Attackers can embed terminal escape sequences into the key_id field of an encrypted message, causing the tool to repaint or modify the terminal output during decryption auto‑detection. The injected code can also fabricate authenticity verification blocks, effectively forging proof of ownership or integrity. This results in a severe loss of trust in the data, allowing an attacker to masquerade as legitimate content or to alter output display without detection.

Affected Systems

The affected product is jahlives’ openssl_encrypt. All releases before version 1.4.9 are vulnerable; the fix is incorporated in version 1.4.9 and later. No other vendor or product variants are listed.

Risk and Exploitability

The CVSS score of 9.3 highlights the high severity, and while EPSS data is not available, the absence from the CISA KEV catalog does not mitigate the risk. The likely attack vector involves an attacker delivering a crafted encrypted file to a user who runs openssl_encrypt in an interactive terminal session. When the tool attempts to automatically detect decryption parameters, the unsanitized key_id is echoed, executing the injected escape sequences and forging authenticity checks. This local‑interaction scenario can be abused in shared or administrative environments and therefore represents a high likelihood of exploitation if the vulnerability is not addressed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade openssl_encrypt to version 1.4.9 or later.
  • When creating encrypted files, avoid using key IDs that contain any escape sequences or control characters.
  • If an upgrade is not immediately possible, run openssl_encrypt in a non‑interactive session or redirect stderr to a log file that is later sanitized to strip control characters before displaying or logging the output.

Generated by OpenCVE AI on August 27, 2026 at 18:00 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': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:*:*:*
Type Values Removed Values Added
CPEs cpe:2.3:a:jahlives:openssl_encrypt:*:*:*:*:*:python:*:*
Type Values Removed Values Added
First Time appeared Jahlives
Jahlives openssl Encrypt
Vendors & Products Jahlives
Jahlives openssl Encrypt
Type Values Removed Values Added
Description openssl_encrypt versions before 1.4.9 fail to escape attacker-controlled key_id values printed to stderr during decrypt auto-detection. Attackers can craft encrypted files with malicious key_id containing escape sequences to repaint terminal output and forge authenticity verification blocks.
Title openssl_encrypt before 1.4.9 Terminal Injection via key_id
Weaknesses CWE-117
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV4_0

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

Weaknesses
  • CWE-117

    Improper Output Neutralization for Logs

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 1, 2026, 3:21 PM
Reserved
Aug 27, 2026, 11:12 AM
Status
Analyzed
Published
Aug 27, 2026, 5:20 PM
Modified
Sep 1, 2026, 8:20 PM