From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lux Newsgroups: gmane.emacs.bugs Subject: bug#66390: `man' allows to inject arbitrary shell code Date: Wed, 11 Oct 2023 11:08:34 +0800 Message-ID: References: <83wmvyzir2.fsf@gnu.org> <585dcaf0-358e-4a9d-84d1-6fd9c2c8aec5@gmail.com> <83v8bizf9r.fsf@gnu.org> <1865abb8-16cd-4570-9a8a-87cf9430583d@gmail.com> <875y3iigua.fsf@gmx.de> <83o7hazap7.fsf@gnu.org> <87mswugyoq.fsf@gmx.de> <83jzryz6op.fsf@gnu.org> <87a5sugwcx.fsf@gmx.de> <83h6n2z3tr.fsf@gnu.org> <831qe5znrz.fsf@gnu.org> <262ed9fe-b92b-489d-b1f0-5202bfdb088b@gmail.com> <87il7e78j5.fsf@igel.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-rLVAPJWRAGvwcNQqiOFF" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32474"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.50.0-1 Cc: Max Nikulin , 66390@debbugs.gnu.org, michael.albinus@gmx.de, Eli Zaretskii To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 11 05:09:51 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qqPbb-0008Fb-GK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Oct 2023 05:09:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqPbS-00076n-MF; Tue, 10 Oct 2023 23:09:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqPbR-00076J-5a for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 23:09:41 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqPbQ-0002ig-TN for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 23:09:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqPbm-0004eq-Dp for bug-gnu-emacs@gnu.org; Tue, 10 Oct 2023 23:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: lux Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Oct 2023 03:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66390 X-GNU-PR-Package: emacs Original-Received: via spool by 66390-submit@debbugs.gnu.org id=B66390.169699375817839 (code B ref 66390); Wed, 11 Oct 2023 03:10:02 +0000 Original-Received: (at 66390) by debbugs.gnu.org; 11 Oct 2023 03:09:18 +0000 Original-Received: from localhost ([127.0.0.1]:37276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqPb3-0004de-BP for submit@debbugs.gnu.org; Tue, 10 Oct 2023 23:09:18 -0400 Original-Received: from out203-205-221-149.mail.qq.com ([203.205.221.149]:38580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqPav-0004cr-0d for 66390@debbugs.gnu.org; Tue, 10 Oct 2023 23:09:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1696993718; bh=zdlVdBI4PebMZyILknuts+WrwrrJqynhgy8x57gQfXI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=pfqy0f4yAy5PEsyHi7iJh//pjF203pqQjpJmsZ+qzsqz0cpVW44hYBQXE+1dCupK6 Utq1LsiZm+xecc9stWfc26JXGDmNIj1wwH12rjY8rIVzLLnY+nCkIce4X1h8h02nFr bPWbowHeVmJOyPc3MaMwkbjJge1UL4Q6oqNAbVSQ= Original-Received: from [10.8.192.150] ([140.210.194.131]) by newxmesmtplogicsvrszc2-1.qq.com (NewEsmtp) with SMTP id 222A2AAA; Wed, 11 Oct 2023 11:08:34 +0800 X-QQ-mid: xmsmtpt1696993714tpiw3w65w X-QQ-XMAILINFO: N3l5ASPewLWqBsmGmx0o2aLB/Zcggyzg5J5xClVz2aA6x8CtwLDuyT/QHy2OOI f0dylzqea83G3WHiHkFIzxN7j26arpbaQC403zSpDGC73rrMhobFz1BaYbdNgsBr8YiWJVjbPaWB 7dcT/erE07YW9DOOLxetXNw9y7FyhlOKbVVwCLYXnfzVPpfvycW6rrniODJXgBXQUKre5eQgvcLd nUoPcePvdoipiBI7bnc6Dstm5QC4ywKIxK1DFXEuwExed0VypnRtv+4tNII9dCzvChn7rXBWRgB9 aDepoIiOuBWiK4Zvj6xROedR+fNIFqBcFPG95U3xKbXrxFkX9ZQxZYhkPBHFpbcW+Movv+cf7vVa 09qa81MYKe4aBaXDnkT4suyaSnblTDeFLjTXoaqUr2o+He0Taz4yUpmuYbDypSSluWcu20Y0K744 FdFH/WYItCxB3luS1Xe9bqFNkDcx/YIlw+5qAxfHi0v8roBOFG7GiM71IEdms4bO8lOzOeNUyzLx zITv1VordeB2HX+TmSwSLSLNb5zd7UOif9dv7W3JiTznt/jRQsynEqRJoyALewNXGt9VEVt/0Ov1 Uro+Epk98kVkhfrzVi6H6MYwIs08w5Myoso9o1ugf8zUpTNQmHYhfEOXZwL67DBIqe4thHu/LdN9 KG/K0oggV5/Y1m8iGZ0TIkiFQGfG9vcjjDl/TerwCxbvDmWkQ8SukfGQejrJ0InOXeIogF/wJSij u9jlK2welHluuqKxcjEveBf87nj0L3+9F2E/u7lCTN23OxTUh252Dgt8eGZ/21ihGsoSS3FLLM8P EuWNgdsPrenj8I7sARAPYdauDA102AZ9O5KsGKMC X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= X-OQ-MSGID: <4231edb7920ea7ba394fddf82d153ac1c819ee61.camel@shellcodes.org> In-Reply-To: <87il7e78j5.fsf@igel.home> Autocrypt: addr=lx@shellcodes.org; prefer-encrypt=mutual; keydata=mQENBF9ZlQQBCADp/JGo1JwVC86MQCSKI9Z2zeUOU2nItnuhfNfGLF3xueuL3QojOfPiBDdk14PqxXoZI6r2dS/YY2Nsr1iYch/ldkA1m9D8siwIzuWdkxntmuP56dtJVt6zGnMf+aijN4diRYPCmcENcdIly4aRPqcQZcftJRpLhsu+zDOT8LC+vCP9A5IEfqv1oFAbxt0pE/Lwymn/jzuqRnaEV5TA2+c+fMNhzfhaMp0FxrpO6sZIqU+c7r/d9ZJ98k3g8eq9MkK2s6ZQRnZUbngZ9p2c3zYB0BwHWovzDsGCl8pmUiUHEhGLhu6N2OGnQdUUuSU/Fdoq/zVsDfMz70II00pxSYOJABEBAAG0GWx1NG54IDxseEBzaGVsbGNvZGVzLm9yZz6JAU4EEwEIADgWIQSwvd/kky9UAikm2YRcdI5fNjiBRQUCX1mVBAIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRBcdI5fNjiBRTVbCAC510aF/8rpCzyAlBdxRlBzcz5FLw8ZS2VHn6FwxZbdk9USQPlnbtPSMzWRk7KLdzkUvvdRE8C8Z4JwnWOuNp3oDob5UEfLHQfL1+o/yHQqo2n5Wf9BFjIgvB2UThd2nxk1lW0yAnPsUrWX1Dy63hHtyAbpSMOXEjrn//EIH7If7BRTT5VYUEnhqMogWYWX8mE/ZrfFFY3LVyelHK86iYnIgW18Efg7g8k+Kys66tCSOdz19jhsxjbOKMrCISs5aQH5TNO0mqZq2eOdEi+nc6yLu1FLfUY eTXhIwA8jujSYdqswNU+2OU/JazMBFBK4duhHo5Y X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272242 Archived-At: --=-rLVAPJWRAGvwcNQqiOFF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 T24gVHVlLCAyMDIzLTEwLTEwIGF0IDE4OjIxICswMjAwLCBBbmRyZWFzIFNjaHdhYiB3cm90ZToK PiBPbiBPa3QgMTAgMjAyMywgbHV4IHdyb3RlOgo+IAo+ID4gK8KgwqDCoMKgwqDCoMKgIDs7IHNl ZSBCdWcjNjYzOTAKPiA+ICsJKG1hcGNvbmNhdCAnaWRlbnRpdHkKPiA+ICvCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKG1hcGNhciAjJ3NoZWxsLXF1b3RlLWFyZ3VtZW50Cj4g PiArwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAo c3BsaXQtc3RyaW5nIHJlZiAiICIpKQo+IAo+IFlvdSBuZWVkIHRvIHNwbGl0IG9uIGFyYml0cmFy eSBzZXF1ZW5jZXMgb2Ygd2hpdGVzcGFjZSB0byBub3QgaW50cm9kdWNlCj4gc3B1cmlvdXMgZW1w dHkgYXJndW1lbnRzLgo+IAoKVGhhbmtzLCBJJ3ZlIG1vZGlmaWVkIGl0IHRvIChzcGxpdC1zdHJp bmcgcmVmICJcXHMtKyIpLgoKCg== --=-rLVAPJWRAGvwcNQqiOFF Content-Disposition: attachment; filename="0001-Fix-man.el-code-injection-vulnerability.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-Fix-man.el-code-injection-vulnerability.patch"; charset="UTF-8" RnJvbSBmYWE0OWJhNzhhMjAzZDQ3NzQwMjgwZTVjNmZkMGUwNzU2MjhiNTA3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBYaSBMdSA8bHhAc2hlbGxjb2Rlcy5vcmc+CkRhdGU6IFR1ZSwg MTAgT2N0IDIwMjMgMjI6MjA6MDUgKzA4MDAKU3ViamVjdDogW1BBVENIXSBGaXggbWFuLmVsIGNv ZGUgaW5qZWN0aW9uIHZ1bG5lcmFiaWxpdHkuCgoqIGxpc3AvbWFuLmVsIChNYW4tdHJhbnNsYXRl LXJlZmVyZW5jZXMpOiBGaXggY29kZSBpbmplY3Rpb24uCiogdGVzdC9saXNwL21hbi10ZXN0cy5l bCAobWFuLXRlc3RzLU1hbi10cmFuc2xhdGUtcmVmZXJlbmNlcyk6IE5ldy4KLS0tCiBsaXNwL21h bi5lbCAgICAgICAgICAgIHwgIDYgKysrKystCiB0ZXN0L2xpc3AvbWFuLXRlc3RzLmVsIHwgMTIg KysrKysrKysrKysrCiAyIGZpbGVzIGNoYW5nZWQsIDE3IGluc2VydGlvbnMoKyksIDEgZGVsZXRp b24oLSkKCmRpZmYgLS1naXQgYS9saXNwL21hbi5lbCBiL2xpc3AvbWFuLmVsCmluZGV4IDUwNmQ2 MDYwMjY5Li5hOTU0MzVjN2VhMCAxMDA2NDQKLS0tIGEvbGlzcC9tYW4uZWwKKysrIGIvbGlzcC9t YW4uZWwKQEAgLTY5Miw3ICs2OTIsMTEgQEAgTWFuLXRyYW5zbGF0ZS1yZWZlcmVuY2VzCiAgICAg ICAoc2V0cSBuYW1lIChtYXRjaC1zdHJpbmcgMiByZWYpCiAJICAgIHNlY3Rpb24gKG1hdGNoLXN0 cmluZyAxIHJlZikpKSkKICAgICAoaWYgKH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