Skip to content

Attempt to prevent unsafe external versioner commands #10721

Closed

Description

@calmh

The external versioning command may be prone to remote execution if the command or script is crafted in an unfortunate manner.

Configuring the command as somecommand %FOLDER_PATH% %FILE_PATH% is safe at the execution layer regardless of the contents of the file path; we ensure it is sent as parameter number two. However, if you set the command to, e.g., sh -c "echo %FILE_PATH%" you open up yourself to a shell injection from the file name which can be something like evil"; rm -rf ~.

We should make a best effort attempt to prevent this, and also document it.

Activity

  1. added
    enhancement
    and removed on May 31, 2026
  2. added a commit that references this issue on Jun 23, 2026
    97cb72a
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions