Skip to content

fix(deps): clear RUSTSEC-2026-0543 and RUSTSEC-2026-0544 - #1928

Merged
FlorentinDUBOIS merged 2 commits into
mainfrom
fix/rustsec-2026-0543-0544
Nov 18, 2026
Merged

FlorentinDUBOIS merged 2 commits into
mainfrom
fix/rustsec-2026-0543-0544

Conversation

@FlorentinDUBOIS

Copy link
Copy Markdown
Collaborator

cargo audit --deny warnings fails on main since two advisories were published after the last green run (2026-11-16), which turns the cargo audit job red on every open PR (e.g. #1927).

Changes

  1. RUSTSEC-2026-0544 (vulnerability): libz-sys 1.1.31 → 1.1.33, lockfile only. zlib 1.3.1.2–1.3.2 overflow the input buffer in gz_vacate() after a write stall. libz-sys reaches sozu-lib through flate2.
  2. RUSTSEC-2026-0543 (unmaintained, no safe upgrade): chrono reached the lockfile only through rskafka 0.6.0 in sozu-e2e. That is rskafka's latest release, and it depends on chrono without a feature gate. The Kafka service test now uses kafka-protocol 0.18 (default-features = false, features = ["client"]), which has no chrono dependency. That crate only encodes and decodes messages, so the test frames ApiVersions, CreateTopics, Produce, Fetch and DeleteTopics itself over one connection to the single KRaft node. No metadata or leader discovery is needed.

Every assertion of the Kafka test is kept: offsets [0, 1, 2], high watermark 3, keys, values, the sozu-id header, deactivate_and_assert_no_bypass and the reconnect. No production code changes.

Verification (local)

  • cargo audit --deny warnings → exit 0 (643 crates); on main it fails with the two advisories above.
  • grep -c 'name = "chrono"' Cargo.lock → 0.
  • cargo +nightly fmt --all -- --check, cargo clippy --all-targets --locked --all-features -- -D warnings → clean.
  • Kafka service test, the protocol-services.yml command (cargo test -p sozu-e2e --locked -j4 --features service-kafka tests::real_services_tcp::kafka::round_trip_and_reconnect_via_sozu -- --exact --nocapture --test-threads=1, docker):
    • main with rskafka: test result: ok. 1 passed
    • this branch: test result: ok. 1 passed

#1927 needs a rebase onto this once merged to get a green cargo audit.

zlib 1.3.1.2 through 1.3.2 overflow the input buffer in gz_vacate()
after a write stall. 1.1.33 is the first safe libz-sys release.
Lockfile only.

Signed-off-by: Florentin Dubois <[email protected]>
rskafka 0.6.0, the latest release, depends on chrono without a feature
gate, and chrono is unmaintained (RUSTSEC-2026-0543, no safe upgrade),
which fails `cargo audit --deny warnings`. chrono reached the lockfile
only through rskafka in sozu-e2e.

kafka-protocol only encodes and decodes messages, so the test now frames
ApiVersions, CreateTopics, Produce, Fetch and DeleteTopics itself over one
connection to the single KRaft node; it needs no metadata or leader
discovery. Every assertion is kept: offsets 0..=2, high watermark 3,
keys, values, the sozu-id header, the no-bypass check and the reconnect.
Records carry sequence = offset because RecordBatchEncoder splits a batch
whenever offset - sequence changes, and Produce v3+ accepts one batch.

Signed-off-by: Florentin Dubois <[email protected]>
@FlorentinDUBOIS FlorentinDUBOIS self-assigned this Nov 18, 2026
@FlorentinDUBOIS
FlorentinDUBOIS merged commit 7157314 into main Nov 18, 2026
46 checks passed
FlorentinDUBOIS added a commit that referenced this pull request Nov 18, 2026
Prepare Sōzu 2.3.6: #1927 (the PROXY protocol v2 header Sōzu prepends
to UDP datagrams names the UDP listener's address as its destination,
not the backend it forwards to) and #1928 (libz-sys 1.1.33 for
RUSTSEC-2026-0544; the sozu-e2e Kafka test moves from rskafka to
kafka-protocol, dropping chrono and RUSTSEC-2026-0543).

Align all six package versions, workspace dependency minima, lockfiles,
RPM metadata and changelog. Advance the previous-stable two-worker
upgrade gate from published 2.3.4 to published 2.3.5 (archive
63332cdb…, executable aa63f2ce…, `sozu 2.3.5 (768fad4 HEAD)`), keeping
the 2.2.1 bridge and 2.3.1 metadata cases.

Signed-off-by: Florentin Dubois <[email protected]>
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