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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| o2sh | onefetch | ≤ 2.28.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | onefetch | 3.0.0-1.1 | openSUSE-SU-2026:12085-1 |
Advisories 1
- openSUSE-SU-2026:12085-1 onefetch-3.0.0-1.1 on GA media SUSE / openSUSE Security Updates · Oct 9, 2026
References
- GitHub Issue #1828 issue-tracking
- https://github.com/o2sh/onefetch/blob/9beb80329cf2e5bd784270f668139f0bafb48e2b/src/info/utils/info_field.rs#L43-L55 technical-description
- https://github.com/o2sh/onefetch/blob/9beb80329cf2e5bd784270f668139f0bafb48e2b/src/info/version.rs#L33-L35 technical-description
- https://github.com/o2sh/onefetch product
- VulnCheck Advisory: onefetch through 2.28.1 Terminal Escape Sequence Injection third-party-advisory