cve.bz

CVE-2022-47318 Code Injection

8.0 highEPSS 1.5%Fix available

High (8.0). EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in git 1.13.0.

On this page
ruby-git versions prior to v1.13.0 allows a remote authenticated attacker to execute an arbitrary ruby code by having a user to load a repository containing a specially crafted filename to the product. This vulnerability is different from CVE-2022-46648.

Severity

CVSS 3.1

8.0 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
1.5% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-04-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code 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-47318 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-47318?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-47318?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-47318 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
ruby-git_project:ruby-gitbefore 1.13.0
debian:debian_linux10.0
fedoraproject:fedora37

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pphf-gfrm-v32rRubyGemsgit<1.13.01.13.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10ruby-git1.2.8-1+deb10u1DLA-3303-1
Debian11ruby-git1.7.0-1+deb11u1DLA-4406-1
Debian12, 13, 14ruby-git1.13.1-1DEBIAN-CVE-2022-47318
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 1 moreruby-gitno fix listedUBUNTU-CVE-2022-47318
Red Hatsatellite:6.11::el7foreman, foreman-cli, foreman-ec2 and 11 more0:3.1.1.27-1.el7satRHSA-2023:5980
Red Hatsatellite:6.11::el7tfm-rubygem-git0:1.18.0-0.1.el7satRHSA-2023:5980
Red Hatsatellite:6.11::el7yggdrasil-worker-forwarder0:0.0.3-1.el7satRHSA-2023:5980
Red Hatsatellite:6.11::el7, satellite_capsule:6.11::el7puppet-agent0:7.26.0-3.el7satRHSA-2023:5980
Red Hatsatellite:6.11::el8foreman, foreman-cli, foreman-ec2 and 11 more0:3.1.1.27-1.el8satRHSA-2023:5980
Red Hatsatellite:6.11::el8rubygem-git0:1.18.0-0.1.el8satRHSA-2023:5980
Red Hatsatellite:6.11::el8yggdrasil-worker-forwarder0:0.0.3-1.el8satRHSA-2023:5980
Red Hatsatellite:6.11::el8, satellite_capsule:6.11::el8puppet-agent0:7.26.0-3.el8satRHSA-2023:5980
Red Hatsatellite:6.12::el8rubygem-git0:1.18.0-1.el8satRHSA-2023:5979
Red Hatsatellite:6.12::el8rubygem-safemode0:1.3.8-1.el8satRHSA-2023:5979
Red Hatsatellite:6.12::el8yggdrasil-worker-forwarder0:0.0.3-1.el8satRHSA-2023:5979
Red Hatsatellite:6.12::el8, satellite_capsule:6.12::el8puppet-agent0:7.26.0-3.el8satRHSA-2023:5979
30 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Satellite 6.11 for RHEL 7tfm-rubygem-git-0:1.18.0-0.1.el7satFixed 2023-10-20RHSA-2023:5980
Red Hat Satellite 6.11 for RHEL 8tfm-rubygem-git-0:1.18.0-0.1.el8satFixed 2023-10-20RHSA-2023:5980
Red Hat Satellite 6.12 for RHEL 8tfm-rubygem-git-0:1.18.0-1.el8satFixed 2023-10-20RHSA-2023:5979
Red Hat Satellite 6.13 for RHEL 8tfm-rubygem-git-0:1.18.0-1.el8satFixed 2023-10-19RHSA-2023:5931
Red Hat Satellite 6.14 for RHEL 8tfm-rubygem-git-0:1.18.0-1.el8satFixed 2023-11-08RHSA-2023:6818

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-47318.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

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

References

Check your stackJSON