fix(security): GAR-895 — RUSTSEC-2026-0187 + 0188 (lopdf 0.42, wasmtime 45.0.3)#796
Open
michelbr84 wants to merge 2 commits into
Open
fix(security): GAR-895 — RUSTSEC-2026-0187 + 0188 (lopdf 0.42, wasmtime 45.0.3)#796michelbr84 wants to merge 2 commits into
michelbr84 wants to merge 2 commits into
Conversation
…me 45.0.3) - lopdf 0.40 → 0.42 in garraia-media (RUSTSEC-2026-0187: stack overflow via deeply nested PDF objects; 0.41 also affected, fix requires >=0.42.0) - wasmtime-wasi 45.0.2 → 45.0.3 in Cargo.lock (RUSTSEC-2026-0188: WASI hard-links/renames bypass FilePerms; fixed in >=45.0.3, <46.0.0); cranelift 0.132.2 → 0.132.3 pulled in as part of the same atomic release Both cargo-deny and security-audit gates were failing on all open Dependabot PRs (#793, #794, #795) due to these advisories published 2026-06-29. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMkJ4VRMNhmdrYaYGMAr2V
anyhow 1.0.102 has unsoundness in Error::downcast_mut() — violates borrow rules, resulting in UB when context is added and then downcast_mut called (RUSTSEC-2026-0190). Upgrade to 1.0.103 which fixes the borrow chain. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EMkJ4VRMNhmdrYaYGMAr2V
Quality Ratchet ReportMode: Resumo
❌ Regressões Detectadas
|
Coverage Report (cargo-llvm-cov)Generated by Excluded crates: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lopdf): Stack overflow via deeply nested PDF objects —lopdf::Document::load_*exhausts the call stack on ~10,380-level nesting, resulting in SIGABRT (uncatchable viacatch_unwind). Confirmed on0.41.0and earlier; fixed in>=0.42.0. Bumpsgarraia-media/Cargo.toml:lopdf = "0.40"→"0.42".wasmtime-wasi): WASI hard-links and renames bypassFilePermsfor destination — GHSA-4ch3-9j33-3pmj. Fixed in>=45.0.3, <46.0.0. Updates entire wasmtime ecosystem (45.0.2 → 45.0.3) + cranelift (0.132.2 → 0.132.3) atomically in Cargo.lock (all packages use exact=x.y.zinternal pins, must move together). NoCargo.tomlchange needed — workspace already pinswasmtime = "45".Both advisories were published 2026-06-29 and caused
cargo-deny+Security Auditfailures on all open Dependabot PRs (#793, #794, #795). Merging this PR first unblocks the Dependabot queue.Affected crates
garraia-medialopdf 0.40.0 → 0.42.0(Cargo.toml + lock)garraia-pluginswasmtime-wasi 45.0.2 → 45.0.3(lock only)Verification
cargo check -p garraia-media✅cargo check -p garraia-plugins✅References
🤖 Generated with Claude Code
https://claude.ai/code/session_01EMkJ4VRMNhmdrYaYGMAr2V
Generated by Claude Code