# CVE-2026-81694: openssl-encrypt output injection via unsanitized filenames

Source: https://junglewise.ai/threats/cve-2026-81694-openssl-encrypt-output-injection-via-unsanitized-filenames  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-27. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-81694 · Severity: medium · CVSS 4 · Published 2026-08-27

openssl-encrypt is a Python package that encrypts and verifies USB drive contents using AES-GCM. The verify-usb command can be deceived by an attacker who crafts malicious filenames on the USB drive; these filenames contain terminal control codes that overlay a fake "PASSED" message on the output, masking the actual detection of drive tampering. This allows attackers to hide evidence of data compromise from security checks.

Technologies: [Jahlives Openssl Encrypt](https://junglewise.ai/threats/technologies/openssl-encrypt), [openssl-encrypt (PyPI)](https://junglewise.ai/threats/technologies/pypi-openssl-encrypt). Vendors: [Jahlives](https://junglewise.ai/threats/vendors/jahlives), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-81694 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-81694 being exploited in the wild.

**How severe is CVE-2026-81694?** Medium severity, with a CVSS score of 4, published 27 August 2026.

**Which products and versions are affected?** openssl-encrypt (PyPI) ECOSYSTEM:introduced=0,fixed=1.4.9.

**Is there a fix for CVE-2026-81694?** Yes. openssl-encrypt (PyPI): upgrade to 1.4.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-81694 attacked?** It is attacked with local access.

**Am I affected by CVE-2026-81694?** Check whether you run Jahlives Openssl Encrypt or openssl-encrypt (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- openssl-encrypt (PyPI): upgrade to 1.4.9 or later

  ```sh
  pip install "openssl-encrypt>=1.4.9"
  ```


## Technical details

The vulnerability is an output injection flaw (CWE-117) in the verify-usb command. The root cause is the failure to sanitize filenames read from untrusted drive data before printing them in verification reports. An attacker can embed ANSI escape sequences (cursor-movement and erase-line control bytes) into filenames on the drive; when printed unsanitized to the terminal, these sequences repaint the output to display a forged PASSED verdict, overwriting the actual FAILED status. No authentication is required—the attacker only needs to modify files on the target USB drive. The fix, released in version 1.4.9, routes all drive-derived filenames through the sanitize_for_display() function before output.

## Affected products

- openssl-encrypt openssl-encrypt <=1.4.8

## Identifiers

- CVE-2026-81694
- PYSEC-2026-3960

## Timeline

- 2026-08-12: disclosed: GitHub Security Advisory GHSA-c793-rj9w-r3wg published
- 2026-08-27: advisory: CVE-2026-81694 published on NVD
- 2026-08-27: patched: Fix released in version 1.4.9

## References

- [https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-c793-rj9w-r3wg](https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-c793-rj9w-r3wg)
- [https://www.vulncheck.com/advisories/verify-usb-before-1.4.9-output-injection-via-unsanitized-filenames](https://www.vulncheck.com/advisories/verify-usb-before-1.4.9-output-injection-via-unsanitized-filenames)

## Related threats

- [openssl_encrypt KDF cost parameter validation bypass](https://junglewise.ai/threats/cve-2026-81721-openssl-encrypt-kdf-cost-parameter-validation-bypass)
- [openssl_encrypt memory exhaustion in identity file protection block](https://junglewise.ai/threats/cve-2026-81720-openssl-encrypt-memory-exhaustion-in-identity-file-protection)
- [openssl_encrypt arbitrary code execution via plugin signature bypass](https://junglewise.ai/threats/cve-2026-81719-openssl-encrypt-arbitrary-code-execution-via-plugin-signature)
- [openssl_encrypt weak PBKDF2 parameters in keyfile encryption](https://junglewise.ai/threats/cve-2026-81718-openssl-encrypt-weak-pbkdf2-parameters-in-keyfile-encryption)
- [openssl_encrypt USB drive integrity bypass with fixed KDF salt](https://junglewise.ai/threats/cve-2026-81717-openssl-encrypt-usb-drive-integrity-bypass-with-fixed-kdf-salt)
