cups-browsed is daemon which browses the Bonjour broadcasts of shared, remote CUPS printers and makes the printers available locally. Sebastian Krahmer discovered it was possible to use malicious broadcast packets to execute arbitrary commands.
Original report: http://seclists.org/oss-sec/2014/q2/3
Created cups-filters tracking bugs for this issue:
Affects: fedora-all [bug 1083327]
cups-browsed is provided via the cups-filters package. The cups-filters package is not available in Red Hat Enterprise Linux 5 and 6.
I just examined each instance of '%s' in utils/cups-browsed.c and couldn't see this vulnerability anywhere in the source code.
I think the command injection is part of a feature that was added to cups-browsed in a version of cups-filters later than the version in Red Hat Enterprise Linux 7.
Fixed upstream in cups-filters 1.0.51:
Support for automatic setup of print queues was introduced in version 1.0.41:
This feature is disabled by default and can be enabled using the CreateIPPPrinterQueues configuration directive in /etc/cups/cups-browsed.conf . Fedora cups-filters packages do not override the upstream setting and also have it disabled by default.
MITRE assigned CVE-2014-2707 to this issue:
I got an email from Sebastian Krahmer:
From what I see you made the fix for CVE-2014-2707. I digged
more into cups-browsed and IMHO it needs additional fixing
(also for other issues like OOB access). My patch proposal
thats required additional to your fix is available here:
However its untested.
(In reply to Jiri Popelka from comment #7)
> I got an email from Sebastian Krahmer:
> From what I see you made the fix for CVE-2014-2707. I digged
> more into cups-browsed and IMHO it needs additional fixing
> (also for other issues like OOB access). My patch proposal
> thats required additional to your fix is available here:
> However its untested.
See bug #1091565 for this.
cups-filters-1.0.41-6.fc20 and cups-filters-1.0.41-6.fc19 have been released to fix this.
Not vulnerable. This issue did not affect the versions of cups-filters as shipped with Red Hat Enterprise Linux 7.