GSD-2022-31071

Vulnerability from gsd - Updated: 2022-06-15 00:00
Details
### Impact Version [0.2.0](https://rubygems.org/gems/octopoller/versions/0.2.0) of the octopoller gem was published containing world-writeable files. Specifically, the gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e. 0666) instead of `rw-r--r--` (i.e. 0644). This means everyone who is not the owner (Group and Public) with access to the instance where this release had been installed could modify the world-writable files from this gem. Malicious code already present and running on your machine, separate from this package, could modify the gem’s files and change its behavior during runtime. ### Patches * octopoller v0.3.0 ### Workarounds Users can use the previous version of the gem [v0.1.0](https://rubygems.org/gems/octopoller/versions/0.1.0). Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version.
Aliases

{
  "GSD": {
    "alias": "CVE-2022-31071",
    "description": "Octopoller is a micro gem for polling and retrying. Version 0.2.0 of the octopoller gem was published containing world-writeable files. Specifically, the gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e. 0666) instead of `rw-r--r--` (i.e. 0644). This means everyone who is not the owner (Group and Public) with access to the instance where this release had been installed could modify the world-writable files from this gem. This issue is patched in Octopoller 0.3.0. Two workarounds are available. Users can use the previous version of the gem, v0.1.0. Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version.",
    "id": "GSD-2022-31071"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "octopoller",
            "purl": "pkg:gem/octopoller"
          }
        }
      ],
      "aliases": [
        "CVE-2022-31071",
        "GHSA-26qj-cr27-r5c4"
      ],
      "details": "### Impact\n\nVersion [0.2.0](https://rubygems.org/gems/octopoller/versions/0.2.0)\nof the octopoller gem was published containing world-writeable files. Specifically,\nthe gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e.\n0666) instead of `rw-r--r--` (i.e. 0644).\n\nThis means everyone who is not the owner (Group and Public) with access to the\ninstance where this release had been installed could modify the world-writable\nfiles from this gem.\n\nMalicious code already present and running on your machine, separate from this\npackage, could modify the gem\u2019s files and change its behavior during runtime.\n\n### Patches\n* octopoller v0.3.0\n\n### Workarounds\nUsers can use the previous version of the gem [v0.1.0](https://rubygems.org/gems/octopoller/versions/0.1.0).\nAlternatively, users can modify the file permissions manually until they are able\nto upgrade to the latest version.\n",
      "id": "GSD-2022-31071",
      "modified": "2022-06-15T00:00:00.000Z",
      "published": "2022-06-15T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 2.5,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Octopoller gem published with world-writable files"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2022-31071",
        "STATE": "PUBLIC",
        "TITLE": "Octopoller gem published with world-writable files"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "octopoller.rb",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "= 0.2.0"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "octokit"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "Octopoller is a micro gem for polling and retrying. Version 0.2.0 of the octopoller gem was published containing world-writeable files. Specifically, the gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e. 0666) instead of `rw-r--r--` (i.e. 0644). This means everyone who is not the owner (Group and Public) with access to the instance where this release had been installed could modify the world-writable files from this gem. This issue is patched in Octopoller 0.3.0. Two workarounds are available. Users can use the previous version of the gem, v0.1.0. Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version."
          }
        ]
      },
      "impact": {
        "cvss": {
          "attackComplexity": "HIGH",
          "attackVector": "LOCAL",
          "availabilityImpact": "NONE",
          "baseScore": 2.5,
          "baseSeverity": "LOW",
          "confidentialityImpact": "NONE",
          "integrityImpact": "LOW",
          "privilegesRequired": "LOW",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N",
          "version": "3.1"
        }
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-276: Incorrect Default Permissions"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4",
            "refsource": "CONFIRM",
            "url": "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4"
          },
          {
            "name": "https://github.com/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874",
            "refsource": "MISC",
            "url": "https://github.com/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874"
          }
        ]
      },
      "source": {
        "advisory": "GHSA-26qj-cr27-r5c4",
        "discovery": "UNKNOWN"
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2022-31071",
      "cvss_v3": 2.5,
      "date": "2022-06-15",
      "description": "### Impact\n\nVersion [0.2.0](https://rubygems.org/gems/octopoller/versions/0.2.0)\nof the octopoller gem was published containing world-writeable files. Specifically,\nthe gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e.\n0666) instead of `rw-r--r--` (i.e. 0644).\n\nThis means everyone who is not the owner (Group and Public) with access to the\ninstance where this release had been installed could modify the world-writable\nfiles from this gem.\n\nMalicious code already present and running on your machine, separate from this\npackage, could modify the gem\u2019s files and change its behavior during runtime.\n\n### Patches\n* octopoller v0.3.0\n\n### Workarounds\nUsers can use the previous version of the gem [v0.1.0](https://rubygems.org/gems/octopoller/versions/0.1.0).\nAlternatively, users can modify the file permissions manually until they are able\nto upgrade to the latest version.\n",
      "gem": "octopoller",
      "ghsa": "26qj-cr27-r5c4",
      "patched_versions": [
        "\u003e= 0.3.0"
      ],
      "title": "Octopoller gem published with world-writable files",
      "unaffected_versions": [
        "!= 0.2.0"
      ],
      "url": "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "=0.2.0",
          "affected_versions": "Version 0.2.0",
          "cvss_v2": "AV:L/AC:L/Au:N/C:N/I:P/A:N",
          "cvss_v3": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
          "cwe_ids": [
            "CWE-1035",
            "CWE-276",
            "CWE-937"
          ],
          "date": "2022-06-27",
          "description": "Octopoller is a micro gem for polling and retrying. Version 0.2.0 of the octopoller gem was published containing world-writeable files. Specifically, the gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e. 0666) instead of `rw-r--r--` (i.e. 0644). This means everyone who is not the owner (Group and Public) with access to the instance where this release had been installed could modify the world-writable files from this gem. This issue is patched in Octopoller 0.3.0. Two workarounds are available. Users can use the previous version of the gem, v0.1.0. Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version.",
          "fixed_versions": [
            "0.3.0"
          ],
          "identifier": "CVE-2022-31071",
          "identifiers": [
            "CVE-2022-31071",
            "GHSA-26qj-cr27-r5c4"
          ],
          "not_impacted": "All versions before 0.2.0, all versions after 0.2.0",
          "package_slug": "gem/octopoller",
          "pubdate": "2022-06-15",
          "solution": "Upgrade to version 0.3.0 or above.",
          "title": "Incorrect Default Permissions",
          "urls": [
            "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4",
            "https://github.com/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874",
            "https://github.com/advisories/GHSA-26qj-cr27-r5c4"
          ],
          "uuid": "a3aed9e5-2fdc-411c-a0db-ba0357e8b8de"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:octopoller_project:octopoller:0.2.0:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security-advisories@github.com",
          "ID": "CVE-2022-31071"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "Octopoller is a micro gem for polling and retrying. Version 0.2.0 of the octopoller gem was published containing world-writeable files. Specifically, the gem was packed with files having their permissions set to `-rw-rw-rw-` (i.e. 0666) instead of `rw-r--r--` (i.e. 0644). This means everyone who is not the owner (Group and Public) with access to the instance where this release had been installed could modify the world-writable files from this gem. This issue is patched in Octopoller 0.3.0. Two workarounds are available. Users can use the previous version of the gem, v0.1.0. Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-276"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4"
            },
            {
              "name": "https://github.com/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "LOW",
            "accessVector": "LOCAL",
            "authentication": "NONE",
            "availabilityImpact": "NONE",
            "baseScore": 2.1,
            "confidentialityImpact": "NONE",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:L/AC:L/Au:N/C:N/I:P/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "LOW",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "LOCAL",
            "availabilityImpact": "NONE",
            "baseScore": 3.3,
            "baseSeverity": "LOW",
            "confidentialityImpact": "NONE",
            "integrityImpact": "LOW",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 1.8,
          "impactScore": 1.4
        }
      },
      "lastModifiedDate": "2022-06-27T18:17Z",
      "publishedDate": "2022-06-15T23: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 observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…