Bug 1024762 (CVE-2013-4474) - CVE-2013-4474 poppler: format string flaw in pdfseparate utility
Summary: CVE-2013-4474 poppler: format string flaw in pdfseparate utility
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2013-4474
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1024765 1025160
Blocks: 1025135 1025139
TreeView+ depends on / blocked
 
Reported: 2013-10-30 11:37 UTC by Ratul Gupta
Modified: 2019-09-29 13:09 UTC (History)
4 users (show)

Fixed In Version: poppler 0.24.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-31 06:39:28 UTC


Attachments (Terms of Use)

Description Ratul Gupta 2013-10-30 11:37:23 UTC
Poppler was found to have a user controlled format string vulnerability because it fails to sanitize user-supplied input. An attacker may exploit this issue to execute arbitrary code in the context of the vulnerable application. Failed exploit attempts will likely result in a denial-of-service condition. 

The issue is said to be fixed in Poppler 0.24.3.

References:
http://seclists.org/oss-sec/2013/q4/181

Commit:
http://cgit.freedesktop.org/poppler/poppler/commit/?id=61f79b8447c3ac8ab5a26e79e0c28053ffdccf75

Comment 1 Ratul Gupta 2013-10-30 11:39:00 UTC
Filename(line): poppler-0.24.2/utils/pdfseparate.cc(70)
Code snippet:

bool extractPages (const char *srcFileName, const char *destFileName) {
  char pathName[4096];
  GooString *gfileName = new GooString (srcFileName);
  PDFDoc *doc = new PDFDoc (gfileName, NULL, NULL, NULL);

...

  if (firstPage != lastPage && strstr(destFileName, "%d") == NULL) {
    error(errSyntaxError, -1, "'{0:s}' must contain '%%d' if more than
one page should be extracted", destFileName);
    return false;
  }
  for (int pageNo = firstPage; pageNo <= lastPage; pageNo++) {
    snprintf (pathName, sizeof (pathName) - 1, destFileName, pageNo);
^ function parameter passed as format string

The function is called by main in line 110 directly passing the arguments:
ok = extractPages (argv[1], argv[2]);
^ destFileName parameter

Comment 2 Ratul Gupta 2013-10-30 11:42:41 UTC
Created poppler tracking bugs for this issue:

Affects: fedora-all [bug 1024765]

Comment 3 Huzaifa S. Sidhpurwala 2013-10-31 06:38:03 UTC
This flaw affects the pdfseparate utility shipped with poppler. This utility is not shipped with the version of poppler shipped with Red Hat Enterprise Linux 5 and 6.

Comment 4 Huzaifa S. Sidhpurwala 2013-10-31 06:39:28 UTC
Statement:

Not Vulnerable. This issue does not affect the version of poppler as shipped with Red Hat Enterprise Linux 5 and 6.

Comment 6 Fedora Update System 2013-11-11 02:24:58 UTC
poppler-0.22.1-5.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2013-11-16 07:15:43 UTC
poppler-0.20.2-17.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.