GHSA-cr5q-6q9f-rq6q
Active Support Possibly Discloses Locally Encrypted Files
At a glance
- Published
- Updated
- CVE
- CVE-2023-38037
- CVSS_V3
- CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Description
There is a possible file disclosure of locally encrypted files in Active Support. This vulnerability has been assigned the CVE identifier CVE-2023-38037. Versions Affected: >= 5.2.0 Not affected: < 5.2.0 Fixed Versions: 7.0.7.1, 6.1.7.5 # Impact ActiveSupport::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. Attackers that have access to the file system could possibly read the contents of this temporary file while a user is editing it. All users running an affected release should either upgrade or use one of the workarounds immediately. # Releases The fixed releases are available at the normal locations. # Workarounds To work around this issue, you can set your umask to be more restrictive like this: ```ruby $ umask 0077 ```
Affected packages
| Package | Versions |
|---|---|
| RubyGems · activesupport | introduced 5.2.0, fixed 6.1.7.5 |
| RubyGems · activesupport | introduced 7.0.0, fixed 7.0.7.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-38037 ADVISORY
- https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731 WEB
- https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544 WEB
- https://github.com/rails/rails PACKAGE
- https://github.com/rails/rails/releases/tag/v7.0.7.1 WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml WEB
- https://security.netapp.com/advisory/ntap-20250214-0010 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |