7.5 CVE-2022-3602

Exploit
 

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Note that this occurs after certificate chain signature verification and requires either a CA to have signed the malicious certificate or for the application to continue certificate verification despite failure to construct a path to a trusted issuer. An attacker can craft a malicious email address to overflow four attacker-controlled bytes on the stack. This buffer overflow could result in a crash (causing a denial of service) or potentially remote code execution. Many platforms implement stack overflow protections which would mitigate against the risk of remote code execution. The risk may be further mitigated based on stack layout for any given platform/compiler. Pre-announcements of CVE-2022-3602 described this issue as CRITICAL. Further analysis based on some of the mitigating factors described above have led this to be downgraded to HIGH. Users are still encouraged to upgrade to a new version as soon as possible. In a TLS client, this can be triggered by connecting to a malicious server. In a TLS server, this can be triggered if the server requests client authentication and a malicious client connects. Fixed in OpenSSL 3.0.7 (Affected 3.0.0,3.0.1,3.0.2,3.0.3,3.0.4,3.0.5,3.0.6).
https://nvd.nist.gov/vuln/detail/CVE-2022-3602

Categories

CWE-787 : Out-of-bounds Write
The product writes data past the end, or before the beginning, of the intended buffer. At the point when the product writes data to an invalid location, it is likely that a separate weakness already occurred earlier. For example, the product might alter an index, perform incorrect pointer arithmetic, initialize or release memory incorrectly, etc., thus referencing a memory location outside the buffer. Often used to describe the consequences of writing to memory outside the bounds of a buffer, or to memory that is otherwise invalid. This weakness can be detected using dynamic tools and techniques that interact with the software using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The software's operation may slow down, but it should not become unstable, crash, or generate incorrect results. Replace unbounded copy functions with analogous functions that support length arguments, such as strcpy with strncpy. Create these if they are not available. Chain: insufficient input validation (CWE-20) in browser allows heap corruption (CWE-787), as exploited in the wild per CISA KEV. GPU kernel driver allows memory corruption because a user can obtain read/write access to read-only pages, as exploited in the wild per CISA KEV. Chain: integer truncation (CWE-197) causes small buffer allocation (CWE-131) leading to out-of-bounds write (CWE-787) in kernel pool, as exploited in the wild per CISA KEV. Out-of-bounds write in kernel-mode driver, as exploited in the wild per CISA KEV. Escape from browser sandbox using out-of-bounds write due to incorrect bounds check, as exploited in the wild per CISA KEV. Memory corruption in web browser scripting engine, as exploited in the wild per CISA KEV. chain: mobile phone Bluetooth implementation does not include offset when calculating packet length (CWE-682), leading to out-of-bounds write (CWE-787) Chain: compiler optimization (CWE-733) removes or modifies code used to detect integer overflow (CWE-190), allowing out-of-bounds write (CWE-787). malformed inputs cause accesses of uninitialized or previously-deleted objects, leading to memory corruption chain: -1 value from a function call was intended to indicate an error, but is used as an array index instead. Unchecked length of SSLv2 challenge value leads to buffer underflow. Buffer underflow from a small size value with a large buffer (length parameter inconsistency, CWE-130) Chain: integer signedness error (CWE-195) passes signed comparison, leading to heap overflow (CWE-122) Classic stack-based buffer overflow in media player using a long entry in a playlist Heap-based buffer overflow in media player using a long entry in a playlist

References

openssl-security@openssl.org

http://packetstormsecurity.com/files/169687/OpenSSL-Security-Advisory-2022110...
Third Party Advisory VDB Entry
http://www.openwall.com/lists/oss-security/2022/11/01/15
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/16
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/17
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/18
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/19
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/20
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/21
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/01/24
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/1
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/10
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/11
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/12
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/13
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/14
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/15
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/2
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/3
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/5
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/6
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/7
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/02/9
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/1
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/10
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/11
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/2
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/3
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/5
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/6
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/7
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/03/9
Mailing List Third Party Advisory
https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=fe3b639dc19b...
Broken Link Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
Mailing List Third Party Advisory
https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2022-0023
Third Party Advisory
https://security.gentoo.org/glsa/202211-01
Issue Tracking Third Party Advisory
https://security.netapp.com/advisory/ntap-20221102-0001/
Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-s...
Third Party Advisory
https://www.kb.cert.org/vuls/id/794340
Third Party Advisory US Government Resource
https://www.openssl.org/news/secadv/20221101.txt
Vendor Advisory


 

CPE

cpe start end
Configuration 1
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* >= 3.0.0 < 3.0.7
Configuration 2
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
Configuration 3
cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
Configuration 4
cpe:2.3:o:fedoraproject:fedora:26:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:27:*:*:*:*:*:*:*
Configuration 5
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* >= 18.0.0 < 18.11.0
cpe:2.3:a:nodejs:node.js:18.12.0:*:*:*:lts:*:*:*
cpe:2.3:a:nodejs:node.js:19.0.0:*:*:*:-:*:*:*


REMEDIATION




EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
https://github.com/eatscrayon/CVE-2022-3602-poc
https://github.com/attilaszia/cve-2022-3602
https://github.com/cybersecurityworks553/CVE-2022-3602-and-CVE-2022-3786

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
No entry