Skip to content

rust: bump time to 0.3.47 in pkg/installer (fix CVE-2026-25727) and update rustc to 1.93.1#5744

Open
eriknordmark wants to merge 2 commits intolf-edge:masterfrom
eriknordmark:proxy
Open

rust: bump time to 0.3.47 in pkg/installer (fix CVE-2026-25727) and update rustc to 1.93.1#5744
eriknordmark wants to merge 2 commits intolf-edge:masterfrom
eriknordmark:proxy

Conversation

@eriknordmark
Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark commented Apr 3, 2026

Description

Upgrades time 0.3.36 -> 0.3.47 to fix CVE-2026-25727 (stack exhaustion via malicious RFC 2822 input). Also bumps companion crates: time-core 0.1.2 -> 0.1.8, time-macros 0.2.18 -> 0.2.27, deranged 0.3.11 -> 0.5.8, num-conv 0.1.0 -> 0.2.1, serde 1.0.207 -> 1.0.228, syn 2.0.74 -> 2.0.87.

time 0.3.47 requires rustc 1.88.0, so also bumps the build image in
pkg/installer/Dockerfile from lfedge/eve-rust:1.85.1-2 to
lfedge/eve-rust:1.93.1.

Updates pkg/vector/Dockerfile and pkg/monitor/Dockerfile to use
lfedge/eve-rust:1.93.1 (from 1.85.1-2), consistent with the bump
already made to pkg/installer/Dockerfile. Also bumps vector from
v0.47.0 to v0.50.0 to fix elided_named_lifetimes lint errors
introduced in Rust 1.93, and suppresses dead_code lint which fires
on EncodingConfig when building with a limited feature set.

How to test and validate this PR

Verify that the TUI is working as expected.

Changelog notes

None

PR Backports

  • 16.0-stable No
  • 14.5-stable No
  • 13.4-stable No

Checklist

  • I've provided a proper description

  • I've added the proper documentation

  • I've tested my PR on amd64 device

  • I've tested my PR on arm64 device

  • I've written the test verification instructions

  • I've set the proper labels to this PR

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Please, check the boxes above after submitting the PR in interactive mode.

@eriknordmark eriknordmark marked this pull request as draft April 3, 2026 22:28
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.56%. Comparing base (2281599) to head (1134f50).
⚠️ Report is 441 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5744      +/-   ##
==========================================
+ Coverage   19.52%   26.56%   +7.03%     
==========================================
  Files          19       24       +5     
  Lines        3021     4213    +1192     
==========================================
+ Hits          590     1119     +529     
- Misses       2310     2872     +562     
- Partials      121      222     +101     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions bot requested a review from europaul April 4, 2026 10:15
@eriknordmark eriknordmark changed the title build(deps): bump time to 0.3.47 in pkg/installer (fix CVE-2026-25727) rust: bump time to 0.3.47 in pkg/installer (fix CVE-2026-25727) and update rustc to 1.93.1 Apr 4, 2026
@eriknordmark eriknordmark requested review from jsfakian and rucoder April 4, 2026 10:23
@eriknordmark eriknordmark marked this pull request as ready for review April 4, 2026 10:23
eriknordmark and others added 2 commits April 8, 2026 11:48
Upgrades time 0.3.36 -> 0.3.47 to fix CVE-2026-25727 (stack exhaustion
via malicious RFC 2822 input). Also bumps companion crates: time-core
0.1.2 -> 0.1.8, time-macros 0.2.18 -> 0.2.27, deranged 0.3.11 -> 0.5.8,
num-conv 0.1.0 -> 0.2.1, serde 1.0.207 -> 1.0.228, syn 2.0.74 -> 2.0.87.

time 0.3.47 requires rustc 1.88.0, so also bumps the build image in
pkg/installer/Dockerfile from lfedge/eve-rust:1.85.1-2 to
lfedge/eve-rust:1.93.1.

Signed-off-by: eriknordmark <erik@zededa.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…itor

Updates pkg/vector/Dockerfile and pkg/monitor/Dockerfile to use
lfedge/eve-rust:1.93.1 (from 1.85.1-2), consistent with the bump
already made to pkg/installer/Dockerfile. Also bumps vector from
v0.47.0 to v0.50.0 to fix elided_named_lifetimes lint errors
introduced in Rust 1.93, and suppresses dead_code lint which fires
on EncodingConfig when building with a limited feature set.

Signed-off-by: eriknordmark <erik@zededa.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@@ -53,7 +53,8 @@ ENV RUSTFLAGS="\
-C opt-level=z \
-C lto=fat \
-C embed-bitcode=yes \
-C codegen-units=1"
-C codegen-units=1 \
-A dead_code"
Copy link
Copy Markdown
Contributor

@christoph-zededa christoph-zededa Apr 9, 2026

Choose a reason for hiding this comment

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

this change is not necessary if you upgrade vector to version 0.54.0 and it only takes a small amount of more disk space

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.

2 participants