From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8IHCFuOaT2TrKAEASxT56A (envelope-from ) for ; Mon, 01 May 2023 12:56:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OLV5FuOaT2QTEQAAauVa8A (envelope-from ) for ; Mon, 01 May 2023 12:56:35 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1E98BE7C9 for ; Mon, 1 May 2023 12:56:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptRCe-0001ZL-9N; Mon, 01 May 2023 06:56:20 -0400 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 1ptRCb-0001Z7-Uw for emacs-orgmode@gnu.org; Mon, 01 May 2023 06:56:17 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptRCa-0005RC-2C for emacs-orgmode@gnu.org; Mon, 01 May 2023 06:56:17 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ptRCX-0001of-6S for emacs-orgmode@gnu.org; Mon, 01 May 2023 12:56:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: [PATCH] Fix ob-latex.el command injection vulnerability. Date: Mon, 1 May 2023 17:56:05 +0700 Message-ID: References: <87v8jzjj1p.fsf@localhost> <047b7367-c98f-e531-b3e9-bc50b6b098e5@gmail.com> <871qlyqfm0.fsf@localhost> <87wn3nwomf.fsf@localhost> <87ilf6us3g.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US In-Reply-To: <87ilf6us3g.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-1.422, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682938595; a=rsa-sha256; cv=none; b=RGqLzg2NzCz8WJ3tPfEt9A7xIF/AcMyzZSDl2rMr759umig9kXAeIJgzkzgUqmijoII9/G b91zye5FjHACq46giMZplOfCWgfOkoTM+aiWECD07XwtRze12UYQVObMcik4BvqMOlyJT5 /uGRJfHkcLRYjq9PnFNMJSukDpof70xQvd+iXE0dsMkpva2IO5EFYMgaFnygoU48APW85Z +fx8dObW3Uw6Ya2X28C1CePa9F6DEuuTn8rBI57SVuHXHsd5mZzZIDMHVyjLdUWvyXXD1C 3HPobwhCbzAuzGIVuYWK8SET5POlRdwG0tVx0h1ETttqxRfIblnnO07Ahq9NcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682938595; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3CAmowJ/sHzHJRK/4ssb4240R0htFH/n7pytgYUgU10=; b=rMwgwc0Qf5S3FCC2rsJ7Lq/sJ8Zxzqut4pLGsbV3k6kV5e92DhNJbas7jKlIYUH4NIMWqT FAzObI0agBPWvrGzBYsGr3/6FRc3wscgGeGSTvEX3KfY/MowicOoJP5AlnCS/KTYU3WSjE tzn4cgqwzt81nDZesXNgfXNMVp9DuC+NvT1NFZIYSrYe42AYEQG4CyAZmBv5oAc2kIyTQt HicIVCe3thi/2D9wpEM3b6H3L8VoiZm3jb2O4OHCNnY+X3f93CiMQoWPTAwm7QSMcLiCZ/ 28YMv2NctFV///Q/vUS/VJsUrEXb7NToWleElOsUPoBOO7vlLTqaps6IPCHNMw== X-Migadu-Spam-Score: -1.31 X-Spam-Score: -1.31 X-Migadu-Queue-Id: 1E98BE7C9 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: fs1jKQK1t+Xc On 12/03/2023 18:28, Ihor Radchenko wrote: > lux writes: > >> Ok, I'll undo this part of the changes first, and repost patch. >> From b48784a16c5806694498f072ffdd98e5a3c144b5 Mon Sep 17 00:00:00 2001 >> From: Xi Lu >> Date: Sat, 11 Mar 2023 18:53:37 +0800 >> Subject: [PATCH] * lisp/ob-latex.el: Fix command injection vulnerability > > Applied, onto bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a8006ea58 So the fix is included into org-mode-9.6.2. I just have noticed that it is tracked as a CVE record: https://www.cve.org/CVERecord?id=CVE-2023-28617 https://nvd.nist.gov/vuln/detail/CVE-2023-28617 CVE-2023-28617 org-babel-execute:latex in ob-latex.el in Org Mode through 9.6.1 for GNU Emacs allows attackers to execute arbitrary commands via a file name or directory name that contains shell metacharacters. Base Score: 7.8 HIGH