openssl_encrypt before 1.4.0 Path Traversal via plugin_id
jahlives openssl_encrypt
jahlives openssl_encrypt
| Product | Affected | Fixed in |
|---|---|---|
| openssl-encrypt PyPI |
|
|
openssl_encrypt versions before 1.4.0 contain a path traversal vulnerability in the _is_safe_path method where the plugin_id parameter is not sanitized before constructing the plugin config directory path. Attackers can declare a malicious plugin_id containing path traversal sequences like '../' to access arbitrary directories outside the intended plugin directory.
From the CVE record · VulnCheck
In openssl_encrypt before 1.4.0, _is_safe_path does not sanitize plugin_id before using it to construct a plugin configuration directory path. An attacker who can supply a malicious plugin_id containing path traversal sequences can access directories outside the intended plugin directory. The input does not specify whether this requires network access, authentication, or user interaction.
Anyone running the PyPI openssl-encrypt package before 1.4.0 should check their installation.