| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|---|---|
| github.com/codeclysm/extract | ≤ 2.2.0mọi phiên bản | |
| github.com/codeclysm/extract/v3 | ≤ 3.1.1mọi phiên bản | |
| github.com/codeclysm/extract/v4 | < 4.0.0 | 4.0.0 |
| extract | < 4.0.0 | 4.0.0 |
A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory.
Please use version 4.0.0 or later github.com/codeclysm/extract/v4. Any previous version is affected by the bug.
No knows workarounds.
/v4 from /v3If you're not using the extract.Extractor.FS interface, you will not face any breaking changes and upgrading should be as simple as changing the import to /v4. This should be the case for most of the userbase.
If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added:
type FS interface {
Link(string, string) error
MkdirAll(string, os.FileMode) error
OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
Symlink(string, string) error
// The following methods have been added in the /v4 interface:
Remove(path string) error
Stat(name string) (os.FileInfo, error)
Chmod(name string, mode os.FileMode) error
}
There should be no other breaking changes in the /v4 API.
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí