Skip to content
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

OCPBUGS-15068 CVE-2022-21235 github.com/Masterminds/vcs command inj #681

Conversation

rwsu
Copy link
Contributor

@rwsu rwsu commented Jun 30, 2023

The package github.com/masterminds/vcs before 1.13.3 are vulnerable to Command Injection via argument injection. When hg is executed, argument strings are passed to hg in a way that additional flags can be set. The additional flags can be used to perform a command injection.

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2215317
Additional References:

@openshift-ci openshift-ci bot requested review from eranco74 and sagidayan June 30, 2023 16:32
@openshift-ci openshift-ci bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 30, 2023
@rwsu rwsu changed the title OCPBUGS-15068 CVS-2022-21235 github.com/Masterminds/vcs command inj OCPBUGS-15068 CVE-2022-21235 github.com/Masterminds/vcs command inj Jun 30, 2023
The package github.com/masterminds/vcs before 1.13.3 are vulnerable
to Command Injection via argument injection. When hg is executed,
argument strings are passed to hg in a way that additional flags
can be set. The additional flags can be used to perform a command
injection.

BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2215317
Additional References:
* Masterminds/vcs#105
* https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
@rwsu rwsu force-pushed the ocpbugs-15068-release-4.11 branch from d32e23f to 22d6156 Compare June 30, 2023 16:34
@openshift-ci
Copy link

openshift-ci bot commented Jun 30, 2023

@rwsu: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@CrystalChun
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 5, 2023
@carbonin
Copy link
Member

carbonin commented Jul 6, 2023

/approve

@openshift-ci
Copy link

openshift-ci bot commented Jul 6, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin, CrystalChun, rwsu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 6, 2023
@openshift-merge-robot openshift-merge-robot merged commit 14b1b38 into openshift:release-4.11 Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants