-
Notifications
You must be signed in to change notification settings - Fork 819
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
dsnet/compress package causes import of vulnerable ulikunitz/xz v0.5.6 #1226
Comments
Thanks for reaching out! Can you share a link to the DOS attack? Is there a CVE? We do actually have a direct dependency on it in our stack: vendor/github.com/containers/image/v5/pkg/compression/compression.go I think we can easily bump it in containers/image. |
The main branch is already on github.com/ulikunitz/xz v0.5.9 and c/image main is on v0.5.10. |
Hey @vrothberg, CWE-400 and CVE-2020-16845. Yes the direct dependencies have been updated, but the dependency on dsnet/compress:0.0.1 is indirect (via image-tools), and is still pulling in xz.
My PR over in dsnet/compress has been merged, so can we update to the latest commit on master? See #1228 |
Doesn't this only state that So I don't think Skopeo is affected by the CVEs, see below:
|
@vrothberg my mistake, sorry about that. You're totally right, there's only going to be one version. Although I'm confused as to why the older version ends up in the Regardless, vulnerability scanning tools such as Snyk are fooled by this as well, so the PR you merged should stop skopeo being flagged with these vulnerabilities. |
No worries at all. Better safe than sorry and it's super kind of you to fix the issue right away. I mostly wanted to make sure that Skopeo is not impacted to prevent users (and us) from worrying :) |
ulikunitz/xz v0.5.6 is vulnerable to a denial of service attack fixed in v0.5.8. This package is introduced into skopeo via dsnet/compress. This package is introduced via
opencontainers/image-tools
:Unfortunately, both
dsnet/compress
andopencontainers/image-tools
seem pretty light on the releases of late.opencontainers/image-tools
has been superseded byopencontainers/umoci
, however that package doesn't seem to do the verification of OCI images that skopeo usesimage-tools
for.dsnet/compress seems to be the only bz2 encoder for golang that's around, and the author seems to have had a hard time getting bz2 encoding into the go standard library. I've raised a PR there (dsnet/compress#70) to update xz, so if that's merged we may be able to use a replace directive to use an updated version of dsnet/compress.
The text was updated successfully, but these errors were encountered: