Security mailing lists by PureSourceCode

RUSTSEC-2024-0408

LOW

Unsound usages of `std::slice::from_raw_parts`

The library breaks the safety assumptions when using unsafe API std::slice::from_raw_parts. First, when using the API in iterator implementation (TempFdArrayIterator.next), generic type could be any type, which would create and pass a misaligned pointer to the unsafe API. Second, when validating the address, the code passed the type c_void, which could also be any type, leading to potential uninitialized memory exposure.

Two unsound usages here highlight the necessity for developers to perform type checks before doing type conversion with unsafe API.

The panic caused by the misalignment causes several downstream applications (e.g., greptimedb) to crash when using pprof::report::ReportBuilder::build.

This was patched in 0.14.0.

The developer also suggested moving to pprof2.

Published
4 Dec 2024
Last modified
10 Sep 2026
Also known as
GHSA-gw5w-5j7f-jmjj
Sources
OSV GHSA-gw5w-5j7f-jmjjJSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io pprof < 0.14.0 0.14.0
OSV crates.io pprof >= 0.0.0-0, < 0.14.0 0.14.0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Dec 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Dec 2024)
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.