{"id":"CVE-2022-31071","aliases":["CVE-2022-31071","GHSA-26qj-cr27-r5c4"],"related":[],"kind":"vulnerability","state":"published","title":"Octopoller gem published with world-writable files","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nVersion [0.2.0](https://rubygems.org/gems/octopoller/versions/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). \n\nThis 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. \n\nMalicious code already present and running on your machine, separate from this package, could modify the gem’s files and change its behavior during runtime.\n\n### Patches\n* octopoller 0.3.0\n\n### Workarounds\nUsers can use the previous version of the gem [v0.1.0](https://rubygems.org/gems/octopoller/versions/0.1.0). Alternatively, users can modify the file permissions manually until they are able to upgrade to the latest version.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Octopoller es una micro gema para el sondeo y reintento. La versión 0.2.0 de la gema octopoller fue publicada conteniendo archivos de escritura mundial. Específicamente, la gema fue empaquetada con archivos que presentan sus permisos establecidos en \"-rw-rw-rw-\" (es decir, 0666) en lugar de \"rw-r--r--\" (es decir, 0644). Esto significa que cualquier persona que no sea el propietario (Grupo y Público) con acceso a la instancia donde se ha instalado esta versión podría modificar los archivos escribibles por el mundo desde esta gema. Este problema está parcheado en Octopoller versión 0.3.0. Se presentan dos mitigaciones disponibles. Los usuarios pueden usar la versión anterior de la gema, v0.1.0. Alternativamente, los usuarios pueden modificar los permisos de los archivos manualmente hasta que puedan actualizar a la última versión","source":"nvd"}],"published":"2022-06-15T21:24:14.000Z","modified":"2026-06-17T04:44:44.023Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":2.5,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":2.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","score":2.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.3,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","score":2.1,"rating":"LOW"}],"cwes":["CWE-276"],"affected":[{"ranges":[{"version":"= 0.2.0","status":"affected"}],"vendor":"octokit","product":"octopoller.rb","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.2.0","status":"affected","fixed":"0.3.0"}],"ecosystem":"RubyGems","package":"octopoller","purl":"pkg:gem/octopoller","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.2.0"}],"vendor":"octopoller_project","product":"octopoller","cpe":"cpe:2.3:a:octopoller_project:octopoller:0.2.0:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/octokit/octopoller.rb/security/advisories/GHSA-26qj-cr27-r5c4","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/octokit/octopoller.rb/commit/abed2b8d05abe2cc3eb6bdfb34e53d465e7c7874","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31071","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/octokit/octopoller","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/octopoller/CVE-2022-31071.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:05:05.517Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31071","url":"https://www.cve.org/CVERecord?id=CVE-2022-31071","licence":"CVE Terms of Use","modified":"2025-04-23T18:11:19.222Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-26qj-cr27-r5c4","url":"https://github.com/advisories/GHSA-26qj-cr27-r5c4","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:24.800Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31071","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31071","licence":"Public domain","modified":"2026-06-17T04:44:44.023Z"}],"updatedAt":"2026-11-25T22:58:12.414Z","epss":{"score":0.00223,"percentile":0.13791,"date":"2026-12-01T12:00:22.000Z"}}