CVE-2023-5363
Incorrect cipher key & IV length processing
Check your servers for CVE-2023-5363
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-5363 affects openssl, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Issue summary: A bug has been identified in the processing of key and initialisation vector (IV) lengths. This can lead to potential truncation or overruns during the initialisation of some symmetric ciphers.
Impact summary: A truncation in the IV can result in non-uniqueness, which could result in loss of confidentiality for some cipher modes.
When calling EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() the provided OSSL_PARAM array is processed after the key and IV have been established. Any alterations to the key length, via the "keylen" parameter or the IV length, via the "ivlen" parameter, within the OSSL_PARAM array will not take effect as intended, potentially causing truncation or overreading of these values. The following ciphers and cipher modes are impacted: RC2, RC4, RC5, CCM, GCM and OCB.
For the CCM, GCM and OCB cipher modes, truncation of the IV can result in loss of confidentiality. For example, when following NIST's SP 800-38D section 8.2.1 guidance for constructing a deterministic IV for AES in GCM mode, truncation of the counter portion could lead to IV reuse.
Both truncations and overruns of the key and overruns of the IV will produce incorrect results and could, in some cases, trigger a memory exception. However, these issues are not currently assessed as security critical.
Changing the key and/or IV lengths is not considered to be a common operation and the vulnerable API was recently introduced. Furthermore it is likely that application developers will have spotted this problem during testing since decryption would fail unless both peers in the communication were similarly vulnerable. For these reasons we expect the probability of an application being vulnerable to this to be quite low. However if an application is vulnerable then this issue is considered very serious. For these reasons we have assessed this issue as Moderate severity overall.
The OpenSSL SSL/TLS implementation is not affected by this issue.
The OpenSSL 3.0 and 3.1 FIPS providers are not affected by this because the issue lies outside of the FIPS provider boundary.
OpenSSL 3.1 and 3.0 are vulnerable to this issue.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 3.94%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 90.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 3 Jun 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-684 Incorrect Provision of Specified Functionality
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| OpenSSL |
affected from 3.0.0, before 3.0.12 affected from 3.1.0, before 3.1.4
Other versions: unaffected
|
Is my server affected?
Find the installed version of openssl and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i openssl
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-5363 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-5363RHEL, Rocky, Alma, Fedora
rpm -q openssl
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-5363Alpine
apk list --installed | grep -i opensslWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-5363
trivy image --scanners vuln IMAGE | grep CVE-2023-5363
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- OpenSSL Advisory openssl.org · vendor advisory
Patches and release notes
- 3.1.4 git commit git.openssl.org · patch
- 3.0.12 git commit git.openssl.org · patch
Other references
- http://www.openwall.com/lists/oss-security/2023/10/24/1 openwall.com
- https://www.debian.org/security/2023/dsa-5532 debian.org
- https://security.netapp.com/advisory/ntap-20231027-0010/ security.netapp.com
- https://security.netapp.com/advisory/ntap-20240201-0003/ security.netapp.com
- https://security.netapp.com/advisory/ntap-20240201-0004/ security.netapp.com
- https://security.netapp.com/advisory/ntap-20241108-0002/ security.netapp.com
- https://cert-portal.siemens.com/productcert/html/ssa-093430.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-331112.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-277137.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
Source: the record CVE-2023-5363 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse