---
id: CVE-2026-81695
title: openssl_encrypt before 1.4.9 Terminal Injection via key_id
summary: >-
  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 term…
severity: low
cvss: 3.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-117
vendor: jahlives
product: openssl_encrypt
affected:
  - openssl_encrypt < 1.4.9
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-27T19:26:15.335558Z'
published: '2026-08-27'
updated: '2026-10-01'
sourceUpdated: '2026-10-01T15:21:26.653Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-81695'
references:
  - url: >-
      https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-jwfm-99h7-2w5x
    label: GitHub Security Advisory (GHSA-jwfm-99h7-2w5x)
  - url: >-
      https://www.vulncheck.com/advisories/openssl-encrypt-before-1.4.9-terminal-injection-via-key-id
    label: >-
      VulnCheck Advisory: openssl_encrypt before 1.4.9 Terminal Injection via
      key_id
tags:
  - cve.org
  - osv
  - pip
epss: 0.0025
epssPercentile: 0.163
aliases:
  - PYSEC-2026-3774
  - GHSA-jwfm-99h7-2w5x
ecosystem: pip
patched:
  - openssl-encrypt 1.4.9
ingestedAt: '2026-09-02T19:31:25.991Z'
---

## Overview

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.

## Affected

- `openssl_encrypt < 1.4.9`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-81695)

Affected packages:

- `openssl-encrypt < 1.4.9`

Patched in:

- `openssl-encrypt 1.4.9`

Source: https://osv.dev/vulnerability/PYSEC-2026-3774
