GO-2024-2888

Source
https://pkg.go.dev/vuln/GO-2024-2888
Import Source
https://vuln.go.dev/ID/GO-2024-2888.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-2888
Aliases
Published
2024-06-04T22:48:55Z
Modified
2024-10-22T05:28:58.470910Z
Summary
Mishandling of corrupt central directory record in archive/zip
Details

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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2888"
}
References
Credits
    • Yufan You (@ouuan)

Affected packages

Go / stdlib

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.21.11
Introduced
1.22.0-0
Fixed
1.22.4

Ecosystem specific

{
    "imports": [
        {
            "path": "archive/zip",
            "symbols": [
                "NewReader",
                "OpenReader",
                "findSignatureInBlock"
            ]
        }
    ]
}