Insecure pyyaml call to load() #30779
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
PyYAML calls to load() by Processing allow to execute arbitrary function calls.
Please see yaml/pyyaml#265
Describe the bug
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().
QGIS and OS versions
QGIS 3.4.7-Madeira
Patch
Please consider changeing /usr/share/qgis/python/plugins/processing/algs/help/init.py , inside loadShortHelp, line 46
from:
for k, v in yaml.load(stream).items():
to:
for k, v in yaml.safe_load(stream).items():
The text was updated successfully, but these errors were encountered: