Skip to content

Dependabot alert for time 0.3.41 needs an MSRV decision: every fixed release requires Rust 1.88 #6581

Open

Description

@prql-bot

Dependabot alert #110 (GHSA-r6v5-fh4h-64xc, time stack-exhaustion DoS, moderate, fixed in 0.3.47) has been open since 2026-02 and can't be cleared without raising prqlc's MSRV, which is a maintainer decision. This issue tracks that decision so the alert stops resurfacing as untracked.

Why Dependabot can't fix it. Cargo.lock pins time 0.3.41. Every time release that clears the advisory (0.3.46 onward) declares rust-version = 1.88.0, while the workspace declares rust-version = "1.85.0", so the resolver stops at 0.3.45. Dependabot's security updates keep failing with security_update_not_possible (latest-resolvable-version: 0.3.45, lowest-non-vulnerable-version: 0.3.47), most recently run 42877838610 on 2026-11-10.

Why a lockfile-only bump doesn't work. #6284 tried cargo update -p time --precise 0.3.55 and test-msrv failed: time is on prqlc's default graph as a build-dependency through vergen-gitcl, so the 1.85 toolchain can't build it:

time v0.3.41
├── vergen v9.0.6
│   └── vergen-gitcl v1.0.8
│       [build-dependencies]
│       └── prqlc v0.13.15
└── vergen-gitcl v1.0.8 (*)

Exposure. time is reached only from vergen at build time, to stamp build metadata. It doesn't parse query input, so the advisory's untrusted-input path doesn't look reachable from a compiled prqlc. That is an inference from the dependency edge; I haven't audited vergen's use of time.

Options:

  • Raise the MSRV to 1.88 and bump time. The comment on update-rust-toolchain in tests.yaml ties the MSRV to when build environments such as Debian and winget update, which is why this isn't a mechanical change.
  • Keep 1.85 and dismiss the alert as not reachable (build-time only), then revisit at the next MSRV raise.
  • Drop or replace the vergen-gitcl build-dependency so time leaves the graph.

Activity

  1. prql-bot commented on Nov 19, 2026

    @prql-bot
    CollaboratorAuthor

    Still waiting on the MSRV decision. Nothing has changed on main: the workspace is still at rust-version = "1.85.0" and Cargo.lock still pins time 0.3.41. One finding narrows the third option.

    Dropping vergen-gitcl's build feature isn't enough. build.rs only emits VERGEN_GIT_DESCRIBE, so the build feature in prqlc/prqlc/Cargo.toml isn't used. Removing it does drop vergen's time edge, but vergen-gitcl 1.0.8 also depends on time directly, without making it optional (it imports time for commit timestamps in src/gitcl/mod.rs). So time only leaves the graph if vergen-gitcl is removed entirely.

    Replacing it would be small. build.rs could run git describe --tags --dirty itself and set VERGEN_GIT_DESCRIBE (or a renamed variable). It would need to emit a placeholder when git or .git is missing, for example when building from a crates.io tarball. compiler_version() already falls back to CARGO_PKG_VERSION when that string doesn't parse. The cost is keeping the rerun-if-changed handling for .git/HEAD and refs, which vergen does today.

    I haven't opened a PR, because choosing between these options is the decision this issue is tracking. If a maintainer prefers the replacement, it's a self-contained build.rs change that can be checked with test-msrv and prqlc --version.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions