CVE-2022-31072 json
Octokit gem published with world-writable files
published 2022-06-15 4 y ago modified 2026-06-17 4 mo ago also GHSA-g28x-pgr3-qqx6 , EUVD-2022-6044
- cvss
- 2.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 17%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 2.1 | AV:L/AC:L/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 2.5 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | octokit | >=4.23.0, <4.25.0 |
4.25.0 |
Affected products
- octokit octokit.rb
Classification
- Weakness
-
- CWE-276 Incorrect Default Permissions
References
-
github.com
/octokit/octokit.rb/commit/1c8edecc9cf23d1ceb959d91a416a69f55ce7d55
web, patch, third-party-advisory
-
github.com
/octokit/octokit.rb/security/advisories/GHSA-g28x-pgr3-qqx6
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31072
advisory
-
github.com
/octokit/octokit.rb
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/octokit/CVE-2022-31072.yml
web
Sources
- CVE List CVE-2022-31072
- GitHub Advisory GHSA-g28x-pgr3-qqx6
- NVD CVE-2022-31072
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.