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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 | DSA-5881-1 |
| Debian:12 | rails | 2:6.1.7.10+dfsg-1~deb12u1 | DEBIAN-CVE-2023-38037 |
| Debian:13 | rails | 2:7.2.2.1+dfsg-1 | DEBIAN-CVE-2023-38037 |
| Debian:14 | rails | 2:7.2.2.1+dfsg-1 | DEBIAN-CVE-2023-38037 |
| RubyGems | activesupport | 6.1.7.5 | GHSA-cr5q-6q9f-rq6q |
| RubyGems | activesupport | 7.0.7.1 | GHSA-cr5q-6q9f-rq6q |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-38037 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2023-38037 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2023-38037 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2023-38037 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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