Security mailing lists by PureSourceCode

GHSA-rcx8-48pc-v9q8

MEDIUM

mail-internals use-after-free vulnerability in `vec_insert_bytes`

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.

Published
7 Aug 2023
Last modified
8 Nov 2023
Also known as
RUSTSEC-2023-0054
Sources
OSVJSONOSV RUSTSEC-2023-0054JSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io mail-internals >= 0.2.0, <= 0.2.3
OSV crates.io mail-internals >= 0.0.0-0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Aug 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Aug 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.