All reports
Medium

openssl-encrypt has visible password in process list via --password CLI argument

Affected versions

Version ranges need review.

Affected versions
<1.4.0 || =0.2.2 || =0.2.3 || =0.2.4 || =0.2.5 || =0.2.6 || =0.3.0 || =0.3.1 || =0.3.2 || =0.3.3 || =0.4.0 || =0.4.1 || =0.4.2 || =0.4.3 || =0.4.4 || =0.5.0 || =0.5.1 || =0.5.3 || =0.6.0rc1 || =0.7.0rc2 || =0.7.1 || =0.7.2 || =0.8.0 || =0.8.1 || =0.8.2 || =0.9.2 || =1.0.0 || =1.0.1 || =1.0.2 || =1.0.3 || =1.1.0 || =1.2.0 || =1.2.1 || =1.3.0 || =1.3.1 || =1.3.2 || =1.3.3 || =1.3.4 || =1.3.5 || =1.4.0b3 || =1.4.0b4 || =1.4.0b5 || =1.4.0b6 || =1.4.0b7 || =1.4.0b8
Fixed version
1.4.0
Affected versions
< 1.4.0
Fixed version
1.4.0

Exploitation

CVE-2026-74873

Probability of exploitation in the next 30 days: 0.32%

FIRST EPSS · 2026-11-23

Description

Summary

Passwords passed via the --password / -p CLI argument in openssl_encrypt/modules/crypt_cli_subparser.py at lines 150-154 are visible to any user on the system via ps aux or /proc/[pid]/cmdline.

Affected Code
subparser.add_argument(
    "--password", "-p",
    help="Password (will prompt if not provided, or use CRYPT_PASSWORD environment variable)",
)

Similarly, --keystore-password exposes the keystore password.

Impact

On multi-user systems, any user can observe the encryption password by listing processes. The CRYPT_PASSWORD environment variable alternative is also visible via /proc/[pid]/environ (though with slightly restricted access).

Recommended Fix
  • Document the security implications prominently

  • Recommend interactive prompting (already supported) as the secure default

  • Consider supporting password file descriptors (--password-fd) or reading from stdin

  • Consider marking the argument as deprecated in favor of interactive prompting

Fix

Fixed in commit e78a366 on branch releases/1.4.x — added --password-file and --password-fd arguments; added OPENSSL_ENCRYPT_PASSWORD env var support; --password now emits deprecation warning.

Links