Full Changelog: v4.3.5...v4.4.0
pqfile v4.4.0
A security-focused release: 11 fixes (4 Medium, 7 Low), bounded-memory async decryption, crates.io Trusted Publishing, four new fuzz targets, and a dependency refresh that clears five RustSec advisories. The .pqf file format and key formats are unchanged: files and keys from earlier releases work as before.
Upgrade notes
pqfile extractno longer overwrites existing files by default. Pass--forceto allow overwriting. Even with--force, extract never writes through a symlink in the output directory.pqfile decrypt --resumenow checks the existing output file. If the file at the output path is not a partial decryption of this input, it is overwritten only with--force.- Library: the
asyncfeature now also enables tokio'srt,syncandmacrosfeatures. - Language bindings (
pqfileon PyPI,@dangel34/pqfileon npm,pqfile-mobile) are released in lockstep at 4.4.0.
Security fixes
Medium
- Archive extraction could overwrite files or follow symlinks. Anyone with a recipient's public key can build a valid archive for them, so entry names are chosen by the sender. An archive containing
.ssh/authorized_keysor.bashrc, extracted from a home directory, could replace those files without a prompt, and existing symlinks could redirect writes outside the output directory. Extract now refuses to overwrite without--force, never follows symlinks, and rejects archives with duplicate entry names (compared case-insensitively). The GUI's Extract follows your "don't overwrite" setting. decrypt --resumetrusted an existing output file by its length alone. An unrelated file at the output path could end up part old content and part plaintext, reported as a success. Each chunk the existing prefix claims to hold is now re-decrypted and compared, and decryption resumes from the first mismatch.- A damaged FEC sidecar header could crash decryption. One flipped bit in the sidecar's unprotected header could trigger a panic or a buffer of up to 4 GiB per block. The fixed format constants are now always used, so a damaged header still repairs normally.
- The GUI saved Shamir shares, reconstructed private keys and recovered stego payloads with default permissions. They are now written owner-only, like the CLI equivalents.
Low
- Audit log: a crash or concurrent write could permanently break the hash chain. Appends now hold an exclusive lock and update the tip atomically, so the log is consistent wherever a crash lands. Existing tip files are still read.
- Windows: private key files were briefly openable by other users between creation and the ACL change. They are now owner-only from the moment they exist.
- Node binding: a Rust panic aborted the whole Node process. It now rejects that call's Promise instead.
- Certificate parser: a bounds check could wrap on 32-bit targets (wasm32) and panic.
audit::verify_log: a tampered length prefix could force a huge allocation. It now returnsAuditLogInvalid.- GUI: private key, keyfile and Shamir share inputs are now zeroized when cleared, replaced or dropped.
- Async decryption buffered up to 1 TiB of untrusted input. See the new APIs below.
- Release pipeline hardening: the cosign check now requires the exact
release.ymltag identity instead of any workflow under the account,trunkis pinned for the WASM build, and the manual PyPI publish only acceptsvX.Y.Ztags.
New library APIs
archive::extract_with_options(..., overwrite).archive::extractkeeps its overwrite behaviour for API compatibility, but now also rejects symlinks and duplicate entries.async_io::decrypt_stream_async_with_limit: all-or-nothing output with a size cap you choose.async_io::decrypt_stream_async_incremental: decrypts input of any size in bounded memory and releases chunks as they authenticate.audit::append_to_fileandaudit::chainhash_path: the locked, crash-safe audit append used by the CLI and GUI.fsutil::write_private_file: the library's atomic, owner-only secret writer, for applications built on pqfile.
Supply chain and testing
- crates.io publishing now uses Trusted Publishing. Releases authenticate with a short-lived OIDC token instead of a stored API token, matching PyPI and npm.
- Four new fuzz targets:
fuzz_cert,fuzz_fec_repair,fuzz_resume_checkpointandfuzz_recipient_and_shares. All 8 targets run in CI and OSS-Fuzz. - Release artifacts keep their SLSA provenance, a cosign signature over
checksums.txt, CycloneDX SBOMs andcargo auditablemetadata.
Dependencies
- Five RustSec advisories cleared:
curve25519-dalek5.1.0,ctutils0.4.8,tokio1.54.1,cookie0.18.3,url2.5.9. - Major updates:
eframe/egui_extras0.38,jiff1,rfd0.18,notify9,qrcode0.15,libcrux-ml-kem0.0.12,uniffi0.33. - All GitHub Actions pins refreshed.
Verifying downloads
gh attestation verify --repo dangel34/PQ-File-Encryption
Checksums are in checksums.txt, signed with keyless cosign. Windows, macOS and Linux packages are not code-signed yet, so SmartScreen and Gatekeeper will warn on first launch.
Full details: CHANGELOG.md