CVE-2025-4575The x509 application adds trusted use instead of rejected use
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssl | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | edk2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssl | Not affected vulnerable_code_not_present | ||
| Debian 14 | openssl | Fixed | 3.5.0-2 | DEBIAN-CVE-2025-4575 |
| Debian 13 | openssl | Fixed | 3.5.0-2 | DEBIAN-CVE-2025-4575 |
| Alpine Linux 3.24 | openssl | Fixed | 3.5.1-r0 | ALPINE-CVE-2025-4575 |
| Alpine Linux 3.23 | openssl | Fixed | 3.5.1-r0 | ALPINE-CVE-2025-4575 |
| Alpine Linux 3.22 | openssl | Fixed | 3.5.1-r0 | ALPINE-CVE-2025-4575 |
What the vendor says
As published in the CVE record by openssl, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSSL: affected: 3.5.0 to before 3.5.1; fixed in
3.5.1
Vendor advisories:
- https://openssl-library.org/news/secadv/20250522.txt (vendor-advisory)
- https://github.com/openssl/openssl/commit/e96d22446e633d117e6c9904cb15b4693e956eaa (patch)
References
- https://openssl-library.org/news/secadv/20250522.txt
- https://github.com/openssl/openssl/commit/e96d22446e633d117e6c9904cb15b4693e956eaa
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.