Security Advisory Printing exposes system files to reading.

Advisory: RHSA-2001:112-10
Type: Security Advisory
Severity: N/A
Issued on: 2001-09-24
Last updated on: 2001-11-01
Affected Products: Red Hat Linux 5.2
Red Hat Linux 6.2
Red Hat Linux 7.0
Red Hat Linux 7.1
OVAL: N/A

Details

When used in a spooling environment, it is inappropriate to allow programs
to read arbitrary files as a result of print requests. Ghostscript, a
postscript interpreter, can read arbitrary system files with the same
permissions as the print spooler, potentially exposing the system to an
information compromise.

Ghostscript, a postscript interpreter, possess various 'file', 'run',
etc., commands internally. It also provides a -dSAFER flag to restrict the
use of the commands. However, the -dSAFER flag is meant to protect a user
from malicious postscript, not to protect a system from inappropriate
snooping by a user, and so it is still possible to _read_ files in the
SAFER mode.

In a print spooling context, even reading arbitrary files is dangerous, and
so this needs to be disabled in that context.

[UPDATE] : previous versions of this errata used packages:
rhs-printfilters-1.46-6,
rhs-printfilters-1.63-2.rh6.2,
rhs-printfilters-1.63-2.rh6.2j,
rhs-printfilters-1.81-2.rh7.0, and
rhs-printfilters-1.81-2.rh7.0j.

These caused spools to break upon upgrade, though they could easily be fixed
by editing the spools with printtool. The updated versions of the errata
packages address this bug.


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the
desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

After updating the packages, the spool filter will have to be repaired to
use the -dPARANOIDSAFER mode, IF and only IF you have modified the spools
from what printtool provided. If this is the case, delete the spool queue,
and simply re-add it.

Custom filters and processes can make use of this mode by setting and
exporting the GS_OPTIONS environment variable to contain -dPARANOIDSAFER,
or by adding -dPARANOIDSAFER to the command line call to ghostscript.

Updated packages

Red Hat Linux 5.2

SRPMS:
ftp://updates.redhat.com/5.2/en/os/SRPMS/ghostscript-4.03-4.src.rpm
Missing file
    1e2e4ac0ea5e8dd82b2e1d36b79c34f2
ftp://updates.redhat.com/5.2/en/os/SRPMS/printtool-3.29-4.src.rpm
Missing file
    9909205f309ddb5e065be9c1320dd8b1
ftp://updates.redhat.com/5.2/en/os/SRPMS/rhs-printfilters-1.46-7.src.rpm
Missing file
    f1689b327fc61b0f3af0fa929a5bbb50
 
alpha:
ftp://updates.redhat.com/5.2/en/os/alpha/ghostscript-4.03-4.alpha.rpm
Missing file
    e5b9efa88914c71b24295af6211b3efd
ftp://updates.redhat.com/5.2/en/os/alpha/rhs-printfilters-1.46-7.alpha.rpm
Missing file
    f93992187de99c2e6e990f4b02a1b6f7
 
i386:
ftp://updates.redhat.com/5.2/en/os/i386/ghostscript-4.03-4.i386.rpm
Missing file
    0ab69b43209d09741f6d044746eb241e
ftp://updates.redhat.com/5.2/en/os/i386/rhs-printfilters-1.46-7.i386.rpm
Missing file
    4571d04802b320f74caf39913cfb1e05
 
sparc:
ftp://updates.redhat.com/5.2/en/os/sparc/ghostscript-4.03-4.sparc.rpm
Missing file
    10d6eea0b77c170d52a45b891f2359e0
ftp://updates.redhat.com/5.2/en/os/sparc/rhs-printfilters-1.46-7.sparc.rpm
Missing file
    8997fa04aa73b32eb083552982bd03a6
 
Red Hat Linux 6.2

SRPMS:
ghostscript-5.50-19.rh6.2.src.rpm
File outdated by:  RHSA-2002:083
    248661d383b62af3d3208ef430bbb523
ftp://updates.redhat.com/6.2/ja/os/SRPMS/ghostscript-5.50-19.rh6.2j.src.rpm
Missing file
    8f8714585f711b8b8bc1c2cd783472a1
