Bug 1688947 (CVE-2019-9675) - CVE-2019-9675 php: buffer overflow in ext/phar/tar.c
Summary: CVE-2019-9675 php: buffer overflow in ext/phar/tar.c
Alias: CVE-2019-9675
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Whiteboard: impact=low,public=20190208,reported=2...
Keywords: Security
Depends On: 1688948
Blocks: 1690827
TreeView+ depends on / blocked
Reported: 2019-03-14 18:32 UTC by Laura Pardo
Modified: 2019-06-08 23:54 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2019-03-26 10:27:05 UTC

Attachments (Terms of Use)

Description Laura Pardo 2019-03-14 18:32:57 UTC
An issue was discovered in PHP 7.x before 7.1.27 and 7.3.x before 7.3.3. phar_tar_writeheaders_int in ext/phar/tar.c has a buffer overflow via a long link value. NOTE: The vendor indicates that the link value is used only when an archive contains a symlink, which currently cannot happen: "This issue allows theoretical compromise of security, but a practical attack is usually impossible."

Upstream Bug:

Upstream Patch:

Comment 1 Laura Pardo 2019-03-14 18:33:11 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1688948]

Comment 4 Riccardo Schirone 2019-03-26 10:27:05 UTC
This is not a real flaw for now, as the code cannot be reached as stated by upstream.

Comment 5 Riccardo Schirone 2019-03-26 10:27:44 UTC
See https://bugs.php.net/bug.php?id=65332 "phar follows symlinks instead of adding them".

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