Incorrect permission assignment in Rails ActiveSupport
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · Low
- Fix status
- Partial Red Hat: 3 fixed, 3 without a fix
Attack profile from CVSS 3.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | ActiveSupport | >= 5.2.0 to before >= 5.2.0 | >= 5.2.0, 5.2.0, 7.0.7.1, 6.1.7.5 | Patch available | CNA |
| — | activesupport (RubyGems) | 5.2.0 to before 6.1.7.5 | 6.1.7.5 | Patch available | GHSA-cr5q-6q9f-rq6q |
| — | activesupport (RubyGems) | 7.0.0 to before 7.0.7.1 | 7.0.7.1 | Patch available | GHSA-cr5q-6q9f-rq6q |
- ActiveSupport VendorRails Affected >= 5.2.0 to before >= 5.2.0 Fixed in >= 5.2.0, 5.2.0, 7.0.7.1, 6.1.7.5 Patch available CNA
- activesupport (RubyGems) Vendor— Affected 5.2.0 to before 6.1.7.5 Fixed in 6.1.7.5 Patch available GHSA-cr5q-6q9f-rq6q
- activesupport (RubyGems) Vendor— Affected 7.0.0 to before 7.0.7.1 Fixed in 7.0.7.1 Patch available GHSA-cr5q-6q9f-rq6q
Remediation
- Fix · CNA ActiveSupport (Rails) Fixed in >= 5.2.0, 5.2.0, 7.0.7.1, 6.1.7.5
- Fix · GHSA-cr5q-6q9f-rq6q activesupport (RubyGems) Fixed in 6.1.7.5 Advisory →
- Fix · GHSA-cr5q-6q9f-rq6q activesupport (RubyGems) Fixed in 7.0.7.1 Advisory →
Red Hat 3 advisories
- RHSA-2024:2010 Released 2024-04-23 · Red Hat rating ImportantSatellite 6.15.0 release
- Red Hat Satellite 6.15 for RHEL 8 foreman-3.9.1.6-1.el8sat, foreman-cli-3.9.1.6-1.el8sat, foreman-debug-3.9.1.6-1.el8sat +28
- RHSA-2024:0268 Released 2024-01-17 · Red Hat rating LowLogging Subsystem 5.7.10 - Red Hat OpenShift security update
- RHOL 5.7 for RHEL 8 openshift-logging/fluentd-rhel8
- RHSA-2023:7720 Released 2023-12-13 · Red Hat rating LowLogging Subsystem 5.8.1- Red Hat OpenShift security update
- RHOL 5.8 for RHEL 9 openshift-logging/fluentd-rhel9
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix yet: Fix deferred |
| RHOL 5.7 for RHEL 8 | Fixed | RHSA-2024:0268 |
| RHOL 5.8 for RHEL 9 | Fixed | RHSA-2023:7720 |
| Red Hat Satellite 6.15 for RHEL 8 | Fixed | RHSA-2024:2010 |
Not affected: 5 products
- RHOL 5.7 for RHEL 8
- RHOL 5.8 for RHEL 9
- Red Hat OpenShift Container Platform 3.11
- Red Hat Satellite 6
- Red Hat Satellite 6.15 for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2023-38037
- 2026-10-03 Alias added: GHSA-cr5q-6q9f-rq6q
References
Other 6
- https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544
- https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731
- https://github.com/rails/rails
- https://github.com/rails/rails/releases/tag/v7.0.7.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml
- https://security.netapp.com/advisory/ntap-20250214-0010
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2023-38037 · CVE Program
- CVE-2023-38037 · NVD
- FIRST EPSS
- GHSA-cr5q-6q9f-rq6q · GitHub Advisory Database · CC BY 4.0
- CVE-2023-38037 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences