Repository navigation
Conversation
aws-lc-rs 1.18.0 and aws-lc-sys before 0.45.0 are affected by GHSA-xv35-xp83-5wrf. StreamingDecryptingKey, with cbc_pkcs7 or ecb_pkcs7, can write past the end of its output buffer when it decrypts across more than one update call into a buffer of the minimum size. Nothing in this repository calls that code, as far as a search of this repository and of rustls, rustls-webpki and jsonwebtoken shows. The locked versions still should not be a release with a known memory-safety bug. Five lock files move: the root workspace, the Go encrypt guest and the three fuzz crates. EQL, protect-ffi and the Go auth guest already lock these versions. No manifest names aws-lc-rs, so no Cargo.toml changes.
🦋 Changeset detectedLatest commit: 1ad685c The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
…auth The native binaries of @cipherstash/auth link aws-lc-rs through stack-auth, and the root Cargo.lock decides which version they get. With no changeset, the npm packages would keep aws-lc-sys 0.44.0 until another change released them.
Contributor
Mutation testing (cargo-mutants,
|
coderdan
added a commit
that referenced
this pull request
Dec 5, 2026
aws-lc-rs 1.18.0 and aws-lc-sys before 0.45.0 are affected by GHSA-xv35-xp83-5wrf, an out-of-bounds write in StreamingDecryptingKey's padded decrypt. Nothing here calls that code, but vitaminc-aead's aes feature should not depend on a release with a known memory-safety bug. The same five lock files move as in #2053, which makes this change on main, with the same @cipherstash/auth changeset. Its native binaries link aws-lc-rs through stack-auth.
coderdan
marked this pull request as ready for review
December 5, 2026 04:59
This branch has not been deployed
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
This pull request moves five Cargo lock files from aws-lc-rs 1.18.0 to 1.18.1, and from aws-lc-sys 0.44.0 to 0.45.0. Those older versions are affected by GHSA-xv35-xp83-5wrf, an out-of-bounds write that aws-lc-rs published on 23 November 2026.
aws-lc-rs is the cryptography library under
rustlsandjsonwebtoken.stack-authandstack-kmsuse those two for TLS and for checking tokens.Nothing in this repository calls the affected code, as far as we can find. The change keeps the locked versions off a release with a known memory-safety bug.
The advisory
StreamingDecryptingKey, withcbc_pkcs7orecb_pkcs7, can write past the end of the output buffer. This happens when ciphertext is decrypted in more than oneupdatecall into a buffer of the minimum accepted size.updatecan write 1 byte too many, andless_safe_updateup to one block.StreamingDecryptingKeyorEVP_DecryptUpdate. Nor does the source ofrustls0.23.46,rustls-webpki0.103.16 orjsonwebtoken10.4.0, the crates that bring aws-lc-rs in.Changes
The lock files of five Cargo workspaces move aws-lc-rs and aws-lc-sys, and nothing else:
languages/golang/encrypt/guest);EQL, protect-ffi and the Go auth guest already lock aws-lc-rs 1.18.1 with aws-lc-sys 0.45.0. So every workspace here now locks the same pair.
No manifest names aws-lc-rs, so no
Cargo.tomlchanges. A crate published to crates.io carries no lock file, so a user ofstack-authresolves aws-lc-rs for themselves.The native binaries of
@cipherstash/authare built from the root lock file, so a patch changeset releases them with the fixed versions.Verification
On a Mac, with Rust 1.94.1.
cargo metadata --lockedpasses in eight of the nine Cargo workspaces. It fails inpackages/eql, whose lock this pull request does not change. It fails there on unchangedmaintoo.-D warnings.device_codepolling tests. Those tests fail here on unchangedmaintoo, a different set on each run: 8 onmainin the same session.--locked.wasm32-wasip1and passes the import check inmise.toml. The Go module's tests did not run here. CI runs them.Related
next, together with thecargo vetaudit of the new version.Review notes
cargo denycannot report it. Dependabot did not raise an alert either.Summary by CodeRabbit