gsd-2022-25765
Vulnerability from gsd
Modified
2022-09-10 00:00
Details
The package pdfkit from version 0.0.0 through version 0.8.6 is vulnerable to Command Injection where the URL is not properly sanitized.
Aliases



{
  "GSD": {
    "alias": "CVE-2022-25765",
    "description": "The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized.",
    "id": "GSD-2022-25765"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "pdfkit",
            "purl": "pkg:gem/pdfkit"
          }
        }
      ],
      "aliases": [
        "CVE-2022-25765",
        "GHSA-rhwx-hjx2-x4qr"
      ],
      "details": "The package pdfkit from version 0.0.0 through version 0.8.6 is vulnerable\nto Command Injection where the URL is not properly sanitized.\n",
      "id": "GSD-2022-25765",
      "modified": "2022-09-10T00:00:00.000Z",
      "published": "2022-09-10T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58"
        },
        {
          "type": "WEB",
          "url": "https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb#L44-L50"
        },
        {
          "type": "WEB",
          "url": "https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 9.8,
          "type": "CVSS_V3"
        }
      ],
      "summary": "PDFKit vulnerable to Command Injection"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "report@snyk.io",
        "DATE_PUBLIC": "2022-09-09T05:00:01.722921Z",
        "ID": "CVE-2022-25765",
        "STATE": "PUBLIC",
        "TITLE": "Command Injection"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "pdfkit",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "\u003e=",
                          "version_value": "0.0.0"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "credit": [
        {
          "lang": "eng",
          "value": "Benoit C\u00f4t\u00e9-Jodoin"
        }
      ],
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "LOW",
          "attackVector": "NETWORK",
          "availabilityImpact": "LOW",
          "baseScore": 7.3,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "privilegesRequired": "NONE",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "Command Injection"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795",
            "refsource": "MISC",
            "url": "https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795"
          },
          {
            "name": "https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50",
            "refsource": "MISC",
            "url": "https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50"
          },
          {
            "name": "https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58",
            "refsource": "MISC",
            "url": "https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58"
          },
          {
            "name": "FEDORA-2022-6da143f1a2",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT/"
          },
          {
            "name": "FEDORA-2022-3ec8272e72",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD/"
          },
          {
            "name": "FEDORA-2022-c0d55cd527",
            "refsource": "FEDORA",
            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ/"
          },
          {
            "name": "http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html",
            "refsource": "MISC",
            "url": "http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2022-25765",
      "cvss_v3": 9.8,
      "date": "2022-09-10",
      "description": "The package pdfkit from version 0.0.0 through version 0.8.6 is vulnerable\nto Command Injection where the URL is not properly sanitized.\n",
      "gem": "pdfkit",
      "ghsa": "rhwx-hjx2-x4qr",
      "patched_versions": [
        "\u003e= 0.8.7.2"
      ],
      "related": {
        "url": [
          "https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb#L44-L50",
          "https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795"
        ]
      },
      "title": "PDFKit vulnerable to Command Injection",
      "url": "https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb#L55-L58"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003e=0.0.0",
          "affected_versions": "All versions",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2023-08-08",
          "description": "The package pdfkit from 0.0.0 is vulnerable to Command Injection where the URL is not properly sanitized.",
          "fixed_versions": [],
          "identifier": "CVE-2022-25765",
          "identifiers": [
            "CVE-2022-25765"
          ],
          "not_impacted": "",
          "package_slug": "gem/pdfkit",
          "pubdate": "2022-09-09",
          "solution": "Unfortunately, there is no solution available yet.",
          "title": "Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2022-25765",
            "https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50",
            "https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795",
            "https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58"
          ],
          "uuid": "dd756703-a2c1-4197-b967-2f92e4b8588a"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:pdfkit_project:pdfkit:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionStartIncluding": "0.0.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          },
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              },
              {
                "cpe23Uri": "cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "report@snyk.io",
          "ID": "CVE-2022-25765"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The package pdfkit from 0.0.0 are vulnerable to Command Injection where the URL is not properly sanitized."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-77"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "N/A",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/pdfkit/pdfkit/blob/master/lib/pdfkit/source.rb%23L44-L50"
            },
            {
              "name": "N/A",
              "refsource": "CONFIRM",
              "tags": [
                "Exploit",
                "Third Party Advisory"
              ],
              "url": "https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795"
            },
            {
              "name": "N/A",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/pdfkit/pdfkit/blob/46cdf53ec540da1a1a2e4da979e3e5fe2f92a257/lib/pdfkit/pdfkit.rb%23L55-L58"
            },
            {
              "name": "FEDORA-2022-6da143f1a2",
              "refsource": "FEDORA",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JFB2BFKH5SUGRKXMY6PWRQNGKZML7GDT/"
            },
            {
              "name": "FEDORA-2022-3ec8272e72",
              "refsource": "FEDORA",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ESWB6SX7HYWQ54UGBGQOZ7G24O6RAOKD/"
            },
            {
              "name": "FEDORA-2022-c0d55cd527",
              "refsource": "FEDORA",
              "tags": [
                "Mailing List",
                "Third Party Advisory"
              ],
              "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36GAV3TKM3JXV6UVMLMTTDRCPKSNETQ/"
            },
            {
              "name": "http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html",
              "refsource": "MISC",
              "tags": [],
              "url": "http://packetstormsecurity.com/files/171746/pdfkit-0.8.7.2-Command-Injection.html"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 5.9
        }
      },
      "lastModifiedDate": "2023-04-06T17:15Z",
      "publishedDate": "2022-09-09T05: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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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.


Loading…

Loading…