Skip to content

Commit b0cb2d0

Browse files
authored
Update controller.py (#13)
It is reported that in PyYAML before 4.1, usage of yaml.load() function on untrusted input could lead to arbitrary code execution. It is therefore recommended to use yaml.safe_load() instead. With 4.1, yaml.load() has been changed to call safe_load(). * Report: http://seclists.org/oss-sec/2018/q2/240 * Upstream change: yaml/pyyaml#74 * CVE: pending -- Gentoo Security Scout Vladimir Krstulja
1 parent 61f5135 commit b0cb2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amdgpu_fan/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def main(self):
4141
def load_config(path):
4242
logger.debug(f'loading config from {path}')
4343
with open(path) as f:
44-
return yaml.load(f)
44+
return yaml.safe_load(f)
4545

4646

4747
def main():

0 commit comments

Comments
 (0)