CVE-2022-31072: Octokit is a Ruby toolkit for the GitHub API
CVE-2022-31072 is a low-severity flaw (CVSS 2.5) affecting octokit. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 thi
Why this priority
- No elevated risk signals yet
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 2.5 (Low) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.3% (top 83%) |
| CISA exploited list | No |
| Weakness | CWE-276 |
| Published | 2022-06-15 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31072?
octokit: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-31072 being exploited?
CVE-2022-31072 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31072 affect?
CVE-2022-31072 affects octokit. Severity is low (CVSS 2.5). 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
How urgent is CVE-2022-31072?
Priority 13/100. No elevated risk signals yet.
Software pages
GitHub vulnerabilities · Ruby vulnerabilities
Related CVEs
- CVE-2023-50728 MEDIUM 5.4 DOWNGRADE UPGRADE octokit/webhooks is a GitHub webhook events toolset for Node.js