sandlock icon indicating copy to clipboard operation
sandlock copied to clipboard

rustls = "0.22" pin blocks 4 rustls-webpki security fixes (High/Medium/Low x3)

Open rotep opened this issue 2 months ago • 1 comments

Summary

sandlock-core's Cargo.toml pins rustls = "0.22" (still true on main as of this writing), which in turn caps rustls-webpki at ^0.102.1. Four fixed rustls-webpki advisories cannot be pulled in as a result, because the fixes only landed in the 0.103.x line:

Severity Advisory Fixed in Summary
High GHSA-82j2-j2ch-gfr8 0.103.13 DoS via panic on malformed CRL BIT STRING
Medium GHSA-pwjx-qhcg-rvj4 0.103.10 CRLs not considered authoritative by Distribution Point due to faulty matching logic
Low GHSA-xgp8-3hg3-c2mh 0.103.12 Name constraints accepted for certificates asserting a wildcard name
Low GHSA-965h-392x-2mh5 0.103.12 Name constraints for URI names incorrectly accepted

Reproduction

$ cargo update -p rustls-webpki --precise 0.103.13
error: failed to select a version for the requirement `rustls-webpki = "^0.102.1"`
candidate versions found which didn't match: 0.103.13
required by package `rustls v0.22.4`
    ... which satisfies dependency `rustls = "^0.22"` (locked to 0.22.4) of package `sandlock-core`

Bumping rustls to a 0.23+ line (which allows rustls-webpki 0.103.x) would resolve all four.

Context

We depend on sandlock-core (pinned by commit) from KYOKAOS, and GitHub Dependabot flags these four as coming through that dependency. As far as we can tell today they don't affect us in practice — our own use of sandlock-core doesn't currently exercise the HTTP/TLS credential-injection paths (--http-allow/--http-ca) that would touch this code, so this is a heads-up for consumers who do use those paths rather than an urgent report. Happy to open a PR bumping rustls/hyper-rustls/tokio-rustls together if that's useful, or if there's a reason the 0.22 pin is intentional (e.g. an MSRV or transitive-dependency constraint) it'd be good to know for our own dependency tracking either way.

rotep avatar Sep 09 '26 13:09 rotep

Thanks for the report. I created https://github.com/multikernel/sandlock/pull/216

congwang-mk avatar Sep 09 '26 23:09 congwang-mk