GHSA-rcx8-48pc-v9q8

    Dashboard / Vulnerabilities / GHSA-rcx8-48pc-v9q8

    GHSA-rcx8-48pc-v9q8

    Published: 24 Aug 2023Last Modified: 8 Nov 2023

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

    Details: Incorrect reallocation logic in the function [`vec_insert_bytes`](https://docs.rs/mail-internals/0.2.3/mail_internals/utils/fn.vec_insert_bytes.html) causes a use-after-free. This function does not have to be called directly to trigger the vulnerability because many methods on [`EncodingWriter`](https://docs.rs/mail-internals/0.2.3/mail_internals/encoder/struct.EncodingWriter.html) 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.

    Affected packages

    Package

    Name: mail-internals

    Purl: pkg:cargo/mail-internals

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.2.0
    Fixed -None

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-rcx8-48pc-v9q8 | CVE-DB