CVE-2024-24789: Vulnerability in stdlib package's handling of invalid zip files
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.