Skip to content

1.5.4: se7enxweb/expcomponents-archive, Exponential's fork of Zeta Components Archive

Latest

Choose a tag to compare

@se7enxweb se7enxweb released this 25 Nov 09:18
· 1 commit to master since this release

se7enxweb/expcomponents-archive 1.5.4 is Exponential's fork of Zeta Components Archive. Install: composer require se7enxweb/expcomponents-archive:~1.5.4

Changes

  • Fixed: The GNU tar reader no longer loops forever on unknown header types
    (pull request #1).

  • Fixed: GNU long names whose size is a multiple of 512 are read correctly
    (pull request #2).

  • Fixed: Tar extension headers are limited in size and checked for truncation
    (pull request #3).

  • Fixed: An empty GNU long name or link no longer replaces the header's name
    (pull request #4).

  • Fixed: PAX extended headers are read completely and strictly
    (pull request #5), and the GNU tar reader applies them (pull request #6).

  • Fixed: Extracting refuses entries that would be written outside the target
    directory (path traversal through "..", absolute paths or symbolic links)
    (pull request #7).

  • Fixed: Extracting no longer applies setuid, setgid and sticky bits
    (pull request #8).

    BEHAVIOUR CHANGE: a malformed or hostile archive (an unknown or truncated
    header, an oversized extension header, an invalid PAX record, an entry that
    would land outside the target) now throws an ezcArchive exception where it
    was read or extracted silently, wrongly, or looped. Callers that open
    archives from untrusted sources (package imports, uploads) should catch
    ezcArchiveException and report it. Extracted files keep their permission
    bits without setuid, setgid and sticky.

Verified

Test suite on PHP 7.4, 8.0 and 8.5 on the node: 352 tests, the only failures are 24 append tests that fail as root and fail the same on 1.5.3; GitHub Actions matrix green on the release commit.