ftp://updates.redhat.com/6.2/ja/os/SRPMS/printtool-3.42-4.src.rpm
Missing file
    e191a1a78b5bdf916bcacb5c21419471
ftp://updates.redhat.com/6.2/en/os/SRPMS/printtool-3.44-2.src.rpm
Missing file
    3938d1c2b436e06990b4853cd721da4f
ftp://updates.redhat.com/6.2/en/os/SRPMS/rhs-printfilters-1.63-4.rh6.2.src.rpm
Missing file
    fa7db4d6926e1e5d5d11ad5683967d05
ftp://updates.redhat.com/6.2/ja/os/SRPMS/rhs-printfilters-1.63-4.rh6.2j.src.rpm
Missing file
    ea6a3e38ddb6fc603d834c7736fc2bd5
 
Alpha:
ghostscript-5.50-19.rh6.2.alpha.rpm
File outdated by:  RHSA-2002:083
    e631891fce4cec7e2dc0121b68d3f738
ftp://updates.redhat.com/6.2/en/os/noarch/printtool-3.44-2.noarch.rpm
Missing file
    94a95c0be1a72b173b6d51f8096b8e58
ftp://updates.redhat.com/6.2/en/os/alpha/rhs-printfilters-1.63-4.rh6.2.alpha.rpm
Missing file
    1be28559176724e4b4052752ef62ab34
 
IA-32:
ghostscript-5.50-19.rh6.2.i386.rpm
File outdated by:  RHSA-2002:083
    d4272031c27f633bc34dd4b451381ab8
ftp://updates.redhat.com/6.2/en/os/noarch/printtool-3.44-2.noarch.rpm
Missing file
    94a95c0be1a72b173b6d51f8096b8e58
ftp://updates.redhat.com/6.2/en/os/i386/rhs-printfilters-1.63-4.rh6.2.i386.rpm
Missing file
    d1db472215ad8c98e22358631597a71c
 
Sparc:
ghostscript-5.50-19.rh6.2.sparc.rpm
File outdated by:  RHSA-2002:083
    9fbaaee462404c30775cd2e9bc0adbd5
ftp://updates.redhat.com/6.2/en/os/noarch/printtool-3.44-2.noarch.rpm
Missing file
    94a95c0be1a72b173b6d51f8096b8e58
ftp://updates.redhat.com/6.2/en/os/sparc/rhs-printfilters-1.63-4.rh6.2.sparc.rpm
Missing file
    01d082f4f927fdc424edbe29b7bc0626
 
i386:
ftp://updates.redhat.com/6.2/ja/os/i386/ghostscript-5.50-19.rh6.2j.i386.rpm
Missing file
    2cbad9d8965365ba8704ff728e32b2ca
ftp://updates.redhat.com/6.2/ja/os/i386/rhs-printfilters-1.63-4.rh6.2j.i386.rpm
Missing file
    c06f53bb72d04b8cec3bbc475ea95ae7
 
noarch:
ftp://updates.redhat.com/6.2/ja/os/noarch/printtool-3.42-4.noarch.rpm
Missing file
    c5c8e9ff4171a3eb69b9e17724015345
 
Red Hat Linux 7.0

SRPMS:
ghostscript-5.50-19.rh7.0.src.rpm
File outdated by:  RHSA-2002:083
    5db34e8b133397de814eb9aac4b9eb49
ftp://updates.redhat.com/7.0/ja/os/SRPMS/ghostscript-5.50-19.rh7.1.src.rpm
Missing file
    166bdd66ca50f93a339511f3f3e9d2e6
ftp://updates.redhat.com/7.0/en/os/SRPMS/printtool-3.54-2.src.rpm
Missing file
    b74adc24a474d17db984da3ddc3eb3b1
ftp://updates.redhat.com/7.0/ja/os/SRPMS/printtool-3.54-2j.src.rpm
Missing file
    2571c3d15b6bc025ea5faa5a84c7417f
ftp://updates.redhat.com/7.0/en/os/SRPMS/rhs-printfilters-1.81-4.rh7.0.src.rpm
Missing file
    71c6737bf2fc1e80ebe2993abcff6ac6
