This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate distill-daemon

Dependencies

(29 total, 18 outdated, 1 insecure)

CrateRequiredLatestStatus
 async-channel^1.42.5.0out of date
 async-lock^2.13.4.2out of date
 bincode^1.3.13.0.0out of date
 capnp ⚠️^0.14.00.27.2insecure
 capnp-rpc^0.14.00.27.0out of date
 chrono^0.4.190.4.45up to date
 distill-core=0.0.20.0.3out of date
 distill-downstream-lmdb-rkv^0.11.0-windows-fixN/Aup to date
 distill-importer=0.0.20.0.3out of date
 distill-loader=0.0.20.0.3out of date
 distill-schema=0.0.20.0.3out of date
 dunce^1.01.0.5up to date
 erased-serde^0.30.4.10out of date
 event-listener^2.4.05.4.2out of date
 fern^0.6.00.7.1out of date
 futures^0.30.3.34up to date
 log^0.40.4.34up to date
 notify^4.0.158.2.0out of date
 num_cpus^1.101.17.0up to date
 path-clean^0.11.0.1out of date
 path-slash^0.1.10.2.1out of date
 pin-project^1.01.1.13up to date
 rayon^1.31.12.0up to date
 ron^0.6.40.12.2out of date
 serde^11.0.229up to date
 serde_derive^1.01.0.229up to date
 tokio^1.01.53.1up to date
 tokio-util^0.6.10.7.19out of date
 uuid^0.8.21.26.1out of date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 tempfile^3.2.03.27.0up to date

Security Vulnerabilities

capnp: Unsound APIs of public `constant::Reader` and `StructSchema`

RUSTSEC-2025-0143

The safe API functions constant::Reader::get and StructSchema::new rely on PointerReader::get_root_unchecked, which can cause undefined behavior (UB) by constructing arbitrary words or schemas.

Reader::get

pub fn get(&self) -> Result<<T as Owned>::Reader<'static>> {
    // ...
    // UNSAFE: access `words` without validation
}

StructSchema::new

pub fn new(builder: RawBrandedStructSchema) -> StructSchema {
    // ...
    // UNSAFE: access encoded nodes without validation
}

This vulnerability allows safe Rust code to trigger UB, which violates Rust's safety guarantees.

The issue is resolved in version 0.24.0 by making constructor functions unsafe and mark the fields of struct as visible only in the crate.