From nobody Tue Feb 21 11:37:23 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PLchg2ymrz3sFYk; Tue, 21 Feb 2023 11:37:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PLchg2SJWz445T; Tue, 21 Feb 2023 11:37:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676979443; h=from:from: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; bh=1ThvjZntoXKca7yoZrzkIIRJNMwatmmPZx3hKlKuq8o=; b=NdNakzZ2csw7OaI1gBYo7ErEMRr4EMOVjOzGVK2OciUcH0YKbFotse+fetyc7T4A+7n5zL jUJ3oHkqh0Ba8OkWeODOYWyOCo68CGS1prFc5hRqpNGr++8njJin83y7/5dnOoa8q9M+kN 0u7xq7oBcC/0w+SxZ1CA7b5iiUcbwvI20pUZRCeHGQXRobAvYX2WIk73OD3Lz72ytTmElq cBdNiICDKk/vi8pd9sngfhLJo8nwDaDhWYN9HLGg0GhX9q0B0QNBbpVdTpNtWo9KN1nALx t0m9WkRP4UosgBQph7ddzf2AKxTgt/KY7+e3yBvyw/6+s76CuyM0FpcIzEEnug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676979443; h=from:from: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; bh=1ThvjZntoXKca7yoZrzkIIRJNMwatmmPZx3hKlKuq8o=; b=SkT91HpjA3basxC2pL7V/r8K1cagQk+TThYtUbZHhwi3AD8FJ/YXPo7FmGq2yCMBxQnhMV fLd8sL7TI71Sz3a/MBYT6LpVYRAcLOq6XV6BwU8umZATvuujy6xBl4yBwmeuPnt8waUShf 264qDyR4VJ1+ecVgc5wLdFimebQr0MM81PSBp9IaL52AqDBpJiUHaLpcAcxLPSXDKnonOr qWSAZ1OvYdYCNLJ1glBmIlT/saixd+YisIeSRiMFYPutyZ0+iOEyDvO+s9Bqi+U0bjb0Yb /tPfrG8PJty4Fau9W+keCIYHT27en1va6ErQNDoKqT45Q92vW97TrlPlxrrmEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676979443; a=rsa-sha256; cv=none; b=rLcQC/SjN19uYDypzKGVyVdJdeoaj2tF7GP8DpYuErz/G+anFoQfhO0/Hw/BqMVCJesJbm ESlo/Ar/QaBsKm+nmBOClCIJna8CZMYNXMnk/2220ZxEIp+UYNO9d+Pcnfm+FvFcdbr0XJ ZzuFjoRcZeOkl9aZ0qUxAAKZ8XV/4k6F+b7f972k1dTyd/NaQZuPrjp1xcWqZEp3pJZv5i hmQgOwX2ISnjhr7uOD6ycMoQ9qSG+CBMQCWXcRmyt/8jjAl8kpr6RKaCZbhw6f4Qfh4vP1 D3Vq0nWcWIDh53OqeoVHgfVxVdL1Q+x1DeVW7uw3f8kZbNw5PRdhQ9JKvZtnGw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PLchg1P6qzKDH; Tue, 21 Feb 2023 11:37:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31LBbNwv008891; Tue, 21 Feb 2023 11:37:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31LBbN64008890; Tue, 21 Feb 2023 11:37:23 GMT (envelope-from git) Date: Tue, 21 Feb 2023 11:37:23 GMT Message-Id: <202302211137.31LBbN64008890@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Renato Botelho Subject: git: 945cff6a5672 - main - security/vuxml: Document recent git CVEs List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: garga X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 945cff6a567218c48af80522dcd17c2056186b65 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by garga: URL: https://cgit.FreeBSD.org/ports/commit/?id=945cff6a567218c48af80522dcd17c2056186b65 commit 945cff6a567218c48af80522dcd17c2056186b65 Author: Renato Botelho AuthorDate: 2023-02-21 11:34:11 +0000 Commit: Renato Botelho CommitDate: 2023-02-21 11:37:19 +0000 security/vuxml: Document recent git CVEs Document CVEs fixed by devel/git 2.39.1 and 2.39.2: CVE-2022-41903 CVE-2022-23521 CVE-2023-22490 CVE-2023-23946 PR: 269655 Sponsored by: Rubicon Communications, LLC ("Netgate") --- security/vuxml/vuln/2023.xml | 146 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) diff --git a/security/vuxml/vuln/2023.xml b/security/vuxml/vuln/2023.xml index 1e615fedfde9..3d223b5b546b 100644 --- a/security/vuxml/vuln/2023.xml +++ b/security/vuxml/vuln/2023.xml @@ -1,3 +1,149 @@ + + git -- "git apply" overwriting paths outside the working tree + + + git + 2.39.2 + + + + +

git team reports:

+
+

By feeding a crafted input to "git apply", a path outside the + working tree can be overwritten as the user who is running "git + apply".

+
+ +
+ + CVE-2023-23946 + https://github.blog/2023-02-14-git-security-vulnerabilities-announced-3/#cve-2023-23946 + + + 2023-02-14 + 2023-02-21 + +
+ + + git -- Local clone-based data exfiltration with non-local transports + + + git + 2.39.2 + + + + +

git team reports:

+
+

Using a specially-crafted repository, Git can be tricked into using + its local clone optimization even when using a non-local transport. + Though Git will abort local clones whose source $GIT_DIR/objects + directory contains symbolic links (c.f., CVE-2022-39253), the objects + directory itself may still be a symbolic link.

+ +

These two may be combined to include arbitrary files based on known + paths on the victim's filesystem within the malicious repository's + working copy, allowing for data exfiltration in a similar manner as + CVE-2022-39253.

+
+ +
+ + CVE-2023-22490 + https://github.blog/2023-02-14-git-security-vulnerabilities-announced-3/#cve-2023-22490 + + + 2023-02-14 + 2023-02-21 + +
+ + + git -- gitattributes parsing integer overflow + + + git + 2.39.1 + + + + +

git team reports:

+
+

gitattributes are used to define unique attributes corresponding + to paths in your repository. These attributes are defined by + .gitattributes file(s) within your repository.

+ +

The parser used to read these files has multiple integer + overflows, which can occur when parsing either a large number + of patterns, a large number of attributes, or attributes with + overly-long names.

+ +

These overflows may be triggered via a malicious + .gitattributes file. However, Git automatically splits lines at + 2KB when reading .gitattributes from a file, but not when parsing + it from the index. Successfully exploiting this vulnerability + depends on the location of the .gitattributes file in question.

+ +

This integer overflow can result in arbitrary heap reads + and writes, which may result in remote code execution.

+
+ +
+ + CVE-2022-23521 + https://github.blog/2023-01-17-git-security-vulnerabilities-announced-2/#cve-2022-23521 + + + 2023-01-17 + 2023-02-21 + +
+ + + git -- Heap overflow in `git archive`, `git log --format` leading to RCE + + + git + 2.39.1 + + + + +

The git team reports:

+
+

git log has the ability to display commits using an arbitrary + format with its --format specifiers. This functionality is also + exposed to git archive via the export-subst gitattribute.

+

When processing the padding operators (e.g., %<(, %<|(, + %>(, %>>(, or %><( ), an integer overflow can occur in + pretty.c::format_and_pad_commit() where a size_t is improperly + stored as an int, and then added as an offset to a subsequent + memcpy() call.

+

This overflow can be triggered directly by a user running a + command which invokes the commit formatting machinery (e.g., git + log --format=...). It may also be triggered indirectly through + git archive via the export-subst mechanism, which expands format + specifiers inside of files within the repository during a git + archive.

+

This integer overflow can result in arbitrary heap writes, which + may result in remote code execution.

+
+ +
+ + CVE-2022-41903 + https://github.blog/2023-01-17-git-security-vulnerabilities-announced-2/#cve-2022-41903 + + + 2023-01-17 + 2023-02-21 + +
+ gitea -- password hash quality