{"id":"CVE-2022-31072","published":"2022-06-15T22:35:10Z","modified":"2025-04-23T18:11:25Z","title":"Octokit gem published with world-writable files","vendor":"octokit","product":"octokit.rb","tier":"tail","description":{"text":"Octokit is a Ruby toolkit for the GitHub API. Versions 4.23.0 and 4.24.0 of the octokit gem were 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 Octokit 4.25.0. Two workarounds are available. Users can use the previous version of the gem, v4.22.0. Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00255,"percentile":0.17437,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/octokit/octokit.rb/security/advisories/GHSA-g28x-pgr3-qqx6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/octokit/octokit.rb/commit/1c8edecc9cf23d1ceb959d91a416a69f55ce7d55","tags":["x_refsource_MISC"]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":3.49},{"name":"CVSS severity","points":1.75}]},"vendorSlug":"octokit","affectedVersions":[{"vendor":"octokit","product":"octokit.rb","versions":[">= 4.23.0, < 4.25.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:05:08.184998Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"octokit","vulnerableRanges":[">=4.23.0, <4.25.0"],"patched":["4.25.0"],"from":["GHSA-g28x-pgr3-qqx6"],"provenance":"source"}],"summary":{"text":"The Octokit Ruby gem, specifically the octokit.rb product, was published in versions 4.23.0 and 4.24.0 with world-writable files (permissions 0666 rather than 0644), which lets any non-owner user on a system where it is installed modify those files. An attacker needs local access to a host with the affected gem installed and a low-privileged account on it, and no user interaction or configuration change is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:31Z"},"euvd":{"id":"EUVD-2022-6044","exploited":false,"provenance":"source"}}