CVE-2025-4575 Details
Description
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.
A vulnerability exists in OpenSSL 3.5 within the x509 application, where the -addreject option incorrectly adds a trusted use instead of marking it as rejected for a certificate. This issue arises from a code refactoring error and affects users who rely on the trusted certificate format and use the x509 command line application to manage rejected uses. As a result, a certificate intended to be rejected for a specific use may be mistakenly marked as trusted for that use.
Users of OpenSSL 3.5 should upgrade to OpenSSL 3.5.1 once it is released. The fix is also available in the OpenSSL GitHub repository commit e96d2244.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/05/22/1 | CVE | Mailing ListThird Party Advisory |
| https://github.com/openssl/openssl/commit/e96d22446e633d117e6c9904cb15b4693e956eaa | [email protected] | Patch |
| https://openssl-library.org/news/secadv/20250522.txt | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-295 | Improper Certificate Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| openssl openssl | 3.5.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 23, 2025 | Initial Analysis | [email protected] |
| May 22, 2025 | CVE Modified | CVE |
| May 22, 2025 | CVE Modified | CISA-ADP |
| May 22, 2025 | New CVE Received | [email protected] |