It was reported , that the clipedit program as shipped with perl-Clipboard uses temporary files insecurely (based on the PID of the running program). Using symlink attacks, an attacker could cause the deletion of arbitrary files that the user running clipedit has write access to.
7 my $tmpfilename = "/tmp/clipedit$$";
8 open my $tmpfile, ">$tmpfilename" or die "Failure to open $tmpfilename: $!";
9 print $tmpfile $orig;
10 close $tmpfile;
13 system($ed, $tmpfilename);
15 open $tmpfile, $tmpfilename or die "Failure to open $tmpfilename: $!";
16 my $edited = join '', <$tmpfile>;
49 unlink($tmpfilename) or die "Couldn't remove $tmpfilename: $!";
Created perl-Clipboard tracking bugs for this issue:
Affects: fedora-all [bug 1135625]
Affects: epel-7 [bug 1135626]
MITRE assigned CVE-2014-5509 to this issue:
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.