Description
Bash-it 3.2.0 contains a terminal escape sequence injection vulnerability in the barbuk theme's Python virtualenv prompt segment that allows local attackers to inject arbitrary terminal control sequences by embedding escape sequences in the requires-python field of a pyproject.toml file. When a user navigates into a directory containing a maliciously crafted pyproject.toml, the unfiltered field value is read via awk and concatenated directly into PS1 through __prompt-command without stripping control characters, causing injected OSC or CSI sequences to be written to and interpreted by the terminal emulator on every prompt render.
Published: 2026-08-11
Score: 4.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability permits a local attacker to insert arbitrary terminal control sequences into the requires‑python field of a pyproject.toml. When a user changes to a directory containing such a file, Bash‑it reads the field with awk, directly appends its content to the PS1 prompt via __prompt-command, and the terminal emulator interprets any OSC or CSI sequences embedded in that text. This can cause unintended terminal behaviour, message manipulation or temporary loss of prompt functionality.

Affected Systems

Bash‑it 3.2.0, particularly the barbuk theme’s virtualenv prompt component, is affected when a user navigates into a directory with a maliciously crafted pyproject.toml. No other versions or vendors are listed.

Risk and Exploitability

The CVSS base score of 4.6 denotes moderate severity, while the EPSS score of less than 1 % indicates a low likelihood of exploitation. The vulnerability is not present in CISA’s KEV catalog. Exploitation requires local access to a directory and a user who subsequently changes into that directory; there is no network vector. The impact is confined to the local session and can result in terminal manipulation or denial of normal prompt operation.

Generated by OpenCVE AI on August 12, 2026 at 20:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Bash‑it to a patched version that sanitizes the requires‑python field used by the barbuk theme.
  • If a patch is not yet available, disable the barbuk theme’s virtualenv prompt segment or modify the Bash configuration to remove or escape the unfiltered field before it is added to PS1.
  • Avoid navigating into directories containing untrusted pyproject.toml files until a fix is released, and consider restricting local access to such directories for development environments.

Generated by OpenCVE AI on August 12, 2026 at 20:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Bash-it
Bash-it bash-it
Vendors & Products Bash-it
Bash-it bash-it

Wed, 12 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
Description Bash-it 3.2.0 contains a terminal escape sequence injection vulnerability in the barbuk theme's Python virtualenv prompt segment that allows local attackers to inject arbitrary terminal control sequences by embedding escape sequences in the requires-python field of a pyproject.toml file. When a user navigates into a directory containing a maliciously crafted pyproject.toml, the unfiltered field value is read via awk and concatenated directly into PS1 through __prompt-command without stripping control characters, causing injected OSC or CSI sequences to be written to and interpreted by the terminal emulator on every prompt render.
Title Bash-it barbuk Theme 3.2.0 Terminal Escape Sequence Injection via pyproject.toml
Weaknesses CWE-150
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}

cvssV4_0

{'score': 4.6, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-12T12:58:27.324Z

Reserved: 2026-08-10T18:48:59.023Z

Link: CVE-2026-73036

cve-icon Vulnrichment

Updated: 2026-08-12T12:58:23.291Z

cve-icon NVD

Status : Received

Published: 2026-08-11T20:18:46.617

Modified: 2026-08-12T14:18:38.683

Link: CVE-2026-73036

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T09:49:23Z

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences