Description
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.
Published: 2026-08-17
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in versions of openssl_encrypt prior to 1.4.0, where the CamelliaCipher implementation disables HMAC tag generation and verification when the PYTEST_CURRENT_TEST environment variable is set. This allows an attacker with code‑execution capabilities to set that environment variable and produce ciphertext that bypasses integrity protection, effectively enabling the creation of data that is not authenticated by the library. The consequence is that tampered data can be accepted and processed without detection, compromising data integrity and potentially allowing further exploitation based on manipulated inputs.

Affected Systems

The affected product is OpenSSL Encrypt as maintained by jahlives. All releases before 1.4.0 are vulnerable; versions 1.4.0 and later include the fix that restores proper HMAC generation and verification.

Risk and Exploitability

With a CVSS score of 9.3, the vulnerability is considered critical. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, indicating that it may not yet be publicly exploited. However, the attack requires that an attacker already has code‑execution privileges to set the PYTEST_CURRENT_TEST environment variable. In environments where such privileges are possible—such as CI pipelines or development machines—this flaw can be leveraged to subvert trust in encrypted data. The lack of an external drive and the focus on environment variable manipulation mean that the exposure is largely limited to contexts where the vulnerable library is used in conjunction with arbitrary code execution.

Generated by OpenCVE AI on August 17, 2026 at 13:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update openssl_encrypt to version 1.4.0 or later.
  • Ensure the PYTEST_CURRENT_TEST environment variable is unset or removed before calling openssl_encrypt to force HMAC generation and verification.
  • Validate ciphertext integrity using an external HMAC check or migrate to a different, unmodified encryption library.

Generated by OpenCVE AI on August 17, 2026 at 13:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 17 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 17 Aug 2026 11:15:00 +0000

Type Values Removed Values Added
Description 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.
Title openssl_encrypt before 1.4.0 HMAC Authentication Bypass via Environment Variable
Weaknesses CWE-345
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 9.3, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T14:43:25.401Z

Reserved: 2026-08-17T10:42:40.455Z

Link: CVE-2026-74890

cve-icon Vulnrichment

Updated: 2026-08-17T14:43:21.387Z

cve-icon NVD

Status : Received

Published: 2026-08-17T11:16:43.960

Modified: 2026-08-17T15:16:58.903

Link: CVE-2026-74890

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T13:15:04Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity