{"id":"CVE-2023-38037","aliases":["CVE-2023-38037","GHSA-cr5q-6q9f-rq6q"],"related":[],"kind":"vulnerability","state":"published","title":"Active Support Possibly Discloses Locally Encrypted Files","summary":"ActiveSupport::EncryptedFile writes contents that will be encrypted to a\ntemporary file.  The temporary file's permissions are defaulted to the user's\ncurrent `umask` settings, meaning that it's possible for other users on the\nsame system to read the contents of the temporary file.\n\nAttackers that have access to the file system could possibly read the contents\nof this temporary file while a user is editing it.\n\nAll users running an affected release should either upgrade or use one of the\nworkarounds immediately.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"ActiveSupport::EncryptedFile writes contents that will be encrypted to a\ntemporary file.  The temporary file's permissions are defaulted to the user's\ncurrent `umask` settings, meaning that it's possible for other users on the\nsame system to read the contents of the temporary file.\n\nAttackers that have access to the file system could possibly read the contents\nof this temporary file while a user is editing it.\n\nAll users running an affected release should either upgrade or use one of the\nworkarounds immediately.","source":"cvelist"},{"lang":"en","text":"There is a possible file disclosure of locally encrypted files in Active Support. This vulnerability has been assigned the CVE identifier CVE-2023-38037.\n\nVersions Affected: >= 5.2.0 Not affected: < 5.2.0 Fixed Versions: 7.0.7.1, 6.1.7.5\n\n# Impact\nActiveSupport::EncryptedFile writes contents that will be encrypted to a temporary file. The temporary file’s permissions are defaulted to the user’s current umask settings, meaning that it’s possible for other users on the same system to read the contents of the temporary file.\n\nAttackers that have access to the file system could possibly read the contents of this temporary file while a user is editing it.\n\nAll users running an affected release should either upgrade or use one of the workarounds immediately.\n\n# Releases\nThe fixed releases are available at the normal locations.\n\n# Workarounds\nTo work around this issue, you can set your umask to be more restrictive like this:\n\n```ruby\n$ umask 0077\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"ActiveSupport::EncryptedFile escribe el contenido que se cifrará en un archivo temporal. Los permisos del archivo temporal se establecen de forma predeterminada en la configuración actual de `umask` del usuario, lo que significa que otros usuarios del mismo sistema pueden leer el contenido del archivo temporal. Los atacantes que tengan acceso al sistema de archivos podrían leer el contenido de este archivo temporal mientras un usuario lo está editando. Todos los usuarios que ejecuten una versión afectada deberían actualizar o utilizar un workarounds de inmediato.","source":"nvd"}],"published":"2023-08-23T20:36:24.000Z","modified":"2026-09-10T03:49:57.611Z","severity":{"scorer":"hackerone","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"hackerone","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-377","CWE-732"],"affected":[{"ranges":[{"type":"custom","introduced":">= 5.2.0","fixed":">= 5.2.0","status":"affected"},{"type":"semver","introduced":"5.2.0","fixed":"5.2.0","status":"unaffected"},{"type":"custom","introduced":"7.0.7.1, 6.1.7.5","fixed":"7.0.7.1, 6.1.7.5","status":"unaffected"}],"vendor":"Rails","product":"ActiveSupport","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"6.1.7.5"}],"ecosystem":"RubyGems","package":"activesupport","purl":"pkg:gem/activesupport","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.7.1"}],"ecosystem":"RubyGems","package":"activesupport","purl":"pkg:gem/activesupport","source":"ghsa"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20250214-0010/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38037","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/releases/tag/v7.0.7.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250214-0010","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-01-09T21:35:42.283Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-38037","url":"https://www.cve.org/CVERecord?id=CVE-2023-38037","licence":"CVE Terms of Use","modified":"2025-02-15T00:10:27.790Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cr5q-6q9f-rq6q","url":"https://github.com/advisories/GHSA-cr5q-6q9f-rq6q","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:57.611Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-38037","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38037","licence":"Public domain","modified":"2026-06-17T06:09:17.320Z"}],"updatedAt":"2026-11-25T22:58:34.493Z","epss":{"score":0.00274,"percentile":0.21219,"date":"2026-12-01T12:00:22.000Z"}}