From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.devel,gmane.comp.security.oss.general Subject: Re: Is CVE-2024-30203 bogus? Date: Mon, 8 Apr 2024 23:55:35 +0700 Message-ID: <26cd87ab-a547-4070-b20f-f7fd7ed1a04e@gmail.com> References: <874jccjpvy.fsf@melete.silentflame.com> <865xwsythg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5377"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: yantar92@posteo.net, emacs@packages.debian.org, emacs-devel@gnu.org, oss-security@lists.openwall.com To: Eli Zaretskii , Sean Whitton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 08 18:56:29 2024 Return-path: Envelope-to: ged-emacs-devel@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 1rtsIF-0001B3-VC for ged-emacs-devel@m.gmane-mx.org; Mon, 08 Apr 2024 18:56:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtsHX-0004i6-VQ; Mon, 08 Apr 2024 12:55:43 -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 1rtsHW-0004go-I3 for emacs-devel@gnu.org; Mon, 08 Apr 2024 12:55:42 -0400 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rtsHU-0003e2-Oh; Mon, 08 Apr 2024 12:55:42 -0400 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-516cbf3fd3dso5407699e87.2; Mon, 08 Apr 2024 09:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712595337; x=1713200137; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=DkQ1iwgzS33JwJy5PJMn4qAk7a1+FRawmCAlpYjswY4=; b=MRok+oMomDojhs27heXUW8JC4jNCXfN8wdIkQOkIkHU22Qf2VzdkCW3xCc05GeUmJb AKhOSgsPqmOT4DXTRn2mingrxh5AY41Fi5KlDA87lzarPwr+BviryQaVL5sTQeoz9+CB KQpQVm0XhLnFjkEJDDIx2iG2w/uI5Fby9vTAcp7tO73RgEjJ6dVI7BnbS+lGng584iAZ rjDtkTtEOq6A8F92U11z9esEBc3wGOlZrQXtSc9X2jYd7fQf7xyFkYFr8+lS53B3URdN W2wRMzVC2cnMryDCy8i0gg43vPOIiwkKnsUz/ioP5vZmMhrXpqAz03FBzONf7RRQ15mv piWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712595337; x=1713200137; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DkQ1iwgzS33JwJy5PJMn4qAk7a1+FRawmCAlpYjswY4=; b=C6LDISbaFq/OX1c+KPVDxlpIoFHTGOA7Fo57/TO/kt1Mi5ub8HitHuqUtbt8ji74FQ VM3L83M8Pf1x5A2/YVn3tzZIW00VaVM3Yk6/tYU4oe7EbLjI4eeGn35Y2YvoHNz+QA4L 1pq5Qidd/s3qKptqAJuR43Bvn2wGhQd+ie9h27OS1kI6k8S8HhXJrFfw8/IMJM/zjdeU ADTeXW3VCX6IljrNe/9SCQYWyk4Ydrt1jMWwyO/YpSF6nexfETOJPtODk9JAM4ADUgXL wX3801ARJhdv5CEH+kzdKT9ksLhtOiaaT+s5uYsLr7pdQ0rUxNgU5T9UEzUQO0j1Kipk kD0A== X-Forwarded-Encrypted: i=1; AJvYcCUOQdhD3zFgtlH+mZX638aOgjVg8zHTuDDJsTgX39Xbcbk+agl8ddYyQD5dWvKJw4w4rxACJQvvIfyZYKKGuMmw/Aog X-Gm-Message-State: AOJu0YyEl08mHYpQk40hAXbQd8x/GT35hnX69OAV+JwA1yHBSjMUtyo7 v779BCx6bq/Ckl1mKB1GHxx0BuYkyMN/QdEnquynm40/oR7splZvt4y/BhxdeRk= X-Google-Smtp-Source: AGHT+IHGyIZtwFH2LNAC9M0SR6vXEvKKl9nOZFcbAk+A/PrZGtmzA3avSShS46NuXhzKh/v/BIhTSg== X-Received: by 2002:ac2:5e91:0:b0:513:13eb:c99b with SMTP id b17-20020ac25e91000000b0051313ebc99bmr7315583lfq.62.1712595337055; Mon, 08 Apr 2024 09:55:37 -0700 (PDT) Original-Received: from [192.168.0.102] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id r13-20020a19ac4d000000b005131c5285f8sm1227231lfc.107.2024.04.08.09.55.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 09:55:36 -0700 (PDT) Content-Language: en-US, ru-RU In-Reply-To: <865xwsythg.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=manikulin@gmail.com; helo=mail-lf1-x131.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:317615 gmane.comp.security.oss.general:30086 Archived-At: On 08/04/2024 18:38, Eli Zaretskii wrote: >> From: Sean Whitton Date: Mon, 08 Apr 2024 15:05:21 +0800 >> >> - CVE-2024-30203 is just bogus, based on a misunderstanding by the CVEs >> assigner of exactly what the vulnerabilities were >> >> - CVE-2024-30203 is legitimate, and we have only fixed one possible way >> in which Gnus treats inline MIME content as trusted. >> >> I think it's the first one -- can you confirm? > > I'm not Ihor, but I cannot agree with you. Those changes fixed two > problems, not one: both the fact that by default MIME attachments are > treated in a way that can execute arbitrary code, and the fact that > maliciously-constructed LaTeX attachment could exhaust all free space > on your disk. Arbitrary code execution bug is neither CVE-2024-30203 nor CVE-2024-30204, it is CVE-2024-30202 "In Emacs before 29.3, arbitrary Lisp code is evaluated as part of turning on Org mode. This affects Org Mode before 9.6.23." and it is fixed by - https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-29&id=befa9fcaae29a6c9a283ba371c3c5234c7f644eb - https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=003ddacf1c8d869b1858181c29ea21b731a8d8d9 2024-02-20 12:19:46 +0300 Ihor Radchenko: org-macro--set-templates: Prevent code evaluation This commit fully covers both scenarios: - inline preview for attachments in Gnus, - a text file (not necessary having .org suffix) opened in Emacs directly. I hope, rare users have Org mode or TeX engine configuration allowing execution of arbitrary shell commands during generation of LaTeX preview. The commits mentioned by Sean suppress a kind of DoS (attempt to exhaust disk space or inodes allocated for /tmp) through LaTeX preview for email attachments. (There is no reasonable way to address the case when a malicious file is opened in Emacs.)