⚡ Sangsakala Proxy 🏠 Home
Skip to content

Potentially sensitive environment variables logged during build #8802

Closed

Description

@Eh2406

We noticed that your build.rs saves all environment variables. Some of which may be sensitive. The output of build.rs is saved in the target directory. If someone uses your project as a dependency and reuses the cash between environment that has access to sensitive variables and in environment controlled by users, your build.rs can be used to exfiltrate those secrets. We came across this while investigating a similar issue in MIRI https://blog.rust-lang.org/2026/09/21/github-actions-leaking-secrets-when-miri-output-is-cached/ Before we made the blog post about MIRI, The Rust Security Response Group scanned all crates for related patterns. I am starting to reach out to the projects found by that scan.

If this is not a problem relevant to your users, then I'm sorry for the noise, please feel free to close. Just wanted to make sure you are aware of this situation.

Activity

  1. youknowone commented on Sep 24, 2026

    @youknowone
    Member

    Thank you so much. I will investigate it

  2. added a commit that references this issue on Sep 25, 2026
    33182c4
  3. youknowone commented on Oct 22, 2026

    @youknowone
    Member

    RustPython 0.6.0 is released with this fix. Thank you for the report!

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