Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain code execution on host
-
DeliverySet PYTEST_CURRENT_TEST env var
-
ExploitCamelliaCipher skips HMAC generation and verification
-
ExecutionProduce or accept unauthenticated ciphertext
-
ImpactTamper with encrypted data undetected
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Requires two concrete conditions: (1) the application must use the CamelliaCipher code path of openssl_encrypt at a version below 1.4.0, and (2) the attacker must be able to set the PYTEST_CURRENT_TEST environment variable in the target process's environment, which presupposes pre-existing code execution or control of the process launch/environment. The strongest limiting factor is that this is not a remote drive-by: despite the CVSS AV:N/PR:N vector, the description makes clear the attacker already needs code execution, so an unprivileged remote actor with no foothold cannot trigger it. Impact is confined to loss of integrity/authenticity of encrypted data, not confidentiality of the plaintext. |
| Impact | The published CVSS 4.0 base score is 9.3 (Critical) with vector AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:H, but that scoring conflicts with the description: exploitation explicitly requires an attacker who already has code execution or the ability to set an environment variable in the target process, which is not a remote, unauthenticated, network-reachable condition - this discrepancy should be verified against the vendor advisory rather than taken at face value. In practical terms this is a defense-in-depth / integrity-assurance weakness rather than an initial-access vulnerability: an actor who can already set PYTEST_CURRENT_TEST typically already controls the execution context. No EPSS score, SSVC decision, or POC was provided in the intelligence set, and the CVE is not in CISA KEV, so there is no signal of active or automatable exploitation. That said, because the failure silently voids tamper-detection on encrypted data, any team relying on this library for at-rest or in-transit integrity should treat patching as urgent and not be reassured by the 'requires code execution' framing, since the real damage is that data corruption or forgery goes undetected. Net assessment: high-CVSS on paper, but real-world priority is moderate and hinges on whether the library is used for integrity-critical data. |
| Exploit ScenarioDerived | An attacker who gains code execution or environment control on a host running an application built on openssl_encrypt sets PYTEST_CURRENT_TEST in the process environment; the CamelliaCipher path then encrypts without an HMAC tag and decrypts without verification. The attacker can subsequently forge or tamper with encrypted records and have them accepted as authentic, defeating the integrity guarantee. No public POC was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Integrity-protection bypass in the jahlives openssl_encrypt Python library (all versions before 1.4.0) lets an attacker who can influence the process environment silently disable HMAC authentication in the CamelliaCipher code path. When the PYTEST_CURRENT_TEST environment variable is present, the library skips generating and verifying HMAC tags, so ciphertext is produced and accepted without integrity protection, enabling undetected tampering of encrypted data. Reported by VulnCheck with a vendor patch available; no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Primary fix: upgrade openssl_encrypt to version 1.4.0 or later, which is the vendor-released patched version per GHSA-rvc2-5jxq-gpcj. Until you can upgrade, the concrete compensating control is to ensure the PYTEST_CURRENT_TEST environment variable is never set in production runtime environments - audit process managers, container images, CI/CD promotion paths, and service unit files to confirm test variables are stripped before deployment (side effect: minimal, since this variable has no legitimate production purpose). As additional hardening, avoid running application processes in the same environment as test tooling and enforce integrity of encrypted data with an external MAC/signature layer you control, rather than trusting the library's internal HMAC, until 1.4.0 is deployed. Review advisory details at https://github.com/jahlives/openssl_encrypt/security/advisories/GHSA-rvc2-5jxq-gpcj and https://www.vulncheck.com/advisories/openssl-encrypt-before-hmac-authentication-bypass-via-environment-variable.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
openssl_encrypt is a small open-source Python encryption library (CPE cpe:2.3:a:jahlives:openssl_encrypt) that wraps symmetric ciphers with HMAC-based authenticated encryption. The flaw is classic CWE-345 (Insufficient Verification of Data Authenticity): a test-only guard keyed on the PYTEST_CURRENT_TEST environment variable - normally set automatically by the pytest framework during test runs - leaks into production behavior. In the CamelliaCipher implementation, presence of that variable short-circuits both HMAC tag generation on encryption and HMAC verification on decryption, degrading authenticated encryption to unauthenticated encryption. The confidentiality of the underlying Camellia encryption is unchanged; what is lost is the integrity/authenticity guarantee that would otherwise detect ciphertext modification.
Know when Openssl Encrypt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Exploitation requires pre-existing code execution to set a process environment variable, so AV:L and PR:H; only integrity of encrypted data is lost, so C:N/I:H/A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
openssl_encrypt versions before 1.4.0 contain an authentication bypass vulnerability in CamelliaCipher that disables HMAC tag generation and verification when the PYTEST_CURRENT_TEST environment variable is set. Attackers with code execution can set this environment variable to produce unauthenticated ciphertext and bypass integrity protection on encrypted data.
Executive ViewAI
The jahlives openssl_encrypt Python library (all versions before 1.4.0) contains a critical integrity-protection bypass (CVSS 9.3) that silently disables HMAC authentication when the PYTEST_CURRENT_TEST environment variable is set, enabling undetected tampering of encrypted data. Organizations relying on this library for data encryption face exposure to data corruption and manipulation without detection, directly undermining the integrity protections that secure communications depend upon.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Openssl Encrypt
View allArbitrary native code execution in the jahlives openssl_encrypt Python package (all versions before 1.4.0) arises from i
Fingerprint-verification spoofing in jahlives openssl_encrypt before 1.4.9 lets attackers embed ANSI escape sequences in
Sandbox escape in the openssl_encrypt Python library (jahlives) before 1.4.0 allows attacker-supplied plugins to run wit
Arbitrary code execution in jahlives openssl_encrypt before 1.4.0 stems from an inconsistent sandbox: the runtime Plugin
Authentication bypass in the jahlives openssl_encrypt library (all versions before 1.4.0) lets remote unauthenticated at
Authentication brute-force protection can be bypassed in jahlives openssl_encrypt before 1.4.0 because the TOTP rate lim
Sandbox escape in the openssl_encrypt Python library (jahlives) before 1.4.0 lets attacker-supplied plugin code break ou
Cryptographic shared-secret disclosure in the openssl_encrypt Python library (maintainer 'jahlives') before 1.4.0 lets a
Sandbox escape leading to remote code execution affects openssl_encrypt (the jahlives Python package) in all versions be
Arbitrary code execution in openssl_encrypt (the jahlives Python encryption utility) before 1.4.9 allows an attacker-sup
Arbitrary code execution in jahlives openssl_encrypt before 1.4.9 stems from a flawed plugin trust model that uses a den
Sensitive-token exposure in openssl_encrypt (the jahlives Python package, pip 'openssl-encrypt') before 1.4.0 stems from
EUVD-2026-60109
GHSA-8p4p-w6mq-4grq
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB