GLSA-200501-28 : Xpdf, GPdf: Stack overflow in Decrypt::makeFileKey2

This script is Copyright (C) 2005-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200501-28
(Xpdf, GPdf: Stack overflow in Decrypt::makeFileKey2)

iDEFENSE reports that the Decrypt::makeFileKey2 function in Xpdf's
Decrypt.cc insufficiently checks boundaries when processing /Encrypt
/Length tags in PDF files.

Impact :

An attacker could entice an user to open a specially-crafted PDF
file which would trigger a stack overflow, potentially resulting in
execution of arbitrary code with the rights of the user running Xpdf or
GPdf.

Workaround :

There is no known workaround at this time.

See also :

http://www.nessus.org/u?d0de7eb8
http://www.gentoo.org/security/en/glsa/glsa-200501-28.xml

Solution :

All Xpdf users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=app-text/xpdf-3.00-r8'
All GPdf users should also upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=app-text/gpdf-2.8.2'

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 16419 (gentoo_GLSA-200501-28.nasl)

Bugtraq ID:

CVE ID: CVE-2005-0064