ftp://updates.redhat.com/7.0/ja/os/SRPMS/rhs-printfilters-1.81-4.rh7.0j.src.rpm
Missing file
    8ac39939d73901ded39b8961eb6b289c
 
Alpha:
ghostscript-5.50-19.rh7.0.alpha.rpm
File outdated by:  RHSA-2002:083
    85ded059428a30beec706275906aaad4
ftp://updates.redhat.com/7.0/en/os/noarch/printtool-3.54-2.noarch.rpm
Missing file
    ea13fc93f0346f87f70763a7cf2dd645
ftp://updates.redhat.com/7.0/en/os/alpha/rhs-printfilters-1.81-4.rh7.0.alpha.rpm
Missing file
    235fca1b6b05bc52191d9981f9a63c89
 
IA-32:
ghostscript-5.50-19.rh7.0.i386.rpm
File outdated by:  RHSA-2002:083
    4853a8a763df075ab5fdfee5121855fe
ftp://updates.redhat.com/7.0/en/os/noarch/printtool-3.54-2.noarch.rpm
Missing file
    ea13fc93f0346f87f70763a7cf2dd645
ftp://updates.redhat.com/7.0/en/os/i386/rhs-printfilters-1.81-4.rh7.0.i386.rpm
Missing file
    884daf36b6717aa65ef37df14dd185f9
 
i386:
ftp://updates.redhat.com/7.0/ja/os/i386/ghostscript-5.50-19.rh7.1.i386.rpm
Missing file
    aab6f7a301909bb2eae04d5ab7b87d5d
ftp://updates.redhat.com/7.0/ja/os/i386/rhs-printfilters-1.81-4.rh7.0j.i386.rpm
Missing file
    d6d9a40b3af3eb91294dde88856af1bd
 
noarch:
ftp://updates.redhat.com/7.0/ja/os/noarch/printtool-3.54-2j.noarch.rpm
Missing file
    afb8db5574e0f668675565b994d9a69a
 
Red Hat Linux 7.1

SRPMS:
ghostscript-5.50-19.rh7.1.src.rpm
File outdated by:  RHSA-2002:083
    166bdd66ca50f93a339511f3f3e9d2e6
ftp://updates.redhat.com/7.1/en/os/SRPMS/printconf-0.2.15-2.src.rpm
Missing file
    3d2ec6dc7e1479eff9c1850d13b0306e
 
Alpha:
ghostscript-5.50-19.rh7.1.alpha.rpm
File outdated by:  RHSA-2002:083
    ebb20c363cbf63112f515af2153d2e59
ftp://updates.redhat.com/7.1/en/os/alpha/printconf-0.2.15-2.alpha.rpm
Missing file
    a0dfc995d0648230e1648f616010904b
ftp://updates.redhat.com/7.1/en/os/alpha/printconf-gui-0.2.15-2.alpha.rpm
Missing file
    c5f127f4ab3a2964d8d4fa990c8a5d66
 
IA-32:
ghostscript-5.50-19.rh7.1.i386.rpm
File outdated by:  RHSA-2003:181
    aab6f7a301909bb2eae04d5ab7b87d5d
ftp://updates.redhat.com/7.1/en/os/i386/printconf-0.2.15-2.i386.rpm
Missing file
    a2b7f27e31b71218703cb68f95355e24
ftp://updates.redhat.com/7.1/en/os/i386/printconf-gui-0.2.15-2.i386.rpm
Missing file
    b20e1817f9b81ba5503c9864588e2f92
 
IA-64:
ghostscript-5.50-19.rh7.1.ia64.rpm
File outdated by:  RHSA-2002:083
    591db681b2312d5101e3a97e4ad26b6d
ftp://updates.redhat.com/7.1/en/os/ia64/printconf-0.2.15-2.ia64.rpm
Missing file
    274bbba826571dccae6dbda1f6a73d37
ftp://updates.redhat.com/7.1/en/os/ia64/printconf-gui-0.2.15-2.ia64.rpm
Missing file
    19aeb3b64f695b6f0343661173fff3d5
 

Keywords

Ghostscript, lpr, LPRng, printing


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/