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

Medium 5.5 Published Updated

Local attackers can read sensitive data from temporary files created by ActiveSupport::EncryptedFile due to insecure default permissions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-38037?

CVE-2023-38037 is a medium-severity vulnerability in Rails ActiveSupport, published on 9 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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

Weakness: CWE-732

Which versions are affected by CVE-2023-38037?

4 open source packages ship an affected version, including activesupport.

PackageAffectedFixed in
activesupport RubyGemsFrom 5.2.06.1.7.5
activesupport RubyGemsFrom 5.2.06.1.7.5
activesupport RubyGemsFrom 7.0.07.0.7.1
activesupport RubyGemsFrom 7.0.07.0.7.1
Linux distribution packages (5)
rubygem-activesupport-5.2 SUSE:Package Hub 15 SP5All versions5.2.3-bp155.3.5.1
rubygem-activesupport-5.2 openSUSE:Leap 15.5All versions5.2.3-bp155.3.5.1
ruby3.2-rubygem-activerecord-7.0 openSUSE:TumbleweedAll versions7.0.8-1.1
ruby3.2-rubygem-activesupport-7.0 openSUSE:TumbleweedAll versions7.0.8-1.1
ruby3.2-rubygem-rails-7.0 openSUSE:TumbleweedAll versions7.0.8-1.1

How do I fix CVE-2023-38037?

Upgrade activesupport to a fixed version for your release line: 6.1.7.5 or 7.0.7.1.

Is CVE-2023-38037 being exploited?

There is no known exploitation of CVE-2023-38037 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2023-38037, GHSA-cr5q-6q9f-rq6q, OESA-2023-1627, OESA-2023-1633, UBUNTU-CVE-2023-38037, openSUSE-SU-2023:0350-1 and 3 more.

Is CVE-2023-38037 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free