Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. openssl-src
  4. ›
  5. CVE-2022-4203

CVE-2022-4203: openssl-src contains Read Buffer Overflow in X.509 Name Constraint

February 8, 2023 (updated February 13, 2025)

A read 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.

The read buffer overrun might result in a crash which could lead to a denial of service attack. In theory it could also result in the disclosure of private memory contents (such as private keys, or sensitive plaintext) although we are not aware of any working exploit leading to memory contents disclosure as of the time of release of this advisory.

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.

References

  • git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=c927a3492698c254637da836762f9b1f86cffabc
  • github.com/advisories/GHSA-w67w-mw4j-8qrv
  • nvd.nist.gov/vuln/detail/CVE-2022-4203
  • rustsec.org/advisories/RUSTSEC-2023-0008.html
  • security.gentoo.org/glsa/202402-08
  • www.openssl.org/news/secadv/20230207.txt

Code Behaviors & Features

Detect and mitigate CVE-2022-4203 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 300.0.0 before 300.0.12

Fixed versions

  • 300.0.12

Solution

Upgrade to version 300.0.12 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read

Source file

cargo/openssl-src/CVE-2022-4203.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:27 +0000.