-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archive/tar: malformed input causes panic in parsePAXRecord #40196
Comments
Code hasn't been touched in years, so probably been around for a while. Although, I was probably the one who introduced this bug. Ooops! |
Change https://golang.org/cl/243038 mentions this issue: |
This was also reported by Chijin Zhou of the Tencent Blade Team to [email protected] a few hours before OSS-Fuzz found it. We've not been considering panics in |
We didn't get to work on this for Go1.16, but I'll triage it for Go1.17 as early-in-cycle and if ready, we'll backport it. |
This PAX record is the offensive one |
I'll mail something for Go1.16. |
Change https://golang.org/cl/289629 mentions this issue: |
@gopherbot please backport this issue as it is a security problem and has existed since for the past 8 years as per https://codereview.appspot.com/6700047. |
Backport issue(s) opened: #44182 (for 1.14), #44183 (for 1.15). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/290649 mentions this issue: |
Change https://golang.org/cl/290650 mentions this issue: |
I'm not sure that this should be backported, per @FiloSottile's comment above ("We've not been considering panics in archive/... and image/... packages to be security issues"). |
I did read his comment, but:
|
We did not handle this as a security issue, so it should not be backported as a security patch. The decision on whether to backport it as a critical fix is for the @golang/release team, but if it was introduced 8 years ago it's not a regression, and if no one noticed it doesn't sound like a critical issue. |
Discovered by oss-fuzz, at https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24029. This is a slightly smaller reproducer.
cc @dsnet @dvyukov @FiloSottile
Reproduce:
Result:
Reproduces with tip, 1.14, and 1.13. I didn't try earlier.
The text was updated successfully, but these errors were encountered: