{"id":"CVE-2023-38037","published":"2025-01-09T00:33:47Z","modified":"2025-02-15T00:10:27Z","title":"ActiveSupport::EncryptedFile writes contents that will be encrypted to a temporary file","vendor":"Rails","product":"ActiveSupport","tier":"tail","description":{"text":"ActiveSupport::EncryptedFile writes contents that will be encrypted to a\r\ntemporary file.  The temporary file's permissions are defaulted to the user's\r\ncurrent `umask` settings, meaning that it's possible for other users on the\r\nsame system to read the contents of the temporary file.\r\n\r\nAttackers that have access to the file system could possibly read the contents\r\nof this temporary file while a user is editing it.\r\n\r\nAll users running an affected release should either upgrade or use one of the\r\nworkarounds immediately.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00279,"percentile":0.13008,"provenance":"source"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250214-0010/","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.6},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"Rails","product":"ActiveSupport","versions":[">= >= 5.2.0, < >= 5.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-09T21:35:42.283546Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"activesupport","vulnerableRanges":[">=5.2.0, <6.1.7.5",">=7.0.0, <7.0.7.1"],"patched":["6.1.7.5","7.0.7.1"],"from":["GHSA-cr5q-6q9f-rq6q"],"provenance":"source"}],"summary":{"text":"ActiveSupport's ActiveSupport::EncryptedFile writes the contents that are meant to be encrypted into a temporary file whose permissions default to the user's umask, so other local users on the same system may be able to read it. An attacker with local access to the file system, who can read the temporary file while a user is editing it (a user-interaction condition), could obtain its plaintext contents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:22Z"},"euvd":{"id":"EUVD-2023-2274","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-8165","published":"2020-06-19","fixed":"6.0.3.1","kev":false},{"cve":"CVE-2023-22796","published":"2023-02-09","fixed":"7.0.4.1","kev":false},{"cve":"CVE-2023-28120","published":"2025-01-09","fixed":"7.0.4.3","kev":false,"link":{"from":"CVE-2023-28120","to":"CVE-2023-38037","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"7.0.4.3","toFixed":"7.0.7.1","daysApart":0},{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"6.1.7.3","toFixed":"6.1.7.5","daysApart":0}]}},{"cve":"CVE-2023-38037","published":"2025-01-09","fixed":"7.0.7.1","kev":false},{"cve":"CVE-2026-33169","published":"2026-03-23","fixed":"8.1.2.1","kev":false,"link":{"from":"CVE-2023-38037","to":"CVE-2026-33169","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"7.0.7.1","toFixed":"7.2.3.1","daysApart":438}]}},{"cve":"CVE-2026-33170","published":"2026-03-23","fixed":"8.1.2.1","kev":false,"link":{"from":"CVE-2023-38037","to":"CVE-2026-33170","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"7.0.7.1","toFixed":"7.2.3.1","daysApart":438}]}},{"cve":"CVE-2026-33176","published":"2026-03-23","fixed":"8.1.2.1","kev":false,"link":{"from":"CVE-2023-38037","to":"CVE-2026-33176","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activesupport","fromFixed":"7.0.7.1","toFixed":"7.2.3.1","daysApart":438}]}}],"package":"RubyGems:activesupport"}}