Vulnerability · Published Jan 9, 2025 · Assigned by hackerone

CVE-2023-38037

Medium 5.5

In plain English

A medium-severity incorrect permission assignment in ActiveSupport from Rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.5Medium
Exploit odds (30 days)0.3%top 80.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.7.10+dfsg-1~deb12u1DSA-5881-1
Debian:12rails2:6.1.7.10+dfsg-1~deb12u1DEBIAN-CVE-2023-38037
Debian:13rails2:7.2.2.1+dfsg-1DEBIAN-CVE-2023-38037
Debian:14rails2:7.2.2.1+dfsg-1DEBIAN-CVE-2023-38037
RubyGemsactivesupport6.1.7.5GHSA-cr5q-6q9f-rq6q
RubyGemsactivesupport7.0.7.1GHSA-cr5q-6q9f-rq6q
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2023-38037
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2023-38037
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2023-38037
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2023-38037

Affected products (as reported)

VendorProductVersions
Rails ActiveSupport >= 5.2.0 – before >= 5.2.0

Weakness: CWE-732 · Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L

References