CVE-2022-25648: Command Injection

Published Apr 13, 2022
·
Updated

A flaw was found in ruby-git, where the package is vulnerable to command injection via the git argument. This flaw allows an attacker to set additional flags, which leads to performing command injections.

Other sources

The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. When calling the fetch(remote = 'origin', opts = {}) function, the remote parameter is passed to the git fetch subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.

Affected Software

8 affected componentsFixes available
redhat/rubygem-git<0:1.11.0-1.el8
0:1.11.0-1.el8
redhat/ruby-git<1.11.0
1.11.0
Git Git Ruby<1.11.0
Fedoraproject Extra Packages For Enterprise Linux=8.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Debian Debian Linux=10.0

Event History

Apr 13, 2022
CVE Published
12:00 AM
Apr 19, 2022
CVE Published
via MITRE·04:35 PM
Data Sourced
via MITRE·04:35 PM
DescriptionSeverityWeakness
Apr 20, 2022
Data Sourced
via Red Hat·04:31 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this flaw?

The vulnerability ID for this flaw is CVE-2022-25648.

2

What is the severity level of CVE-2022-25648?

The severity level of CVE-2022-25648 is critical with a severity value of 9.8.

3

How does this vulnerability occur?

This vulnerability occurs due to command injection via the git argument injection in the ruby-git package.

4

What is the affected software?

The affected software includes versions before 1.11.0 of the ruby-git package, versions before 0:1.11.0-1.el8 of the rubygem-git package, Git Git versions up to 1.11.0, Extra Packages For Enterprise Linux 8.0, Fedora versions 34, 35, and 36, and Debian Debian Linux 10.0.

5

How can I fix CVE-2022-25648?

To fix CVE-2022-25648, update the ruby-git package to version 1.11.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203