GHSA-6fgx-x7m2-74qm: Tracexec Tracexec Has `env` Command Argument Vulnerability
LOWGHSA-6fgx-x7m2-74qm is a LOW tracexec has `env` command argument vulnerability (CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) affecting Tracexec libraries in the crates.io ecosystem. The issue involves tracexec has `env` command argument injection via environment variables starting with dash in traced exec events. Remediation is available by upgrading affected packages to version 0.14.0.
GHSA-6fgx-x7m2-74qm at a Glance
How to Fix GHSA-6fgx-x7m2-74qm
To remediate this vulnerability, upgrade all affected Tracexec dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade tracexec to 0.14.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for tracexec
How to Check if You Are Affected
To determine whether your application is affected by GHSA-6fgx-x7m2-74qm, inspect your project dependencies for Tracexec:
inspect dependencies for tracexec
Analyze the terminal output to locate any version of Tracexec in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'), where the product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string. In Tracexec, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-6fgx-x7m2-74qm Affected Tracexec Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tracexec
|
crates.io |
< 0.14.0
|
0.14.0
|
References
Frequently Asked Questions
What is GHSA-6fgx-x7m2-74qm?
Which Tracexec versions are affected?
What version fixes GHSA-6fgx-x7m2-74qm?
Is tracexec affected?
What CWE is associated with GHSA-6fgx-x7m2-74qm?
How can I check crates.io dependencies for GHSA-6fgx-x7m2-74qm?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6fgx-x7m2-74qm",
"modified" : "2025-10-13T20:19:36Z",
"published" : "2025-10-13T20:19:36Z",
"aliases" : [ ],
"summary" : "tracexec has `env` command argument injection via environment variables starting with dash in traced exec events",
"details" : "### Impact\n\nFor tracexec's command line reconstruction feature, when a traced process executes another process with a environment variable where the key starts with a dash, tracexec incorrectly shows its commandline where such environment variables could cause argument injection for the `env` command.\nSuch an injection is completely at the UI level unless the user tries to copy the command line with the injection and paste it into a terminal to execute it.\n\nA minimal POC is executing `env -- -a=b bash --norc` in tracexec's TUI mode. The resulting command line of `env` executing bash would be `env -a bash -a=b _=/usr/bin/env /usr/bin/bash --norc` in tracexec's TUI, which injects `-a=b` into `env`'s arguments.\n\nThis has very limited effect for security. A local adversarial could leverage this to make tracexec show an inaccurate reconstructed commandline for their executed command. If the user of tracexec decides to copy and run the reconstructed commandline,\nthere could be injection for `env`'s `--block-signal`, `--default-signal`, `--ignore-signal`, `--split-string`, `--unset`, `--chdir`, `--argv0` arguments.\n\n### Patches\nThe fix is https://github.com/kxxt/tracexec/pull/118. Users are advised to upgrade to 0.14.0.\n\n### Workarounds\n\nDon't blindly paste and execute commands copied from tracexec that contains environment variable where the key starts with a dash.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "tracexec"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.14.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kxxt/tracexec/security/advisories/GHSA-6fgx-x7m2-74qm"
}, {
"type" : "WEB",
"url" : "https://github.com/kxxt/tracexec/pull/118"
}, {
"type" : "WEB",
"url" : "https://github.com/kxxt/tracexec/commit/0dbe63214c8686df5bb62dbe6142cce27868ecff"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kxxt/tracexec"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77", "CWE-88" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-13T20:19:36Z",
"nvd_published_at" : null
}
}