Security advisories
SBOMIFY-SA-2026-0001

Terminal escape injection via git server messages in sbomify Action logs (CVE-2018-1000021)

A malicious git server used by a project dependency could inject terminal escape sequences into sbomify Action logs via unsanitised server messages when an SBOM generator failed. Low severity: log spoofing only. Fixed in sbomify Action v26.10.1.

Low Resolved
CVSS 3.1 CVE ID CVE-2018-1000021 Published 23 Oct 2026 Updated

Am I affected?

sbomify Action

Fixed

Upgrade to sbomify Action v26.10.1 or later.

Affected versions

  • v26.10.0
  • v26.9.0
  • Before v26.10.1

Description

Summary

The git client prints messages from the server without sanitising them, so a malicious server can inject terminal escape sequences. In sbomify Action, that text can reach the action's own log through a generator error summary that skips escape stripping.

Affected

  • Product: sbomify Action, releases v26.9.0 and v26.10.0, fixed in v26.10.1 (container image ghcr.io/sbomify/sbomify-action)
  • Component: sbomify Action - Container
  • Package: Debian git 1:2.47.3-0+deb13u1 (trixie). Debian has not fixed it and rates it unimportant.

Triage evidence (commit 85b58947b8cab7e68f7f191f0ba871307cbdfb6a, v26.10.0)

  • The action's own git calls capture output and discard stderr: sbomify_action/_runtime/git.py:102-110, submodule.py:71-77, cli/wizard/repo_facts.py:88-95. Its only remote call, git ls-remote (submodule.py:178), gets no sideband data.
  • Generators the action runs can fetch over git (Go modules, git dependencies in bun, Gradle and Maven builds), so their stderr can carry a malicious remote's sideband text.
  • log_command_error strips escape sequences before logging (_generation/utils.py:282-289, 403). extract_error_summary (_generation/utils.py:477-524) does not.
  • Its result goes into the SBOMGenerationError message, which GeneratorRegistry._warn_degraded logs (_generation/registry.py:630-638).
  • In the shipped image, OSC and CSI sequences passed through the logger to stdout unchanged. v26.9.0 has the same code.

Impact

A git server an attacker controls, used by a project dependency, can inject terminal escape sequences into the action's log when a generator fails while fetching from it. That lets the attacker hide, overwrite or spoof log lines, retitle the terminal, or plant a hyperlink in the CI log or a developer's terminal. The attacker gets no code execution or data access in the action. The upstream CVSS reflects interactive git clone use, not this path, so we rate it Low here: CVSS 3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N (3.1).

Remediation

  • Fix: strip escapes in extract_error_summary with the existing _ANSI_RE, in https://github.com/sbomify/sbomify-action/pull/468. Released in sbomify Action v26.10.1.
  • Users: upgrade sbomify Action to v26.10.1 or later. If you cannot upgrade yet, run the action in CI rather than piping its output to an interactive terminal.

CVE-2018-1000021

CVSS 3.1: 3.1

Timeline

Last updated 4 weeks ago

  1. Update

    4 weeks ago 1 day later

    Fixed in sbomify Action v26.10.1 (https://github.com/sbomify/sbomify-action/releases/tag/v26.10.1), the first release containing https://github.com/sbomify/sbomify-action/pull/468 (commit a4b01dee). Upgrade to v26.10.1 or later.

  2. Published

    1 month ago 2 minutes later

    Published as SBOMIFY-SA-2026-0001 (public).

  3. Resolved

    1 month ago 14 hours later

    https://github.com/sbomify/sbomify-action/pull/468 merged into sbomify/sbomify-action master as a4b01dee02b1a9a3b82a45e555a1d8bd2fdf3361 on 2026-10-22; not yet in a tagged release (latest tag v26.10.0 predates it).

  4. Fix in progress

    1 month ago moments later
  5. Identified

    1 month ago first entry