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

CVE-2023-0216: openssl-src subject to Invalid pointer dereference in `d2i_PKCS7` functions

February 8, 2023 (updated February 13, 2025)

An invalid pointer dereference on read can be triggered when an application tries to load malformed PKCS7 data with the d2i_PKCS7(), d2i_PKCS7_bio() or d2i_PKCS7_fp() functions.

The result of the dereference is an application crash which could lead to a denial of service attack. The TLS implementation in OpenSSL does not call this function however third party applications might call these functions on untrusted data.

References

  • git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=934a04f0e775309cadbef0aa6b9692e1b12a76c6
  • github.com/advisories/GHSA-29xx-hcv2-c4cp
  • nvd.nist.gov/vuln/detail/CVE-2023-0216
  • rustsec.org/advisories/RUSTSEC-2023-0011.html
  • security.gentoo.org/glsa/202402-08
  • www.openssl.org/news/secadv/20230207.txt

Code Behaviors & Features

Detect and mitigate CVE-2023-0216 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 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

cargo/openssl-src/CVE-2023-0216.yml

Spotted a mistake? Edit the file on GitLab.

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

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