# CVE-2023-38037: Active Support Possibly Discloses Locally Encrypted Files

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.0, CNA) `CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-28)
- **CWE:** CWE-732
- **Aliases:** GHSA-cr5q-6q9f-rq6q
- **Published:** 2023-08-23T20:36:24.000Z
- **Modified:** 2026-09-10T03:49:57.611Z

## Who should check

- Projects that depend on RubyGems package activesupport (\>= 5.2.0, \< 6.1.7.5)
- Anyone running Rails ActiveSupport \>= \>= 5.2.0, \< \>= 5.2.0

## 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.

## Affected and fixed versions

- RubyGems `activesupport`: affected \>= 5.2.0, \< 6.1.7.5; fixed 6.1.7.5, 7.0.7.1 (osv)
- Rails ActiveSupport: \>= \>= 5.2.0, \< \>= 5.2.0 (cvelist)

## Mitigation

- Upgrade activesupport to one of 6.1.7.5, 7.0.7.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-38037. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-38037.md
Affected: activesupport >= 5.2.0, < 6.1.7.5
Fixed in: 6.1.7.5, 7.0.7.1

Steps:
1. Search this machine and project for activesupport (RubyGems), Rails ActiveSupport: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-38037 being exploited?

There is no confirmed exploitation: CVE-2023-38037 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-38037?

Medium: CVSS 5.5 (v3.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-38037?

activesupport \>= 5.2.0, \< 6.1.7.5.

### Is there a fix for CVE-2023-38037?

Yes. Fixed in 6.1.7.5, 7.0.7.1. Upgrade activesupport to one of 6.1.7.5, 7.0.7.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-38037?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-38037>
- patch: <https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731>
- other: <https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544>
- other: <https://security.netapp.com/advisory/ntap-20250214-0010/>
- other: <https://github.com/rails/rails>
- other: <https://github.com/rails/rails/releases/tag/v7.0.7.1>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml>
- other: <https://security.netapp.com/advisory/ntap-20250214-0010>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-38037>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cr5q-6q9f-rq6q> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-38037> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-38037>
