cve.bz

CVE-2023-38037 rails activesupport

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in rails activesupport. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in activesupport 6.1.7.5, 7.0.7.1.

On this page
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.

Severity

CVSS 3.0

5.5 medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • activesupport (RubyGems): fixed in 6.1.7.5, 7.0.7.1
  • Rails ActiveSupport: fixed in 5.2.0
  • Rails ActiveSupport: fixed in 7.0.7.1, 6.1.7.5
  • Debian, Red Hat, SUSE, openSUSE: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2023-38037 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-38037?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-38037?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-38037 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Rails ActiveSupportfrom >= 5.2.0 before >= 5.2.0

Fixed in

ProductFixed in
Rails ActiveSupport5.2.0
Rails ActiveSupport7.0.7.1, 6.1.7.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cr5q-6q9f-rq6qRubyGemsactivesupport>=5.2.0 <6.1.7.56.1.7.5
GHSA-cr5q-6q9f-rq6qRubyGemsactivesupport>=7.0.0 <7.0.7.17.0.7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11rails2:6.0.3.7+dfsg-2+deb11u3DLA-4383-1
Debian12rails2:6.1.7.10+dfsg-1~deb12u1DEBIAN-CVE-2023-38037 DSA-5881-1
Debian13, 14rails2:7.2.2.1+dfsg-1DEBIAN-CVE-2023-38037
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2023-38037
Red Hatsatellite:6.15::el8foreman, foreman-cli, foreman-ec2 and 12 more0:3.9.1.6-1.el8satRHSA-2024:2010
Red Hatsatellite:6.15::el8rubygem-audited0:5.4.2-1.el8satRHSA-2024:2010
Red Hatsatellite:6.15::el8rubygem-puma, rubygem-puma-debuginfo, rubygem-puma-debugsource0:6.4.2-1.el8satRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8puppetserver0:7.14.0-1.el8satRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-aiohttp, python3.11-aiohttp, python-aiohttp-debugsource and 1 more0:3.9.2-1.el8pcRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-django, python3.11-django0:4.2.9-1.el8pcRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-galaxy-importer, python3.11-galaxy-importer0:0.4.19-2.el8pcRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-jinja2, python3.11-jinja20:3.1.3-1.el8pcRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-pycryptodomex, python3.11-pycryptodomex, python-pycryptodomex-debugsource and 1 more0:3.20.0-1.el8pcRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8python-pygments, python3.11-pygments0:2.17.0-1.el8pcRHSA-2024:2010
Red Hatsatellite:6.15::el8, satellite_capsule:6.15::el8rubygem-activesupport0:6.1.7.6-1.el8satRHSA-2024:2010
Red Hatsatellite_capsule:6.15::el8foreman, foreman-debug0:3.9.1.6-1.el8satRHSA-2024:2010
1 more for Red Hat in the JSON and on Red Hat's page.
SUSEPackage Hub 15 SP5rubygem-activesupport-5.25.2.3-bp155.3.5.1openSUSE-SU-2023:0350-1
openSUSELeap 15.5rubygem-activesupport-5.25.2.3-bp155.3.5.1openSUSE-SU-2023:0350-1
openSUSETumbleweedruby3.2-rubygem-activerecord-7.07.0.8-1.1openSUSE-SU-2024:13432-1
openSUSETumbleweedruby3.2-rubygem-activesupport-7.07.0.8-1.1openSUSE-SU-2024:13397-1
openSUSETumbleweedruby3.2-rubygem-rails-7.07.0.8-1.1openSUSE-SU-2024:13433-1
openSUSETumbleweedrubygem-activerecord-7.07.0.8.4-1.1openSUSE-SU-2024:14069-1
openSUSETumbleweedrubygem-activerecord-7.07.0.8.6-1.3openSUSE-SU-2025:15112-1
openSUSETumbleweedrubygem-activesupport-7.07.0.8.4-1.1openSUSE-SU-2024:14071-1
openSUSETumbleweedrubygem-activesupport-7.07.0.8.6-1.3openSUSE-SU-2025:15114-1
openSUSETumbleweedrubygem-rails-7.07.0.8.4-1.1openSUSE-SU-2024:14074-1
openSUSETumbleweedrubygem-rails-7.07.0.8.6-1.3openSUSE-SU-2025:15124-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

To work around this issue, users can set their umask to be more restrictive:

$ umask 0077

ProductPackageStateAdvisory
Red Hat Satellite 6.15 for RHEL 8rubygem-activesupport-0:6.1.7.6-1.el8satFixed 2024-04-23RHSA-2024:2010
RHOL-5.7-RHEL-8openshift-logging/fluentd-rhel8:v1.14.6-203Fixed 2024-01-17RHSA-2024:0268
RHOL-5.8-RHEL-9openshift-logging/fluentd-rhel9:v5.8.1-9Fixed 2023-12-13RHSA-2023:7720
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Fix deferred
Red Hat OpenShift Container Platform 3.11rubygem-activesupportNot affected
Red Hat Satellite 6candlepinNot affected
Red Hat Satellite 6tfm-rubygem-activesupportAffected
Red Hat Storage 3rubygem-activesupportFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-38037.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON