Report a problem
Use GitHub’s private form: Report a vulnerability. Only the maintainers can see the report. Include what you can:- What the problem is and which part of Bach it touches (
bach,bach-setup, the install scripts, the GitHub Action). - The version or commit, and your Windows version if it matters.
- Steps to reproduce, ideally a small
bach.tomlor a crafted setup file. - What an attacker gains, for example “writes a file outside the install folder”.
Supported versions
Bach is early. Only the latest release andmain get security fixes. Setup files you built with an older Bach keep the runtime they were built with, so after a fix ships, rebuild and re-release your setup file with the new bach.
What counts
Bach’s safety rules are promises. Breaking one is a vulnerability, for example:- A setup file that writes, replaces or deletes anything outside its install folder or the data folders the user opted into.
- An uninstaller or update that removes files it did not install.
- Setup asking for or gaining administrator rights the app did not ask for (
installer.scope = "machine",elevated = true), running a program from a place the user’s own programs can write with those rights, or writing outside the user’s own folders andHKCU(or the machine-wide places a machine-wide app uses). - Changing or deleting registry keys,
PATHentries, link schemes or file types that belong to another program. - A damaged payload, manifest or feed that is accepted, or a self-update that installs a file that does not match the feed’s SHA-256 or the app’s id, or that downloads over http.
- Memory-safety bugs or crashes triggered by an untrusted setup file.
install.ps1,install.shoraction.ymlrunning or replacing something the user did not ask for.
What does not
- A developer putting something harmful into their own
bach.tomlor app files. - Unsigned setup files triggering SmartScreen.
- The unsigned
uninstall.exean install leaves behind. - Problems that need an attacker who already runs code as the same user.
- Findings in a dependency that Bach does not use in a reachable way. If unsure, report it anyway.