CVE-2023-38037: Activesupport Active Support Possibly Discloses Locally Vulnerability
MODERATECVE-2023-38037 is a MODERATE (CVSS 5.5) active support possibly discloses locally vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Activesupport libraries in the RubyGems ecosystem. The issue involves active support possibly discloses locally encrypted files. Remediation is available by upgrading affected packages to version 6.1.7.5, 7.0.7.1.
CVE-2023-38037 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L).
How to Fix CVE-2023-38037
To remediate this vulnerability, upgrade all affected Activesupport dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade activesupport to 6.1.7.5
Upgrade activesupport to 7.0.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for activesupport
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-38037, inspect your project dependencies for Activesupport:
inspect dependencies for activesupport
Analyze the terminal output to locate any version of Activesupport in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.7.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Activesupport, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-38037 Affected Activesupport Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
activesupport
|
RubyGems |
≥ 5.2.0
< 6.1.7.5
|
6.1.7.5
|
|
activesupport
|
RubyGems |
≥ 7.0.0
< 7.0.7.1
|
7.0.7.1
|
References
Frequently Asked Questions
What is CVE-2023-38037?
Which Activesupport versions are affected?
What version fixes CVE-2023-38037?
Is activesupport affected?
What is the CVSS score of CVE-2023-38037?
What CWE is associated with CVE-2023-38037?
How can I check RubyGems dependencies for CVE-2023-38037?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cr5q-6q9f-rq6q",
"modified" : "2025-02-18T22:32:50Z",
"published" : "2023-08-23T20:36:24Z",
"aliases" : [ "CVE-2023-38037" ],
"summary" : "Active Support Possibly Discloses Locally Encrypted Files",
"details" : "There is a possible file disclosure of locally encrypted files in Active Support. This vulnerability has been assigned the CVE identifier CVE-2023-38037.\n\nVersions Affected: >= 5.2.0 Not affected: < 5.2.0 Fixed Versions: 7.0.7.1, 6.1.7.5\n\n# Impact\nActiveSupport::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.\n\nAttackers that have access to the file system could possibly read the contents of this temporary file while a user is editing it.\n\nAll users running an affected release should either upgrade or use one of the workarounds immediately.\n\n# Releases\nThe fixed releases are available at the normal locations.\n\n# Workarounds\nTo work around this issue, you can set your umask to be more restrictive like this:\n\n```ruby\n$ umask 0077\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activesupport"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.2.0"
}, {
"fixed" : "6.1.7.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "activesupport"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.0.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-38037"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731"
}, {
"type" : "WEB",
"url" : "https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rails/rails"
}, {
"type" : "WEB",
"url" : "https://github.com/rails/rails/releases/tag/v7.0.7.1"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20250214-0010"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-377", "CWE-732" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-23T20:36:24Z",
"nvd_published_at" : "2025-01-09T01:15:07Z"
}
}