Live threats

All CVEs / Octokit Project

CVE-2022-31072Octokit Project Octokit

Low 3.3

Priority
20
CVSS 3.1
3.3
EPSS
0.3%
probability of exploitation in 30 days · percentile 11
Auth required
Yes
Published
Jun 15, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-276
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Octokit.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems octokit ≥ 4.23.0 < 4.25.0 4.25.0 gem "octokit", ">= 4.25.0"

Per OSV / GitHub Advisories (GHSA-g28x-pgr3-qqx6). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
octokit_projectoctokit4.23.0
octokit_projectoctokit4.24.0

Official sources

References

Links published by the sources. Open them with care.