Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. git
  4. ›
  5. CVE-2022-47318

CVE-2022-47318: Improper Control of Generation of Code ('Code Injection')

January 17, 2023 (updated November 7, 2023)

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.

References

  • github.com/ruby-git/ruby-git
  • github.com/ruby-git/ruby-git/pull/602
  • jvn.jp/en/jp/JVN16765254/index.html
  • nvd.nist.gov/vuln/detail/CVE-2022-47318

Code Behaviors & Features

Detect and mitigate CVE-2022-47318 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.13.0

Fixed versions

  • 1.13.0

Solution

Upgrade to version 1.13.0 or above.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

gem/git/CVE-2022-47318.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:05 +0000.