gnuplot 5.5 is affected by double free when executing print_set_output. This may result in context-dependent arbitrary code execution. Reference: https://sourceforge.net/p/gnuplot/bugs/2312/
Created gnuplot tracking bugs for this issue: Affects: fedora-all [bug 1882321]
Upstream commit: https://github.com/gnuplot/gnuplot/commit/052cbd17c3cbbc602ee080b2617d32a8417d7563
I've set RHEL7 severity to low as it would not reproduce but seems to be possible in the source code.