Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. postscript
  4. ›
  5. CVE-2021-26953

CVE-2021-26953: Read on uninitialized buffer in postscript

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.

Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.

This flaw was fixed in commit 8026286 by zero-initializing the buffer before handing to a user-provided Read.

References

  • github.com/advisories/GHSA-fhvc-gp6c-h2wx
  • github.com/bodoni/postscript
  • github.com/bodoni/postscript/commit/8026286
  • github.com/bodoni/postscript/issues/1
  • nvd.nist.gov/vuln/detail/CVE-2021-26953
  • rustsec.org/advisories/RUSTSEC-2021-0017.html

Code Behaviors & Features

Detect and mitigate CVE-2021-26953 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 before 0.14.0

Fixed versions

  • 0.14.0

Solution

Upgrade to version 0.14.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-908: Use of Uninitialized Resource

Source file

cargo/postscript/CVE-2021-26953.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:50 +0000.