CVE-2022-31071 json
Octopoller gem published with world-writable files
published 4y ago modified 4mo ago also GHSA-26qj-cr27-r5c4 , EUVD-2022-5885
- cvss
- 2.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
Octopoller is a micro gem for polling and retrying. Version 0.2.0 of the octopoller gem was 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 Octopoller 0.3.0. Two workarounds are available. Users can use the previous version of the gem, v0.1.0. Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version.
Patch / fix
Is CVE-2022-31071 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-09).
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 | octopoller | >=0.2.0, <0.3.0 |
0.3.0 |
Affected products
- octokit octopoller.rb
Classification
- Weakness
-
- CWE-276 Incorrect Default Permissions
References
-
github.com
/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874
web, patch, third-party-advisory
-
github.com
/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31071
advisory
-
github.com
/octokit/octopoller
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/octopoller/CVE-2022-31071.yml
web
Sources
- CVE List CVE-2022-31071
- GitHub Advisory GHSA-26qj-cr27-r5c4
- NVD CVE-2022-31071
Fencer Intel 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.