Cloudanix VulnDB

CVE-2025-4575

None

CVSS

—

EPSS

0.4%

Published

May 22, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A mistake in the OpenSSL command-line tool can cause an administrator who tries to block a certificate from being used for one purpose to accidentally allow that use instead.

Exploitation
Other
Attacker needs
Other
Complexity
Theoretical
Impact
Other
Component
Application
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The -addreject flag in the openssl x509 command incorrectly adds a trusted use instead of a rejected use due to a copy-paste error introduced in OpenSSL 3.5, inverting the intended certificate constraint.

Why it matters to the business

Organizations relying on the openssl x509 CLI to restrict trusted CA certificates for specific purposes (such as CMS) may unintentionally grant broader trust, increasing the risk of unauthorized certificate usage in affected workflows; the issue is limited to OpenSSL 3.5 command-line users and carries low overall urgency.

How an attack unfolds

An administrator runs openssl x509 -addreject intending to mark a CA certificate as untrusted for a given purpose; the resulting certificate is instead marked trusted for that purpose, allowing subsequent validation paths to accept the certificate where it should have been rejected.

How to fix it

Upgrade openssl/openssl (GIT) to commit e96d22446e633d117e6c9904cb15b4693e956eaa or later; avoid using the -addreject option with the x509 command on affected 3.5 builds until patched.

How to confirm the fix worked

Confirm the installed OpenSSL version is not 3.5 or verify the binary contains commit e96d22446e633d117e6c9904cb15b4693e956eaa; test the x509 command with -addreject and inspect the resulting certificate trust attributes to ensure rejected uses are correctly recorded.

Typical attack path

  1. Identify a deployment that uses the openssl x509 CLI with the trusted certificate format on OpenSSL 3.5
  2. Execute x509 -addreject to restrict a CA certificate for a specific use (e.g., CMS signature verification)
  3. Obtain the resulting certificate that has the use marked trusted instead of rejected
  4. Present the certificate to relying parties that perform the now-unintentionally-trusted operation

How to detect it

Search shell history, audit logs, and process execution records for invocations of openssl x509 containing the -addreject flag on hosts running OpenSSL 3.5; inspect resulting certificate files for unexpected trusted uses that should have been rejected.

  • openssl x509 -addreject
  • x509.*-addreject

What your security team should do

  • Inventory all systems using OpenSSL 3.5 and the x509 command with trusted certificate files
  • Apply the fix commit e96d22446e633d117e6c9904cb15b4693e956eaa or upgrade to a patched release
  • Temporarily script or document alternative methods for setting rejected uses until the patch is deployed
  • Review certificate stores for any certificates previously processed with the buggy command and re-issue or correct them

The record

Issue summary: Use of -addreject option with the openssl x509 application adds a trusted use instead of a rejected use for a certificate. Impact summary: If a user intends to make a trusted certificate rejected for a particular use it will be instead marked as trusted for that use. A copy & paste error during minor refactoring of the code introduced this issue in the OpenSSL 3.5 version. If, for example, a trusted CA certificate should be trusted only for the purpose of authenticating TLS servers but not for CMS signature verification and the CMS signature verification is intended to be marked as rejected with the -addreject option, the resulting CA certificate will be trusted for CMS signature verification purpose instead. Only users which use the trusted certificate format who use the openssl x509 command line application to add rejected uses are affected by this issue. The issues affecting only the command line application are considered to be Low severity. The FIPS modules in 3.5, 3.4, 3.3, 3.2, 3.1 and 3.0 are not affected by this issue. OpenSSL 3.4, 3.3, 3.2, 3.1, 3.0, 1.1.1 and 1.0.2 are also not affected by this issue.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.22 openssl 0 3.5.1-r0
Chainguard libcrypto3 0 3.5.0-r2
Chainguard libssl3 0 3.5.0-r2
Chainguard openssl 0 3.5.0-r2
Chainguard openssl-config 0 3.5.0-r2
Chainguard openssl-dbg 0 3.5.0-r2
Chainguard openssl-dev 0 3.5.0-r2
Chainguard openssl-doc 0 3.5.0-r2
Chainguard openssl-engine-afalg 0 3.5.0-r2
Chainguard openssl-engine-capi 0 3.5.0-r2
Chainguard openssl-engine-loader-attic 0 3.5.0-r2
Chainguard openssl-engine-padlock 0 3.5.0-r2
Chainguard openssl-provider-fips 0 0
Chainguard openssl-provider-fips-3.1.2 0 0
Chainguard openssl-provider-fips-3.1.2-dbg 0 0
Chainguard openssl-provider-fips-3.4.0 0 0
Chainguard openssl-provider-fips-3.4.0-dbg 0 0
Chainguard openssl-provider-legacy 0 3.5.0-r2
Debian:13 openssl 0 No fix
Wolfi libcrypto3 0 3.5.0-r2
Wolfi libssl3 0 3.5.0-r2
Wolfi openssl 0 3.5.0-r2
Wolfi openssl-config 0 3.5.0-r2
Wolfi openssl-dbg 0 3.5.0-r2
Wolfi openssl-dev 0 3.5.0-r2
Wolfi openssl-doc 0 3.5.0-r2
Wolfi openssl-engine-afalg 0 3.5.0-r2
Wolfi openssl-engine-capi 0 3.5.0-r2
Wolfi openssl-engine-loader-attic 0 3.5.0-r2
Wolfi openssl-engine-padlock 0 3.5.0-r2
Wolfi openssl-provider-legacy 0 3.5.0-r2
openSUSE:Tumbleweed openssl-3 0 3.5.0-3.1

Related vulnerabilities