CVE-2026-100866

onefetch through 2.28.1 Terminal Escape Sequence Injection

Published Sep 27, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
onefetch through 2.28.1 writes repository information field values to the terminal without removing control characters, allowing terminal escape sequence injection. Attackers can embed ANSI/OSC escape sequences in project manifest version and name fields to manipulate terminal output, rewrite window titles, hide text, or trigger emulator-specific behavior when victims run onefetch.

Analysis

AI-generated

Technical impact

The flaw in onefetch allows control characters to flow unfiltered into the terminal during display of repository metadata. Injection of ANSI or OSC escape sequences can change window titles, hide or reveal text, or invoke emulator‑specific actions. Although it does not provide code execution, the altered output may deceive users or obscure log messages, potentially facilitating social‑engineering attacks. The weakness maps to CWE‑150, reflecting improper handling of control characters.

Affected Systems

The vulnerability affects the onefetch tool from the o2sh:onefetch vendor, specifically all releases up to and including version 2.28.1. Users who run this version on any operating system that interprets terminal escape sequences are at risk.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate severity. The EPSS score is not available, so current exploitation probability is unknown. The issue is not listed in CISA’s KEV catalog. The likely attack vector is local; an attacker must control the repository metadata shown by onefetch and may require the victim to run the tool in a terminal that interprets escape sequences. With that context, the risk is primarily in UI manipulation rather than privilege escalation or data loss.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade onefetch to a version newer than 2.28.1 once the fix is released.
  • Configure onefetch to sanitize or disable control characters before printing repository metadata.
  • Use a terminal emulator that blocks or ignores OSC and ANSI escape sequences, or run onefetch in a controlled environment with escaping disabled.

Generated by OpenCVE AI on September 27, 2026 at 14:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared O2sh
O2sh onefetch
Vendors & Products O2sh
O2sh onefetch
Type Values Removed Values Added
Description onefetch through 2.28.1 writes repository information field values to the terminal without removing control characters, allowing terminal escape sequence injection. Attackers can embed ANSI/OSC escape sequences in project manifest version and name fields to manipulate terminal output, rewrite window titles, hide text, or trigger emulator-specific behavior when victims run onefetch.
Title onefetch through 2.28.1 Terminal Escape Sequence Injection
Weaknesses CWE-150
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 30, 2026, 3:40 PM
Reserved
Sep 27, 2026, 12:20 AM
Status
Deferred
Published
Sep 27, 2026, 1:16 PM
Modified
Sep 30, 2026, 5:32 PM