                                                              -*- org -*-
#+TITLE: sqz NEWS – history of user-visible changes
#+STARTUP: content hidestars

* Changes in 0.2.0
** New features
   - `dane-client`.  Enable this to get support for fetching
     certificates using DANE.
   - `signer::Signer`
   - `sign::Builder::add_signer`, and `sign::Builder::add_signers` now
     take a `Signer` instead of a `Cert`.  This can be used to set the
     signer's user ID subpacket.

** Notable fixes
   - Upgrade sequoia-openpgp to fix:

     CVE-2026-115841: Degenerate DSA keys are accepted on the Nettle
     and OpenSSL backends

     CVE-2026-115839: RSA public keys with exponent 1 are accepted on
     the Nettle and OpenSSL backends

     CVE-2026-115838: Ed25519 identity and other low-order public keys
     are accepted for signature verification

     CVE-2026-115837: Argon2 string-to-key parameters are not limited
     by StandardPolicy

     CVE-2026-115836: Tolerant ASCII armor parsing can select a
     different block than a strict parser

     CVE-2026-115835: ASCII armor parsing buffers a line without a
     length limit

     CVE-2026-115834: User IDs and notation data are displayed without
     escaping control characters

   - Upgrade openpgp-cert-d to fix:

     CVE-2026-121475: Following a symbolic-linked write lock file
     enables arbitrary file truncation

     CVE-2026-121476: Following symbolic links when updating
     certificates enables arbitrary file modification

     CVE-2026-121477: Following symbolic links when reading
     certificates enables information disclosure

   - Upgrade `sequoia-net`, which addresses:

     CVE-2026-121473: Unbounded download buffering enables denial of
     service via malicious HKP or WKD server

     CVE-2026-121474: Following symbolic links when writing to a WKD
     enables arbitrary file truncation

   - CVE-2026-121478: Unescaped control characters in user IDs enable
     terminal output spoofing

     We were not always careful to ensure that control characters in e.g.,
     user IDs, were escaped.  For instance, `sq verify` did not correctly
     sanitize the signer's user ID.  An attacker could use this to embed
     ANSI cursor movement sequences in a user ID to overwrite a
     verification warning with fake "Fully authenticated" text thereby
     spoofing the signature verification result.

     Note: this attack can be used to modify the human readable output; it
     cannot be used to influence the control plane, like in the sigspoof
     attacks.

       https://en.wikipedia.org/wiki/SigSpoof

     This has been fixed by upgrading to the latest version of
     `sequoia-openpgp`, whose implementations of `Display` and `Debug` for
     `UserID` (as well as other data structures) escape any control
     characters.

   - CVE-2026-121479: Improper quoting of command arguments in hints
     enables command injection

     `sq` emits hints, which can include a suggested command that the
     user can run.  Some hints are derived from the input and thus can
     partially be influenced by an attacker.  Because the quoting was
     not careful enough, it was possible to craft a user ID that would
     be used in the command and when the hint is copy and pasted would
     execute arbitrary commands.  Consider the user ID `$(touch
     /tmp/pwned)`.  If the corresponding certificate is not considered
     authenticated and the user runs `sq verify` on a message signed
     by that certificate, `sq` would show:

     Hint: After checking that FINGERPRINT belongs to $(touch /tmp/pwned),
           you can mark it as authenticated using:

       $ sq pki link add --cert=FINGERPRINT --userid="$(touch /tmp/pwned)"

     If the user copy and pasted the command, then most shells would
     create the file `/tmp/pwned`.

     This was fixed by improving the argument quoting.

   - CVE-2026-115837: Argon2 string-to-key parameters are not limited
     by StandardPolicy

     An attacker can trigger a denial of service using Argon2.  This
     is fixed in sequoia-openpgp, but requires users to switch to use
     SKESK::decrypt_with_policy instead of SKESK::decrypt.

* Started the NEWS file.
