Report vulnerabilities privately through GitHub private vulnerability reporting (Security > Report a vulnerability). Do not open a public issue, pull request or discussion for an unfixed vulnerability.
Include the affected package and version, the operating system, whether the application runs standalone or hosted, reproduction steps, and the impact you observed. We acknowledge reports as soon as we can, keep you informed while we investigate, and credit you in the advisory unless you prefer otherwise.
Runic Command Line is in preview until 1.0, with plain 0.y.z versions from
0.8.0. Fixes ship in a patch of the latest minor release only; earlier releases
do not receive backported fixes. Upgrade to the
latest release before
reporting.
This repository covers the Runic.CommandLine, Runic.CommandLine.Processes,
Runic.CommandLine.Spectre and Runic.CommandLine.Testing NuGet packages.
Report issues in the Runic SDK, Runic Translations or the website to their own
repositories:
runic-sdk,
runic-translations-sdk and
runic-site.
Runic tools and applications rely on these behaviours of the packages; a way to bypass one is in scope for a report:
- Fault sanitizer. A writer sanitizes every fault before output, human or
JSON, and diagnostic arguments exclude raw token values unless a command
marks them safe. Control characters, Unicode line separators, and the
characters that can reorder or hide text on a terminal become a space: the
bidirectional embeddings, overrides and isolates (U+202A–U+202E,
U+2066–U+2069), the tag characters (U+E0000–U+E007F), and U+200B, U+2060 and
U+FEFF. The joiners and direction marks that Persian, Indic and
right-to-left text and emoji need (U+200C–U+200F, U+061C) are kept. The
protocol counts the replaced characters among its
Unicode control characters,
so the strict reader (
CommandJsonEnvelopeReader) rejects a frame that carries one in fault or diagnostic text or in the request ID, as it rejects C0 and C1 controls. The check for technical content is a heuristic, not a guarantee; the protocol lists what it matches and what producers must keep out of faults themselves. - Sanitized and raw output. Faults, diagnostics, and the lines of a
CommandTaskLogor spinner are sanitized. Some surfaces are written as the command gives them: a payload's human output,HumanOutput, and the output of a child process, captured (ProcessResult.StandardOutput.Text) or streamed (OnLineAsync,OnChunkAsync). A command that echoes child output or user input there passes terminal escape sequences through; show untrusted text in aCommandTaskLog, or put it into a fault, instead. - Developer exception output. With a debugger attached,
RUNIC_COMMANDLINE_DEBUG=1orDOTNET_ENVIRONMENT=Development,CommandAppalso writes the exceptions it observed to stderr, never to the JSON frame. That text keeps line breaks and tabs but no other control characters or the formatting characters above. It is not redacted: an exception message can contain paths, connection strings or tokens, so do not set either variable where stderr is collected, for example in a CI job or a container image. - Response files. An application that declares
CommandCatalogBuilder.ResponseFiles()expands@filearguments within bounds: 16 nesting levels, 1 MiB per file, and 4 MiB and 65,536 arguments in total. Files are read in chunks and reading stops once a bound is exceeded (RCLI1017), so@/dev/zerofails fast while@/dev/stdinfrom a pipe works; a FIFO without a writer blocks, ascatwould. - Executable policy.
Runic.CommandLine.Processesstarts children without a shell, evaluates every request withIExecutablePolicy, and rejects Windows batch files without an opt-in and, with it, arguments thatcmd.exewould interpret (RCLI6001–RCLI6008); see security and failure behavior. - Executable resolution. A bare executable name such as
ghruns only from an absolute entry of the effectivePATH(withPATHEXTon Windows). Without a match it fails as not found (RCLI6005): it never runs from the current directory or the application directory, so a file planted in a cloned repository or an extracted archive does not stand in for a missing tool. A path such as./toolresolves against the current directory; see executable resolution. - Environment inheritance. A child inherits the whole parent environment
unless
InheritEnvironmentis false, including credentials such asGITHUB_TOKENorNUGET_API_KEYin a CI job. Run tools that do not need them withInheritEnvironment = falseand an explicit minimal environment; see standard input and environment. - Termination signals.
CommandAppcancels the invocation on the first termination signal (Ctrl+C/SIGINT, SIGTERM, SIGQUIT) and exits at once on a repeated one unless the command holds a shutdown protection scope; see the Runic.CommandLine README. When the process exits while aProcessRunnerrun is still in progress, as on that repeated signal, the runner kills the run's child and its process group or job; on Windows the job also ends the child when the process ends without running exit handlers.SIGHUP, for example a closed terminal, is not handled: the runtime ends the process at once, and a Unix child in a process group of its own can keep running. See cancellation, timeout and descendants.
Every published NuGet package and GitHub release asset has a signed
build-provenance attestation, and each release has a CycloneDX SBOM that is
attached to the release and attested for its packages. Verify a file with
gh attestation verify <file> -R Runic-Artifex/runic-cli-sdk --signer-workflow Runic-Artifex/runic-cli-sdk/.github/workflows/publish-preview.yml.
The attestation shows that the publish workflow of this repository, which runs
only on main, published those bytes. It does not build them: it takes the
packages from a successful CI run of the same commit and checks them by hash
before attesting them. Packages
downloaded from NuGet.org carry NuGet.org's repository signature and therefore
differ from the attested bytes; verify the copy attached to the GitHub release
instead. See verifying a release.
Verification builds fail on NuGet packages with known vulnerabilities, and the weekly dependency audit workflow reports vulnerabilities disclosed between pushes.