Skip to content

← Public intelligence

crates.io package

pprof

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Unratedcrates.ioPublished

    Unsound usages of std::slice::from_raw_parts

    GHSA-gw5w-5j7f-jmjj

    Affected
    • crates.io pprof < 0.14.0
    Fixed in
    0.14.0· Vendor fix available
    Issue
    The library breaks the safety assumptions when using unsafe API std::slice::fromrawparts. 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 cvoid, 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.

    Recommended action: Upgrade to 0.14.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →