Skip to content

fix(deps): move aws-lc-rs to 1.18.1 and aws-lc-sys to 0.45.0 - #2053

Open
coderdan wants to merge 3 commits into
mainfrom
fix/aws-lc-rs-1.18.1
Open

coderdan wants to merge 3 commits into
mainfrom
fix/aws-lc-rs-1.18.1

Conversation

@coderdan

@coderdan coderdan commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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 rustls and jsonwebtoken. stack-auth and stack-kms use 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

  • What it is: StreamingDecryptingKey, with cbc_pkcs7 or ecb_pkcs7, can write past the end of the output buffer. This happens when ciphertext is decrypted in more than one update call into a buffer of the minimum accepted size. update can write 1 byte too many, and less_safe_update up to one block.
  • Affected: aws-lc-rs 1.18.0, and aws-lc-sys before 0.45.0.
  • Fixed: aws-lc-rs 1.18.1, with aws-lc-sys 0.45.0.
  • Our exposure: no Rust file here names StreamingDecryptingKey or EVP_DecryptUpdate. Nor does the source of rustls 0.23.46, rustls-webpki 0.103.16 or jsonwebtoken 10.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:

  • the root workspace;
  • the Go encrypt guest (languages/golang/encrypt/guest);
  • the fuzz crates of stack-auth, stack-encrypt and stack-kms.

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.toml changes. A crate published to crates.io carries no lock file, so a user of stack-auth resolves aws-lc-rs for themselves.

The native binaries of @cipherstash/auth are 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.

  • Lock files: each of the five moves only aws-lc-rs and aws-lc-sys. cargo metadata --locked passes in eight of the nine Cargo workspaces. It fails in packages/eql, whose lock this pull request does not change. It fails there on unchanged main too.
  • clippy: passes on the root workspace, all features and targets, with -D warnings.
  • stack-auth and stack-kms tests, all features: 451 of 453 pass. The 2 failures are device_code polling tests. Those tests fail here on unchanged main too, a different set on each run: 8 on main in the same session.
  • Fuzz crates: the three build with --locked.
  • Go encrypt guest: builds for wasm32-wasip1 and passes the import check in mise.toml. The Go module's tests did not run here. CI runs them.

Related

Review notes

  • No check here reported this advisory. At the time of writing, it is in neither the RustSec database nor GitHub's global advisory database. It is published only on the aws-lc-rs repository. So cargo deny cannot report it. Dependabot did not raise an alert either.

Summary by CodeRabbit

  • Updates
    • This is a patch release. The public API remains unchanged, and this update does not change package functionality.
    • Release information now identifies the advisory versions and clarifies that the affected code is not called by the package. No additional end-user changes are noted.

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-bot

changeset-bot Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1ad685c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 19 packages
Name Type
@cipherstash/auth Patch
stash Patch
@cipherstash/stack Patch
@cipherstash/wizard Patch
@cipherstash/ffi-integration-tests Patch
@cipherstash/basic-example Patch
@cipherstash/e2e Patch
@cipherstash/bench Patch
@cipherstash/stack-drizzle Patch
@cipherstash/stack-prisma Patch
@cipherstash/stack-supabase Patch
@cipherstash/test-kit Patch
@cipherstash/prisma-example Patch
@cipherstash/auth-darwin-arm64 Patch
@cipherstash/auth-darwin-x64 Patch
@cipherstash/auth-linux-arm64-gnu Patch
@cipherstash/auth-linux-x64-gnu Patch
@cipherstash/auth-linux-x64-musl Patch
@cipherstash/auth-win32-x64-msvc Patch

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

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds a patch changeset for @cipherstash/auth. It documents native dependency versions and advisory details. It also states that the package does not call the affected code and that its API is unchanged.

Changes: Auth patch changeset

Layer / File(s) Summary
Patch release declaration
.changeset/auth-aws-lc-rs-1-18-1.md
Adds a patch changeset that records native dependency versions, advisory information, and statements about affected code and API behavior.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: auxesis

Merge Risk: Minimal · up to 1ad68 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: bumping aws-lc-rs to 1.18.1 and aws-lc-sys to 0.45.0 to address the advisory. The changeset and the PR objectives both describe this dependency update across the lock…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title states the main change: bumping aws-lc-rs to 1.18.1 and aws-lc-sys to 0.45.0 to address the advisory. The changeset and the PR objectives both describe this dependency update across the lock files. The title uses the conventional fix(deps) form and is specific and concise.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI; Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dbd78c7e-6390-4a4a-a632-e36d225e49cb
Commits

Reviewing files that changed from the base of the PR and between fe743b4 and 1ad685c.

Files ignored due to path filters: 5

  • Cargo.lock is excluded by !**/*.lock
  • languages/golang/encrypt/guest/Cargo.lock is excluded by !**/*.lock
  • packages/stack-auth/fuzz/Cargo.lock is excluded by !**/*.lock
  • packages/stack-encrypt/fuzz/Cargo.lock is excluded by !**/*.lock
  • packages/stack-kms/fuzz/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 1

  • .changeset/auth-aws-lc-rs-1-18-1.md

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

…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.
@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Mutation testing (cargo-mutants, --in-diff, stack-auth + stack-encrypt)

No mutants were generated for the changed lines.

@coderdan coderdan left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review at e377c10, medium effort. One finding. The five lock changes are clean: the new versions and checksums match the entries that EQL, protect-ffi and the Go auth guest already have.

Comment thread Cargo.lock Resolved
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
coderdan marked this pull request as ready for review December 5, 2026 04:59
@coderdan
coderdan requested a review from a team as a code owner December 5, 2026 04:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant