CVE-2022-31072: octokit_project octokit Incorrect Default Permissions
Vulnerability summary
CVE-2022-31072 is a low (CVSS 3.3) Incorrect Default Permissions vulnerability in octokit_project octokit. EPSS estimates a 0.25% chance of exploitation in the next 30 days, higher than 15.4% of scored vulnerabilities.
Timeline
- 15-06-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 4 sources · 2 versions- CVE.orgCNA2.5LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated3.3LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated2.5LowCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
0.25%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
0.00 pp
From 0.25% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Octokit1 product
- octokit.rb≥ 4.23.0, < 4.25.0
Octokit_project1 product
- octokit4.23.0 | 4.24.0
RubyGems1 product
- octokit≥ 4.23.0, < 4.25.0
Ubuntu1 product
- ruby-octokitAll versions (No fix recorded)
4 vendors · 4 products
References
7 links- github.com/octokit/octokit.rb/security/advisories/GHSA-g28x-pgr3-qqx6X Refsource CONFIRMREPORTWEBThird Party Advisory
- github.com/octokit/octokit.rb/commit/1c8edecc9cf23d1ceb959d91a416a69f55ce7d55X Refsource MISCREPORTWEBPatchThird Party Advisory