gsd-2022-47318
Vulnerability from gsd
Modified
2023-01-17 00:00
Details
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.
Aliases



{
  "GSD": {
    "alias": "CVE-2022-47318",
    "id": "GSD-2022-47318"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "git",
            "purl": "pkg:gem/git"
          }
        }
      ],
      "aliases": [
        "CVE-2022-47318",
        "GHSA-pphf-gfrm-v32r"
      ],
      "details": "ruby-git versions prior to v1.13.0 allows a remote authenticated attacker\nto execute an arbitrary ruby code by having a user to load a repository containing\na specially crafted filename to the product. This vulnerability is different from\nCVE-2022-46648.\n",
      "id": "GSD-2022-47318",
      "modified": "2023-01-17T00:00:00.000Z",
      "published": "2023-01-17T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/ruby-git/ruby-git/pull/602"
        },
        {
          "type": "WEB",
          "url": "https://jvn.jp/en/jp/JVN16765254/index.html"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 8.0,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Code injection in ruby git"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "vultures@jpcert.or.jp",
        "ID": "CVE-2022-47318",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "ruby-git",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "versions prior to v1.13.0"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "ruby-git"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "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."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "Code injection"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/ruby-git/ruby-git",
            "refsource": "MISC",
            "url": "https://github.com/ruby-git/ruby-git"
          },
          {
            "name": "https://github.com/ruby-git/ruby-git/pull/602",
            "refsource": "MISC",
            "url": "https://github.com/ruby-git/ruby-git/pull/602"
          },
          {
            "name": "https://jvn.jp/en/jp/JVN16765254/index.html",
            "refsource": "MISC",
            "url": "https://jvn.jp/en/jp/JVN16765254/index.html"
          },
          {
            "name": "FEDORA-2023-e3985c2b3b",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4KPFLSZPUM7APWVBRM5DCAY5OUVQBF4K/"
          },
          {
            "name": "[debian-lts-announce] 20230130 [SECURITY] [DLA 3303-1] ruby-git security update",
            "refsource": "MLIST",
            "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2022-47318",
      "cvss_v3": 8.0,
      "date": "2023-01-17",
      "description": "ruby-git versions prior to v1.13.0 allows a remote authenticated attacker\nto execute an arbitrary ruby code by having a user to load a repository containing\na specially crafted filename to the product. This vulnerability is different from\nCVE-2022-46648.\n",
      "gem": "git",
      "ghsa": "pphf-gfrm-v32r",
      "patched_versions": [
        "\u003e= 1.13.0"
      ],
      "related": {
        "url": [
          "https://jvn.jp/en/jp/JVN16765254/index.html"
        ]
      },
      "title": "Code injection in ruby git",
      "url": "https://github.com/ruby-git/ruby-git/pull/602"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c1.13.0",
          "affected_versions": "All versions before 1.13.0",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2023-01-31",
          "description": "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.",
          "fixed_versions": [
            "1.13.0"
          ],
          "identifier": "CVE-2022-47318",
          "identifiers": [
            "CVE-2022-47318"
          ],
          "not_impacted": "All versions starting from 1.13.0",
          "package_slug": "gem/git",
          "pubdate": "2023-01-17",
          "solution": "Upgrade to version 1.13.0 or above.",
          "title": "Improper Control of Generation of Code (\u0027Code Injection\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-47318",
            "https://github.com/ruby-git/ruby-git/pull/602",
            "https://github.com/ruby-git/ruby-git",
            "https://jvn.jp/en/jp/JVN16765254/index.html"
          ],
          "uuid": "d35a64d7-bf44-4e77-b4ee-d6026ccc7900"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:ruby-git_project:ruby-git:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndExcluding": "1.13.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          },
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "vultures@jpcert.or.jp",
          "ID": "CVE-2022-47318"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "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."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "NVD-CWE-noinfo"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/ruby-git/ruby-git/pull/602",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/ruby-git/ruby-git/pull/602"
            },
            {
              "name": "https://github.com/ruby-git/ruby-git",
              "refsource": "MISC",
              "tags": [
                "Product",
                "Third Party Advisory"
              ],
              "url": "https://github.com/ruby-git/ruby-git"
            },
            {
              "name": "https://jvn.jp/en/jp/JVN16765254/index.html",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://jvn.jp/en/jp/JVN16765254/index.html"
            },
            {
              "name": "FEDORA-2023-e3985c2b3b",
              "refsource": "FEDORA",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4KPFLSZPUM7APWVBRM5DCAY5OUVQBF4K/"
            },
            {
              "name": "[debian-lts-announce] 20230130 [SECURITY] [DLA 3303-1] ruby-git security update",
              "refsource": "MLIST",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00043.html"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.0,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 2.1,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2023-01-31T19:08Z",
      "publishedDate": "2023-01-17T10:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.