Skip to contentSkip to conversation

go: Fix CVE-2024-24789

PATCH New ssambu 1 participant 1 message Aug 1, 2024

lore
Share & tools
lore

ssambu

author
#0 lore raw

PATCH 1/1 go: Fix CVE-2024-24789

From: Soumya Sambu <[email protected]>

The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations. This misalignment could be exploited to create an zip file with contents that vary depending on the implementation reading the file. The archive/zip package now rejects files containing these errors.

References:
https://nvd.nist.gov/vuln/detail/CVE-2024-24789

Upstream-patch:
https://github.com/golang/go/commit/c8e40338cf00f3c1d86c8fb23863ad67a4c72bcc

---
 meta/recipes-devtools/go/go-1.17.13.inc       |  1 +
 .../go/go-1.21/CVE-2024-24789.patch           | 78 +++++++++++++++++++
 2 files changed, 79 insertions(+)
 create mode 100644 meta/recipes-devtools/go/go-1.21/CVE-2024-24789.patch
meta/recipes-devtools/go/go-1.17.13.inc +1 -0
index 95fb572362..e83c4dfa80 100644
@@ -56,6 +56,7 @@ SRC_URI += "\
     file://CVE-2024-24784.patch \
     file://CVE-2024-24785.patch \
     file://CVE-2023-45288.patch \
+    file://CVE-2024-24789.patch \
 "
 SRC_URI[main.sha256sum] = "a1a48b23afb206f95e7bbaa9b898d965f90826f6f1d1fc0c1d784ada0cd300fd"
 
meta/recipes-devtools/go/go-1.21/CVE-2024-24789.patch new file +78 -0

78 lines not on this page · raw message

Signature · 1 line
2.40.0