CVE-2023-2650
openssl: Possible DoS translating ASN.1 object identifiers
Overview
Description
Issue summary: Processing some specially crafted ASN.1 object identifiers or
data containing them may be very slow.
Impact summary: Applications that use OBJ_obj2txt() directly, or use any of
the OpenSSL subsystems OCSP, PKCS7/SMIME, CMS, CMP/CRMF or TS with no message
size limit may experience notable to very long delays when processing those
messages, which may lead to a Denial of Service.
An OBJECT IDENTIFIER is composed of a series of numbers - sub-identifiers -
most of which have no size limit. OBJ_obj2txt() may be used to translate
an ASN.1 OBJECT IDENTIFIER given in DER encoding form (using the OpenSSL
type ASN1_OBJECT) to its canonical numeric text form, which are the
sub-identifiers of the OBJECT IDENTIFIER in decimal form, separated by
periods.
When one of the sub-identifiers in the OBJECT IDENTIFIER is very large
(these are sizes that are seen as absurdly large, taking up tens or hundreds
of KiBs), the translation to a decimal number in text may take a very long
time. The time complexity is O(n^2) with 'n' being the size of the
sub-identifiers in bytes (*).
With OpenSSL 3.0, support to fetch cryptographic algorithms using names /
identifiers in string form was introduced. This includes using OBJECT
IDENTIFIERs in canonical numeric text form as identifiers for fetching
algorithms.
Such OBJECT IDENTIFIERs may be received through the ASN.1 structure
AlgorithmIdentifier, which is commonly used in multiple protocols to specify
what cryptographic algorithm should be used to sign or verify, encrypt or
decrypt, or digest passed data.
Applications that call OBJ_obj2txt() directly with untrusted data are
affected, with any version of OpenSSL. If the use is for the mere purpose
of display, the severity is considered low.
In OpenSSL 3.0 and newer, this affects the subsystems OCSP, PKCS7/SMIME,
CMS, CMP/CRMF or TS. It also impacts anything that processes X.509
certificates, including simple things like verifying its signature.
The impact on TLS is relatively low, because all versions of OpenSSL have a
100KiB limit on the peer's certificate chain. Additionally, this only
impacts clients, or servers that have explicitly enabled client
authentication.
In OpenSSL 1.1.1 and 1.0.2, this only affects displaying diverse objects,
such as X.509 certificates. This is assumed to not happen in such a way
that it would cause a Denial of Service, so these versions are considered
not affected by this issue in such a way that it would be cause for concern,
and the severity is therefore considered low.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness: CWE-770
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Conan (C/C++) | openssl | >=1.0.2 <1.0.2zh||>=1.1.1 <1.1.1u||>=3.0.0 <3.0.9||>=3.1.0 <3.1.1 | 1.1.1w3.0.123.1.3 |
| Julia | Openresty_jll | <1.27.1+0 | 1.27.1+0 |
| Julia | OpenSSL_jll | <1.1.21+0>=3.0.8+0, <3.0.9+0 | 1.1.21+03.0.9+0 |
Open a package to see all its vulnerabilities.
Operating systems · 95 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | edk2 | 0:20230301gitf80f052277c8-37.azl3 |
Oracle Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.0.7-16.0.1.el9_2 |
| 9 | edk2-aarch64 +3 | 20230524-3.el9 |
| 9 | openssl +3 | 2:3.0.7-16.0.1.ksplice1.el9_2 |
Photon OS 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 18.16.1-1.ph4 |
| 4.0 | openssl +4 | 3.0.9-1.ph4 |
| 5.0 | nodejs +1 | 18.16.1-1.ph5 |
| 5.0 | openssl +5 | 3.0.9-1.ph5 |
Red Hat 3 releases · 11 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | aavmf +6 | eol | — |
| 7 | jbcs-httpd24-mod-http2 | 0:1.15.19-32.el7jbcs | RHSA-2023:7625 |
| 7 | jws5-tomcat-native | 0:1.2.31-16.redhat_16.el7jws | RHSA-2023:7622 |
| 7 | jbcs-httpd24-mod-jk-ap24 | 0:1.2.49-1.redhat_1.el7jbcs | RHSA-2023:7625 |
| 7 | jbcs-httpd24-curl +2 | 0:8.4.0-2.el7jbcs | RHSA-2023:7625 |
| 7 | jws5-tomcat +11 | 0:9.0.62-19.redhat_00017.1.el7jws | RHSA-2023:7622 |
13 more rows
SUSE Linux Enterprise 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libopenssl0-9-8 | 0.9.8j-106.51.1 | SUSE-SU-2023:2329-1 |
| 12.5 | libopenssl-1-0-0-devel +7 | 1.0.2p-3.75.1 | SUSE-SU-2023:2330-1 |
| 12.5 | libopenssl-1-1-devel +6 | 1.1.1d-2.84.1 | SUSE-SU-2023:2328-1 |
| 15.4 | libopenssl-1-0-0-devel +4 | 1.0.2p-150000.3.76.1 | SUSE-SU-2023:2331-1 |
| 15.4 | libopenssl-1-1-devel +6 | 1.1.1l-150400.7.37.1 | SUSE-SU-2023:2342-1 |
| 15.4 | libopenssl-3-devel +2 | 3.0.8-150400.4.26.1 | SUSE-SU-2023:2470-1 |
3 more rows
SUSE Linux Enterprise Micro 4 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.1 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.65.1 | SUSE-SU-2023:2343-1 |
| 5.2 | libopenssl-1-1-devel +3 | 1.1.1d-150200.11.65.1 | SUSE-SU-2023:2343-1 |
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.37.1 | SUSE-SU-2023:2342-1 |
| 5.4 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.37.1 | SUSE-SU-2023:2342-1 |
alma 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | openssl +3 | 1:3.0.7-16.el9_2 |
| 9 | edk2-aarch64 +3 | 20230524-3.el9 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssl | 3.1.1-r0 |
| 3.23 | openssl | 3.1.1-r0 |
| 3.24 | openssl | 3.1.1-r0 |
| edge | openssl | 3.1.1-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | openssl +6 | 1:3.0.8-1.amzn2023.0.3 |
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-provider-fips +3 | not affected | |
| openssl | 3.1.1-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | openssl | 1.1.1n-0+deb10u5 |
| 11 | openssl | 1.1.1n-0+deb11u5 |
| 12 | openssl | 3.0.9-1 |
| 13 | openssl | 3.0.9-1 |
| 14 | openssl | 3.0.9-1 |
echo 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| openssl-1-0-1g | 1.0.1g+e1 | |
| openssl-1-1-1c | 1.1.1c+e1 | |
| openssl-1-1-1g | 1.1.1g+e1 | |
| openssl-1-1-1k | 1.1.1k+e1 | |
| openssl | 3.0.9-1 | |
| openssl-3-1-0 | 3.1.0+e1 |
openSUSE 1 release · 11 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libopenssl-1-0-0-devel +11 | 1.0.2u-16.1 | openSUSE-SU-2024:12966-1 |
| Tumbleweed | libopenssl-1-1-devel +5 | 1.1.1u-1.1 | openSUSE-SU-2024:12972-1 |
| Tumbleweed | libopenssl-3-devel +6 | 3.1.1-1.1 | openSUSE-SU-2024:12969-1 |
| Tumbleweed | python310 +5 | 3.10.12-1.1 | openSUSE-SU-2024:13031-1 |
| Tumbleweed | python311 +6 | 3.11.4-1.1 | openSUSE-SU-2024:13038-1 |
| Tumbleweed | python312 +5 | 3.12.0b3-1.1 | openSUSE-SU-2024:13032-1 |
5 more rows
openSUSE Leap Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.3 | libopenssl-1-1-devel +3 | 1.1.1l-150400.7.37.1 | SUSE-SU-2023:2342-1 |
root.io alpine 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.23 | rootio-openssl | 3.1.1-r0 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-openssl | 1.1.1n-0+deb11u5 |
| 12 | rootio-openssl | 3.0.9-1 |
seal Red Hat 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | openssl +1 | 1:1.0.2k-25.el7_9+sp999 |
| 7 | openssl +1 | 1:1.0.2k-26.el7_9+sp2 |
| 8 | openssl +1 | 1:1.1.1k-14.el8_6+sp999 |
| 8 | openssl +1 | 1:1.1.1k-6.el8_5+sp999 |
| 9 | openssl +1 | 1:3.2.2-6.el9_5+sp999 |
seal debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssl +1 | 1.1.1w-0+deb11u2+sp999 |
ubuntu 7 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | openssl1-0 | 1.0.2n-1ubuntu5.13 |
| 18.04 | openssl | 1.1.1-1ubuntu2.1~18.04.23 |
| 18.04-ESM | openssl1-0 | 1.0.2n-1ubuntu5.13 |
| 18.04-ESM | openssl | 1.1.1-1ubuntu2.1~18.04.23 |
| 20.04 | openssl | 1.1.1f-1ubuntu2.19 |
| 20.04-ESM | edk2 | affected |
6 more rows
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| ruby-3-1 +1 | not affected | |
| openssl | 3.1.1-r0 |
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2023/05/30/1
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:6330
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-2650
- bugzilla.redhat.com https://bugzilla.redhat.com/1858038
- bugzilla.redhat.com https://bugzilla.redhat.com/2207947
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-699386.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-943925.html
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-6330.html
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=423a2bc737a908ad0c77bda470b2b59dc879936b
Show all 29 references
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=853c5e56ee0b8650c73140816bb8b91d6163422c
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=9e209944b35cf82368071f160a744b6178f9b098
- git.openssl.org https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=db779b0e10b047f2585615e0b8f2acdf21f8544a
- github.com https://github.com/advisories/GHSA-gqxg-9vfr-p9cg
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-2650.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2023-6330.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/06/msg00011.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-2650
- psirt.global.sonicwall.com https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2023-0009
- security.gentoo.org https://security.gentoo.org/glsa/202402-08
- security.netapp.com https://security.netapp.com/advisory/ntap-20230703-0001/
- security.netapp.com https://security.netapp.com/advisory/ntap-20231027-0009/
- ubuntu.com https://ubuntu.com/security/notices/USN-6119-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6188-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6672-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7894-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-2650
- www.debian.org https://www.debian.org/security/2023/dsa-5417
- www.openssl.org https://www.openssl.org/news/secadv/20230530.txt
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.