Escape sequence injection vulnerability in the filter_parser.rb:filter_stream function of Fluentd versions 0.12.29 through 0.12.40 may allow for unescaped arbitrary command injection to log files and terminal output.
Processing a specially crafted log may allow for arbitrary command exectuion on the device collecting logs.
This flaw requires particular preconditions to be exploitable, which are not common in supported deployments of fluentd. The vulnerable system must have all of:
1. A filter_parser enabled in fluentd.conf
2. Fluentd running in non-daemon mode or a bad syslog server that doesn't sanitise escape sequences (rsyslog does)
3. A vulnerable terminal that happens to be running fluentd or manipulating the fluentd log file (for example tailing it)
This issue affects the versions of fluentd as shipped with Red Hat OpenShift Enterprise 3. Red Hat Product Security has rated this issue as having security impact of Moderate. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
This issue has been addressed in the following products:
Red Hat OpenStack Platform 13.0 Operational Tools for RHEL 7
Via RHSA-2018:2225 https://access.redhat.com/errata/RHSA-2018:2225