Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. mail-internals
  4. ›
  5. GHSA-rcx8-48pc-v9q8

GHSA-rcx8-48pc-v9q8: mail-internals use-after-free vulnerability in `vec_insert_bytes`

August 24, 2023

Incorrect reallocation logic in the function vec_insert_bytes causes a use-after-free.

This function does not have to be called directly to trigger the vulnerability because many methods on EncodingWriter call this function internally.

The mail-* suite is unmaintained and the upstream sources have been actively vandalised. A fixed mail-internals-ng (and mail-headers-ng and mail-core-ng) crate has been published which fixes this, and a dependency on another unsound crate.

References

  • github.com/advisories/GHSA-rcx8-48pc-v9q8
  • github.com/rustsec/advisory-db/blob/main/crates/mail-internals/RUSTSEC-2023-0054.md
  • rustsec.org/advisories/RUSTSEC-2023-0054.html

Code Behaviors & Features

Detect and mitigate GHSA-rcx8-48pc-v9q8 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 0.2.0 up to 0.2.3

Solution

Unfortunately, there is no solution available yet.

Source file

cargo/mail-internals/GHSA-rcx8-48pc-v9q8.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:23 +0000.