Skip to content

Suppress stdout from env loading script to avoid python exec pollution#54

Merged
islas merged 1 commit into
releases/1.1.0from
env_from_script_suppress_stdout
Jun 12, 2026
Merged

Suppress stdout from env loading script to avoid python exec pollution#54
islas merged 1 commit into
releases/1.1.0from
env_from_script_suppress_stdout

Conversation

@islas

@islas islas commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Without this suppression environment loading scripts that give verbose information (e.g. intel setvars.sh) will have these lines executed by the Python exec() function. Best case, it is total nonsense and throws an error, worst case it executes some catastrophic code.

Note that the loader still executes perceived differences in the env, so users should be cautious about loading scripts and be aware of code injection.

Without this suppression environment loading scripts that give verbose
information (e.g. intel setvars.sh) will have these lines executed by
the Python `exec()` function. Best case, it is total nonsense and throws
an error, worst case it executes some catastrophic code.

Note that the loader still executes perceived differences in the env, so
users should be cautious about loading scripts and be aware of code
injection.
@islas islas merged commit 38f75a6 into releases/1.1.0 Jun 12, 2026
8 checks passed
@islas islas mentioned this pull request Jun 15, 2026
islas added a commit that referenced this pull request Jun 15, 2026
# Official release

Includes the following PRs:
* #38
* #39
* #40
* #41
* #42 
* #43 
* #44 
* #45 
* #46 
* #47 
* #48 
* #49 
* #50 
* #51 
* #52 
* #53 
* #54 
* #55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant