CVE-2023-5363 Incorrect cipher key & IV length processing
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- OpenSSLUbuntuDebian
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.
Upgrade path
31 packages: 20 fixed, 10 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| netapp h300s firmware | All versions | No fix listed | No fix yet |
| netapp h410c firmware | All versions | No fix listed | No fix yet |
| netapp h410s firmware | All versions | No fix listed | No fix yet |
| netapp h500s firmware | All versions | No fix listed | No fix yet |
| netapp h700s firmware | All versions | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| ubuntu/nodejs(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/nodejs(Ubuntu Pro 22.04) | = 12.22.5~dfsg-5ubuntu1; = 12.22.7~dfsg-2ubuntu1; = 12.22.7~dfsg-2ubuntu3; = 12.22.9~dfsg-1ubuntu2 +9 more | No fix listed | No fix yet |
| alpine/openssl(Alpine v3.17) | >= 3.0.0, < 3.0.12-r0 | 3.0.12-r0 | Fixed |
| alpine/openssl(Alpine v3.18) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| alpine/openssl(Alpine v3.19) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| alpine/openssl(Alpine v3.20) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| alpine/openssl(Alpine v3.21) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| alpine/openssl(Alpine v3.22) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| alpine/openssl(Alpine v3.23) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| alpine/openssl(Alpine v3.24) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 | Fixed |
| debian/openssl(Debian 12) | < 3.0.11-1~deb12u2; = 3.0.9-1; = 3.0.10-1; = 3.0.10-1~deb12u1 +1 more | 3.0.11-1~deb12u2 | Fixed |
| debian/openssl(Debian 13) | < 3.0.12-1 | 3.0.12-1 | Fixed |
| debian/openssl(Debian 14) | < 3.0.12-1 | 3.0.12-1 | Fixed |
| Microsoft azure linux | < 38.0.72.2-1 | 38.0.72.2-1 | Fixed |
| Microsoft cbl mariner | < 1.0.1-6; < 18.20.2-1; < 38.0.72.2-1 | 1.0.1-6, 18.20.2-1, 38.0.72.2-1 | Fixed |
| OpenSSL | >= 3.0.0, < 3.0.12; >= 3.1.0, < 3.1.4 | 3.0.12, 3.1.4 | Fixed |
| Siemens SIDIS Prime | < V4.0.700 | V4.0.700 | Fixed |
| Siemens SINEC NMS | < V3.0 SP1 | V3.0 SP1 | Fixed |
| ubuntu/openssl(Ubuntu 22.04) | < 3.0.2-0ubuntu1.12; = 1.1.1l-1ubuntu1; = 3.0.0-1ubuntu1; = 3.0.1-0ubuntu1 +10 more | 3.0.2-0ubuntu1.12 | Fixed |
| ubuntu/openssl(Ubuntu 24.04) | < 3.0.10-1ubuntu2.1; = 3.0.10-1ubuntu2 | 3.0.10-1ubuntu2.1 | Fixed |
| ubuntu/openssl(Ubuntu Pro FIPS-preview 22.04) | < 3.0.2-0ubuntu1.12+Fips1; = 3.0.2-0ubuntu1.10+Fips1 | 3.0.2-0ubuntu1.12+Fips1 | Fixed |
| ubuntu/openssl(Ubuntu Pro FIPS-updates 22.04) | < 3.0.2-0ubuntu1.12+Fips1; = 3.0.2-0ubuntu1.10+Fips1 | 3.0.2-0ubuntu1.12+Fips1 | Fixed |
… and 1 more package.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 38.0.72.2-1 | 38.0.72.2-1 |
| Microsoft cbl mariner | < 1.0.1-6 | 1.0.1-6 |
| Microsoft cbl mariner | < 18.20.2-1 | 18.20.2-1 |
| Microsoft azure linux | < 38.0.72.2-1 | 38.0.72.2-1 |
| debian/openssl(Debian:12) | < 3.0.11-1~deb12u2 | 3.0.11-1~deb12u2 |
| debian/openssl(Debian:12) | = 3.0.10-1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.10-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.11-1~deb12u1 | No fix listed |
| debian/openssl(Debian:12) | = 3.0.9-1 | No fix listed |
| debian/openssl(Debian:13) | < 3.0.12-1 | 3.0.12-1 |
| debian/openssl(Debian:14) | < 3.0.12-1 | 3.0.12-1 |
| OpenSSL | >= 3.0.0, < 3.0.12 | 3.0.12 |
| OpenSSL | >= 3.1.0, < 3.1.4 | 3.1.4 |
| Siemens SIDIS Prime | < V4.0.700 | V4.0.700 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SINEC NMS | < V3.0 SP1 | V3.0 SP1 |
| ubuntu/openssl(Ubuntu:22.04) | < 3.0.2-0ubuntu1.12 | 3.0.2-0ubuntu1.12 |
| ubuntu/nodejs(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/openssl(Ubuntu:24.04) | < 3.0.10-1ubuntu2.1 | 3.0.10-1ubuntu2.1 |
| debian linux | = 12.0 | No fix listed |
| netapp h300s firmware | All versions | No fix listed |
| netapp h410s firmware | All versions | No fix listed |
| netapp h500s firmware | All versions | No fix listed |
Show 41 more
| Product | Affected versions | Fixed in |
|---|---|---|
| netapp h700s firmware | All versions | No fix listed |
| netapp h410c firmware | All versions | No fix listed |
| alpine/openssl(Alpine:v3.17) | >= 3.0.0, < 3.0.12-r0 | 3.0.12-r0 |
| alpine/openssl(Alpine:v3.18) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| alpine/openssl(Alpine:v3.19) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| alpine/openssl(Alpine:v3.20) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| alpine/openssl(Alpine:v3.21) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| alpine/openssl(Alpine:v3.22) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| alpine/openssl(Alpine:v3.23) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| alpine/openssl(Alpine:v3.24) | >= 3.1.0, < 3.1.4-r0 | 3.1.4-r0 |
| ubuntu/openssl(Ubuntu:22.04) | = 1.1.1l-1ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.0-1ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.1-0ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.1 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.2 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.4 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.5 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.6 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.7 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.8 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.9 | No fix listed |
| ubuntu/openssl(Ubuntu:22.04) | = 3.0.2-0ubuntu1.10 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | All versions | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.5~dfsg-5ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.7~dfsg-2ubuntu1 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.7~dfsg-2ubuntu3 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu2 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.1 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.2 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.3 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.4 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.5 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.6 | No fix listed |
| ubuntu/nodejs(Ubuntu:Pro:22.04) | = 12.22.9~dfsg-1ubuntu3.6+esm2 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-preview:22.04) | < 3.0.2-0ubuntu1.12+Fips1 | 3.0.2-0ubuntu1.12+Fips1 |
| ubuntu/openssl(Ubuntu:Pro:FIPS-preview:22.04) | = 3.0.2-0ubuntu1.10+Fips1 | No fix listed |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:22.04) | < 3.0.2-0ubuntu1.12+Fips1 | 3.0.2-0ubuntu1.12+Fips1 |
| ubuntu/openssl(Ubuntu:Pro:FIPS-updates:22.04) | = 3.0.2-0ubuntu1.10+Fips1 | No fix listed |
| ubuntu/openssl(Ubuntu:24.04) | = 3.0.10-1ubuntu2 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- cloud-hypervisor-cvm vendor-advisory
- Debian Security Tracker CVE-2023-5363 vendor-advisory
- OpenSSL Advisory issue-tracking vendor-advisory
- 3.1.4 git commit patch vendor-advisory
- 3.0.12 git commit mailing-list patch third-party-advisory
- www.openwall.com
- www.debian.org
- security.netapp.com
- security.netapp.com
- security.netapp.com
- security.netapp.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- cert-portal.siemens.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6450-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- Release and Advisory Timeline vendor-advisory
- Security advisory list (json) vendor-advisory
- ENISA EUVD EUVD-2023-57679 third-party-advisory