UNKNOWN Go

Unbounded memory consumption when reading headers in archive/tar

GO-2022-1037 · BIT-golang-2022-2879 · CVE-2022-2879

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.

Ready to move

Start Securing

Free, no credit card | First findings in minutes