CVE-2024-24789: Vulnerability in stdlib package's handling of invalid zip files

golang-1.15 Updated 02 Oct 2025

Summary

05/06/2024
N/A
No i
Medium
5.5

CVE-2024-24789: The archive/zip package's handling of certain types of invalid zip files differs from the behavior of most zip implementations. Affects golang-1.15 versions < 48103d97a84d549b44bc4764df6958f73ba5ee02. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The stdlib package is a standard library in the Go programming language that provides a collection of packages for various functionalities. It includes the archive/zip package, which allows for the creation and extraction of zip files. This vulnerability specifically affects the handling of certain types of invalid zip files in the archive/zip package.

Vulnerability Detail

The archive/zip package in the stdlib package has a different behavior when handling certain types of invalid zip files compared to most zip implementations. This misalignment can be exploited to create a zip file with contents that vary depending on the implementation reading the file. This could lead to unexpected behavior or security vulnerabilities in applications that rely on the archive/zip package.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The stdlib package's archive/zip package has a vulnerability in handling certain types of invalid zip files. It is recommended to update to the fixed versions (1.21.11 or 1.22.4) to mitigate any potential risks. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for golang-1.15 →

Share this vulnerability

FAQ

This vulnerability can lead to unexpected behavior or security vulnerabilities in applications that use the archive/zip package from the stdlib package.

No, only versions 1.18.2 and below are affected. Versions 1.21.11 and 1.22.4 have been fixed.

The details of remote exploitation are not mentioned in the vulnerability report. However, it is advisable to update to the fixed versions to mitigate any potential risks.

There is no information provided about any known instances of this vulnerability being exploited.

More information about this vulnerability can be found in the official NIST National Vulnerability Database (NVD) report: https://nvd.nist.gov/vuln/detail/cve-2024-24789

Related vulnerabilities

Recent vulnerabilities recorded for golang-1.15.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback