---
id: CVE-2026-81695
aliases:
  - PYSEC-2026-3774
  - GHSA-jwfm-99h7-2w5x
title: >-
  openssl_encrypt versions before 1.4.9 fail to escape attacker-controlled
  key_id values printed to stderr during decrypt auto-detection. A…
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: none
vendor: openssl-encrypt
product: openssl-encrypt
ecosystem: pip
affected:
  - openssl-encrypt < 1.4.9
patched:
  - openssl-encrypt 1.4.9
published: '2026-08-27'
updated: '2026-09-02'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/PYSEC-2026-3774'
references:
  - url: >-
      https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-jwfm-99h7-2w5x
  - url: >-
      https://www.vulncheck.com/advisories/openssl-encrypt-before-1.4.9-terminal-injection-via-key-id
tags:
  - osv
  - pip
epss: 0.0025
epssPercentile: 0.14531
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 packages

- `openssl-encrypt < 1.4.9`

## Remediation

Upgrade to a patched release:

- `openssl-encrypt 1.4.9`
