Skip to content

upgrade installer process should not resolve bash through PATH implicitly #3378

Description

@Widthdom

Found while dogfooding the current source.

CreateInstallerProcessStartInfo launches the installer with:

FileName = "bash"

Evidence: src/CodeIndex/Cli/ProgramRunner.cs:3195

For a security-sensitive self-update path, resolving bash through the ambient PATH is weaker than using a trusted absolute path or validating the resolved executable.

Expected: use a known shell path where possible, validate the resolved executable, or document and test the intended trust boundary for PATH-based shell resolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecurity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions