🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2963

Bug#1152844: docx2txt: shell command injection via crafted input filename

#2963
From: Barak A. Pearlmutter
Date: Mon, 02 Nov 2026 09:10
13 lines
2286 bytes
Thanks for the report and the patch.  I've applied it in 1.4-6, with some
additions:

 - a file name starting with "-" is passed to unzip as "./-..." so it
   can't be taken as an unzip option;
 - the output file is also opened with 3-arg open ("-" still means stdout);
 - the STDIN temporary file is now created with File::Temp (so no need to
   file that one separately);
 - docx2txt.config (perl code, run with "do") is no longer loaded from the
   current directory.  With modern perl that is blocked by '.' not being
   in @INC, but PERL_USE_UNSAFE_INC=1 re-enabled it.

Will close with the upload.
Technical Details
Message-ID: <NUWdc-9nsQ-21@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NUUXL-9mJ6-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Barak A. Pearlmutter <barak@cs.nuim.ie>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152844: docx2txt: shell command injection via crafted input filename
Date: Mon, 02 Nov 2026 10:10:02 +0100
Message-ID: <NUWdc-9nsQ-21@gated-at.bofh.it>
References: <NUUXL-9mJ6-5@gated-at.bofh.it>
X-Original-To: 1152844@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Nov  2 09:03:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.45
Reply-To: Barak A. Pearlmutter <barak@cs.nuim.ie>, 1152844@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: bap@debian.org
X-Debian-Pr-Message: followup 1152844
X-Debian-Pr-Package: docx2txt
X-Debian-Pr-Keywords: patch security
X-Debian-Pr-Source: docx2txt
Content-Type: text/plain; charset=utf-8
X-Crossassassin-Score: 2
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000200
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 13
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Koyo Keiter <koyo.keiter@gmail.com>
X-Original-Date: Mon, 02 Nov 2026 09:01:34 +0000
X-Original-Message-ID: <E1xNnv4-000000045eC-1Ar3@port-kadr>
X-Original-References: <179360559191.192798.6347993210442239182.reportbug@Gotham>