CVE-2023-38037
Active Support Possibly Discloses Locally Encrypted Files
Reported by hackerone · Published January 9, 2025
activesupport is fixed in 7.0.7.1 and 6.1.7.5 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| activesupport | RubyGems | 7.0.7.1, 6.1.7.5 |
| kube-fluentd-operator | Chainguard | 1.17.6-r8 |
| kube-fluentd-operator | Wolfi | 1.17.6-r8 |
| ActiveSupport | Rails | 7.0.7.1, 6.1.7.5, 5.2.0, >= 5.2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Rails | ActiveSupport | >= 5.2.0, 5.2.0, 7.0.7.1, 6.1.7.5 |
| RubyGems | activesupport | 7.0.0, 5.2.0 |
| chainguard | kube-fluentd-operator | 0 |
| wolfi | kube-fluentd-operator | 0 |
| Rails | ActiveSupport | 7.0.7.1, 6.1.7.5, >= 5.2.0, 5.2.0 |
Timeline
- Aug 22, 2023 CVE Published
- Jan 9, 2025 EPSS Score (30 in total, the first dated here)
- Jan 26, 2026 CVE Updated
- Mar 17, 2026 Security Advisory (9 in total, the first dated here)
- Aug 7, 2026 Coalition ESS Score
- Nov 2, 2026 Distribution Patch (3 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-38037
vulnetix vdb fixes CVE-2023-38037
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-38037/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-38037 advisory
- https://github.com/advisories/GHSA-cr5q-6q9f-rq6q advisory
- https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731 patch
- https://github.com/rails/rails url
- https://github.com/rails/rails/releases/tag/v7.0.7.1 url
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml advisory
- https://security.netapp.com/advisory/ntap-20250214-0010 advisory
- https://security.netapp.com/advisory/ntap-20250214-0010/ url