git: 8a0ed132ec0b - main - security/vuxml: Add gzip's CVE-2022-1271

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 19 Apr 2022 14:58:50 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8a0ed132ec0b0374d6c897b5ee031015d89402c3

commit 8a0ed132ec0b0374d6c897b5ee031015d89402c3
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2022-04-19 14:34:44 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-04-19 14:56:44 +0000

    security/vuxml: Add gzip's CVE-2022-1271
    
    Arbitrary file write vulnerability.
    
    Security:       CVE-2022-1271
---
 security/vuxml/vuln-2022.xml | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/security/vuxml/vuln-2022.xml b/security/vuxml/vuln-2022.xml
index 8c9ab69156a8..52a5480e870e 100644
--- a/security/vuxml/vuln-2022.xml
+++ b/security/vuxml/vuln-2022.xml
@@ -1,3 +1,39 @@
+  <vuln vid="b019585a-bfea-11ec-b46c-b42e991fc52e">
+    <topic>zgrep -- arbitrary file write</topic>
+    <affects>
+      <package>
+	<name>gzip</name>
+	<range><lt>1.12</lt></range>
+      </package>
+    </affects>
+    <description>
+      <body xmlns="http://www.w3.org/1999/xhtml">
+	<p>RedHat reports:</p>
+	<blockquote cite="https://access.redhat.com/security/cve/cve-2022-1271">
+	  <p>An arbitrary file write vulnerability was found in GNU
+		gzip's zgrep utility. When zgrep is applied on the
+		attacker's chosen file name (for example, a crafted
+		file name), this can overwrite an attacker's content
+		to an arbitrary attacker-selected file. This flaw
+		occurs due to insufficient validation when processing
+		filenames with two or more newlines where selected
+		content and the target file names are embedded in
+		crafted multi-line file names. This flaw allows a
+		remote, low privileged attacker to force zgrep to
+		write arbitrary files on the system.</p>
+	</blockquote>
+      </body>
+    </description>
+    <references>
+      <cvename>CVE-2022-1271</cvename>
+      <url>https://bugzilla.redhat.com/show_bug.cgi?id=2073310</url>
+    </references>
+    <dates>
+      <discovery>2022-04-07</discovery>
+      <entry>2022-04-19</entry>
+    </dates>
+  </vuln>
+
   <vuln vid="2a314635-be46-11ec-a06f-d4c9ef517024">
     <topic>Nextcloud Calendar -- SMTP Command Injection</topic>
     <affects>