cve.bz

CVE-2022-21235 vcs project vcs: Argument Injection

9.8 criticalEPSS 1.6%Fix available

Critical (9.8) in vcs project vcs. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/Masterminds/vcs 1.13.2, 1.13.3.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21235?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21235?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21235 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vcs_project:vcsbefore 1.1.13

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6635-c626-vj4rGogithub.com/Masterminds/vcs<1.13.21.13.2
GO-2022-0414Gogithub.com/Masterminds/vcs<1.13.31.13.3

Red Hat

Red Hat rates this Important.

Red Hat's statement

In Red Hat OpenStack, the 'github.com/Masterminds/vcs' is a transitive dependency and is not used by operators directly which reduces the chances for successful exploitation. Hence, the impact for OpenStack is reduced to moderate.

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.11openshift4/ose-agent-installer-csr-approver-rhel8:v4.11.0-202307072028.p0.gaa46748.assembly.streamFixed 2023-07-19RHSA-2023:4053
Red Hat OpenStack Platform 16.2rhosp-rhel8/osp-director-operator:1.3.0-8Fixed 2023-08-22RHSA-2023:4694
Red Hat OpenStack Platform 17.1 for RHEL 9rhosp-rhel9/osp-director-agent:1.3.1-10Fixed 2023-08-16RHSA-2023:4582
OpenShift Developer Tools and ServiceshelmNot affected
OpenShift Serverlessopenshift-serverless-1/ingress-rhel8-operatorAffected
OpenShift Serverlessopenshift-serverless-1/knative-rhel8-operatorAffected
OpenShift Serverlessopenshift-serverless-1/serverless-rhel8-operatorAffected
Red Hat 3scale API Management Platform 2github-Masterminds-vcsNot affected
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-agent-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-manager-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-operator-bundle-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-operator-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-cluster-proxy-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-governance-policy-addon-controller-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-search-v2-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/acm-volsync-addon-controller-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-repo-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-channel-rhel9Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-subscription-rhel8Not affected
31 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21235.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON