Skip to content

CVE-2022-31072 Octokit gem published with world-writable files

LowCVSS 3.3 EPSS 0.26% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

11 packages: 1 fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/ruby-octokit(Ubuntu 16.04) = 3.8.0-1; All versions No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 18.04) = 4.7.0-3; All versions No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 20.04) = 4.13.0+gh-1; = 4.13.0-1; = 4.15.0-1; = 4.16.0-1 +1 more No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 22.04) = 4.17.0-2; = 4.17.0-3; All versions No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 24.04) = 4.20.0-1; = 4.25.1-2; All versions No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 25.10) = 8.1.0-2; = 8.1.0-4; All versions No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 26.04) = 8.1.0-4; = 10.0.0-1; All versions No fix listed No fix yet
ubuntu/ruby-octokit(Ubuntu 26.10) = 10.0.0-1; All versions No fix listed No fix yet
rubygems octokit(RubyGems) = 4.23.0; = 4.24.0; >= 4.23.0, < 4.25.0 4.25.0 Fixed
octokit project octokit = 4.23.0; = 4.24.0 No fix listed Versions listed
octokit.rb = >= 4.23.0, < 4.25.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems octokit(RubyGems) >= 4.23.0, < 4.25.0 4.25.0
rubygems octokit(RubyGems) = 4.23.0 No fix listed
rubygems octokit(RubyGems) = 4.24.0 No fix listed
octokit.rb = >= 4.23.0, < 4.25.0 No fix listed
ubuntu/ruby-octokit(Ubuntu:22.04) All versions No fix listed
octokit project octokit = 4.23.0 No fix listed
octokit project octokit = 4.24.0 No fix listed
ubuntu/ruby-octokit(Ubuntu:24.04) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:26.04) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:26.10) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:16.04) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:16.04) = 3.8.0-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:18.04) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:18.04) = 4.7.0-3 No fix listed
ubuntu/ruby-octokit(Ubuntu:20.04) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:20.04) = 4.13.0-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:20.04) = 4.13.0+gh-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:20.04) = 4.15.0-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:20.04) = 4.16.0-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:22.04) = 4.17.0-2 No fix listed
ubuntu/ruby-octokit(Ubuntu:22.04) = 4.17.0-3 No fix listed
ubuntu/ruby-octokit(Ubuntu:24.04) = 4.20.0-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:24.04) = 4.25.1-2 No fix listed
ubuntu/ruby-octokit(Ubuntu:25.10) All versions No fix listed
ubuntu/ruby-octokit(Ubuntu:25.10) = 8.1.0-2 No fix listed
Show 4 more
ProductAffected versionsFixed in
ubuntu/ruby-octokit(Ubuntu:25.10) = 8.1.0-4 No fix listed
ubuntu/ruby-octokit(Ubuntu:26.10) = 10.0.0-1 No fix listed
ubuntu/ruby-octokit(Ubuntu:26.04) = 8.1.0-4 No fix listed
ubuntu/ruby-octokit(Ubuntu:26.04) = 10.0.0-1 No fix listed

References