GHSA-rcx8-48pc-v9q8 mail-internals use-after-free vulnerability in `vec_insert_bytes`
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Upgrade path
1 package: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io mail-internals(crates.io) | >= 0.0.0-0; >= 0.2.0, <= 0.2.3 | after 0.2.3 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io mail-internals(crates.io) | >= 0.2.0, <= 0.2.3 | No fix listed |
| crates.io mail-internals(crates.io) | >= 0.0.0-0 | No fix listed |
References
- github.com
- rustsec.org vendor-advisory
- github.com
- crates.io product
- git.sr.ht