CVE-2023-38037
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 2:7.2.2.1+dfsg-1 |
| sid | Fixed | 2:7.2.2.1+dfsg-1 |
| forky | Fixed | 2:7.2.2.1+dfsg-1 |
| bullseye | Fixed | 2:6.0.3.7+dfsg-2+deb11u3 |
| bookworm | Fixed | 2:6.1.7.10+dfsg-1~deb12u1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | activesupport | !< 5.2.0||<~> 6.1.7, >= 6.1.7.5 | ~> 6.1.7, >= 6.1.7.5 |
| RubyGems | activesupport | >=5.2.0,<6.1.7.5 | 6.1.7.5 |
| RubyGems | activesupport | >=7.0.0,<7.0.7.1 | 7.0.7.1 |
References
- https://github.com/rails/rails/releases/tag/v7.0.7.1
- https://nvd.nist.gov/vuln/detail/CVE-2023-38037
- https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731
- https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml
- https://security.netapp.com/advisory/ntap-20250214-0010
- https://security-tracker.debian.org/tracker/CVE-2023-38037
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.