#1153750 Parsing of "up" extra field needs some hardening

Package:
unzip
Source:
unzip
Description:
De-archiver for .zip files
Submitter:
Paul Marquess
Date:
2026-11-17 19:55:02 UTC
Severity:
normal
Tags:
#1153750#5
Date:
2026-11-11 16:28:47 UTC
From:
To:
The code that parses the "up" extra field (info-ZIP Unicode Path Extra Field) does not police the use-case where  the length field is less than 5.

This issue was reported by Vladimir Akparov  <akparov@gmail.com>

Tentative fix attached:

#1153750#10
Date:
2026-11-16 12:07:31 UTC
From:
To:
Thanks for the report and the patch.

I'll make an upload for unstable soon, fixing this bug and #1153751.

Thanks.

#1153750#15
Date:
2026-11-17 18:05:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
unzip, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1153750@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated unzip package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 17 Nov 2026 18:35:00 +0100
Source: unzip
Architecture: source
Version: 6.0-32
Distribution: unstable
Urgency: medium
Maintainer: Santiago Vila <sanvila@debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1144371 1153750
Changes:
 unzip (6.0-32) unstable; urgency=medium
 .
   * Print a newline when SIGINT interrupts an interactive prompt.
     Thanks to Adn Ehab Elkawass. Closes: #1144371.
   * Harden parsing of "up" extra field. Closes: #1153750.
     Thanks to Vladimir Akparov.
Checksums-Sha1:
 bac643db827497fed7b51adb95211477c7c6752c 1463 unzip_6.0-32.dsc
 ae7f079d768932eaddf2e0e9772569d53947d4d8 27728 unzip_6.0-32.debian.tar.xz
 432af937a7c92f729a94ee10b2f2b2e9b030d292 4889 unzip_6.0-32_source.buildinfo
Checksums-Sha256:
 2b72a6840459c06bf82fe5dcef45cc79eee8a955cf083f1487b1f1f34733d038 1463 unzip_6.0-32.dsc
 b84bd393d0ff68740a013b9f82d4538cefaa6f293ae2741c143d0feff2a136f4 27728 unzip_6.0-32.debian.tar.xz
 98543fab931736e8a07a05032de96a0ed4e816f17ce6a5a41453d58491e942ec 4889 unzip_6.0-32_source.buildinfo
Files:
 0ec7bfee793fb737f94d47be537c0e25 1463 utils optional unzip_6.0-32.dsc
 296a85b9b68ddd0e7ca1b1c890f43d6f 27728 utils optional unzip_6.0-32.debian.tar.xz
 74962cc3b191135881703f4f17a8c48e 4889 utils optional unzip_6.0-32_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmr8kTEACgkQQc5/C58b
izLyYQgAgbZF91xqiUyhLIMyEzp0O6hHde3ylAMa6MtZo1Uw9lWQoJzEJNNicrim
6AvjvyhgR2TLDSxS+US3QShltmtTzr5jROCGKQN0tXxrYMnv+j9xTb2kzjZ7UIsb
33l4bL7sCtTtPTf5e8+nnx3lB5pLeJ+u3azF2F0AoagOopyqJaTVcOIaj3letDcJ
iPVCAKNImhpd/kUzxflMMpr5c55KImDsCx8944eM2NWMhDG1cMKtQhzWW/CwkVRQ
a7HyH1gtgr4A8xIh1GMt9n/VbmZxo+QYJWMpDpOXeMeVnioJEjEAY5Pvo2gcN0RC
KEj3EsZBm4joJmBmIobei6QKiFoU9A==
=qKcQ
-----END PGP SIGNATURE-----