CVE-2023-38037: ActiveSupport::EncryptedFile writes contents that will be encrypted to a temporary file.
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.27% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. A user must open a link or visit a page. Special conditions such as timing or configuration are required.
- Fixed version: rails (Debian:11) 2:6.0.3.7+dfsg-2+deb11u3; rails (Debian:12) 2:6.1.7.10+dfsg-1~deb12u1; rails (Debian:13) 2:7.2.2.1+dfsg-1.
Low priority for now. Upgrade to rails (Debian:11) 2:6.0.3.7+dfsg-2+deb11u3; rails (Debian:12) 2:6.1.7.10+dfsg-1~deb12u1; rails (Debian:13) 2:7.2.2.1+dfsg-1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- GHSA-cr5q-6q9f-rq6q
- DLA-4383-1
- DSA-5881-1
- openSUSE-SU-2023:0350-1
- openSUSE-SU-2024:13397-1
- openSUSE-SU-2024:13432-1
- openSUSE-SU-2024:13433-1
- openSUSE-SU-2024:14069-1
- openSUSE-SU-2024:14071-1
- openSUSE-SU-2024:14074-1
- openSUSE-SU-2025:15112-1
- openSUSE-SU-2025:15114-1
- openSUSE-SU-2025:15124-1
- RHSA-2024:2010
- Published
- Jan 8, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 20th percentile
- CWE
- CWE-732
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · hackerone
- 5.5
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (hackerone). Independent of NVD's CPE analysis and usually ahead of it.
Rails ActiveSupport
- >= 5.2.0 and later · before >= 5.2.0affected
- 5.2.0 and later · before 5.2.0not affected · semver
- 7.0.7.1, 6.1.7.5 and later · before 7.0.7.1, 6.1.7.5not affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:11 | rails | before 2:6.0.3.7+dfsg-2+deb11u3 | 2:6.0.3.7+dfsg-2+deb11u3 |
| Debian:12 | rails | before 2:6.1.7.10+dfsg-1~deb12u1 | 2:6.1.7.10+dfsg-1~deb12u1 |
| Debian:13 | rails | before 2:7.2.2.1+dfsg-1 | 2:7.2.2.1+dfsg-1 |
| openSUSE:Leap 15.5 | rubygem-activesupport-5.2 | before 5.2.3-bp155.3.5.1 | 5.2.3-bp155.3.5.1 |
| openSUSE:Tumbleweed | ruby3.2-rubygem-activerecord-7.0 | before 7.0.8-1.1 | 7.0.8-1.1 |
| openSUSE:Tumbleweed | ruby3.2-rubygem-activesupport-7.0 | before 7.0.8-1.1 | 7.0.8-1.1 |
| openSUSE:Tumbleweed | ruby3.2-rubygem-rails-7.0 | before 7.0.8-1.1 | 7.0.8-1.1 |
| openSUSE:Tumbleweed | rubygem-activerecord-7.0 | before 7.0.8.6-1.3 | 7.0.8.6-1.3 |
| openSUSE:Tumbleweed | rubygem-activerecord-7.0 | before 7.0.8.4-1.1 | 7.0.8.4-1.1 |
| openSUSE:Tumbleweed | rubygem-activesupport-7.0 | before 7.0.8.4-1.1 | 7.0.8.4-1.1 |
| openSUSE:Tumbleweed | rubygem-activesupport-7.0 | before 7.0.8.6-1.3 | 7.0.8.6-1.3 |
| openSUSE:Tumbleweed | rubygem-rails-7.0 | before 7.0.8.6-1.3 | 7.0.8.6-1.3 |
| openSUSE:Tumbleweed | rubygem-rails-7.0 | before 7.0.8.4-1.1 | 7.0.8.4-1.1 |
| Red Hat:satellite_capsule:6.15::el8 | foreman | before 0:3.9.1.6-1.el8sat | 0:3.9.1.6-1.el8sat |
| Red Hat:satellite_capsule:6.15::el8 | foreman-debug | before 0:3.9.1.6-1.el8sat | 0:3.9.1.6-1.el8sat |
| Red Hat:satellite_capsule:6.15::el8 | puppetserver | before 0:7.14.0-1.el8sat | 0:7.14.0-1.el8sat |
| Red Hat:satellite_capsule:6.15::el8 | python-aiohttp | before 0:3.9.2-1.el8pc | 0:3.9.2-1.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-aiohttp-debugsource | before 0:3.9.2-1.el8pc | 0:3.9.2-1.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-django | before 0:4.2.9-1.el8pc | 0:4.2.9-1.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-galaxy-importer | before 0:0.4.19-2.el8pc | 0:0.4.19-2.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-jinja2 | before 0:3.1.3-1.el8pc | 0:3.1.3-1.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-pycryptodomex | before 0:3.20.0-1.el8pc | 0:3.20.0-1.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-pycryptodomex-debugsource | before 0:3.20.0-1.el8pc | 0:3.20.0-1.el8pc |
| Red Hat:satellite_capsule:6.15::el8 | python-pygments | before 0:2.17.0-1.el8pc | 0:2.17.0-1.el8pc |
+29
Same product
rails: all recordsOther highest-scoring records for the same primary product.
- CVE-2023-28120There is a vulnerability in ActiveSupport if the new bytesplice method is called on a SafeBuffer with untrusted user input.21Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:rails | 2:6.1.7.10+dfsg-1~deb12u1 · Debian:12 | Package registry (OSV) |
| opensuse:ruby3.2-rubygem-activerecord-7.0 | 7.0.8-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby3.2-rubygem-activesupport-7.0 | 7.0.8-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ruby3.2-rubygem-rails-7.0 | 7.0.8-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubygem-activerecord-7.0 | 7.0.8.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubygem-activesupport-5.2 | 5.2.3-bp155.3.5.1 · openSUSE:Leap 15.5 | Package registry (OSV) |
| opensuse:rubygem-activesupport-7.0 | 7.0.8.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubygem-rails-7.0 | 7.0.8.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:foreman | 0:3.9.1.6-1.el8sat · Red Hat:satellite_capsule:6.15::el8 | Package registry (OSV) |
| red hat:foreman-cli | 0:3.9.1.6-1.el8sat · Red Hat:satellite_utils:6.15::el8 | Package registry (OSV) |
| red hat:foreman-debug | 0:3.9.1.6-1.el8sat · Red Hat:satellite_capsule:6.15::el8 | Package registry (OSV) |
| red hat:foreman-dynflow-sidekiq | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:foreman-ec2 | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:foreman-journald | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:foreman-libvirt | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:foreman-openstack | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:foreman-ovirt | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:foreman-pcp | 0:3.9.1.6-1.el8sat · Red Hat:satellite:6.15::el8 | Package registry (OSV) |
| red hat:python-pygments | 0:2.17.0-1.el8pc · Red Hat:satellite_capsule:6.15::el8 | Package registry (OSV) |
| red hat:python3.11-pygments | 0:2.17.0-1.el8pc · Red Hat:satellite_capsule:6.15::el8 | Package registry (OSV) |
| RubyGems:activesupport | 6.1.7.5 | Package registry (OSV) |
| RubyGems:activesupport | 7.0.7.1 | Package registry (OSV) |
| suse:rubygem-activesupport-5.2 | 5.2.3-bp155.3.5.1 · SUSE:Package Hub 15 SP5 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- A user must open a link or visit a page.
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- high · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- low · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- Low
- Availability impact
- Low
Weakness class (CWE)
CWE-732 · Incorrect Permission Assignment for Critical ResourceCVSS vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
nvd-secondary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Accessing Functionality Not Properly Constrained by ACLsCAPEC-1likelihood: High · High
- Privilege AbuseCAPEC-122likelihood: High · Medium
- Directory IndexingCAPEC-127likelihood: High · Medium
- Using Malicious FilesCAPEC-17likelihood: High · Very High
- Exploiting Incorrectly Configured Access Control Security LevelsCAPEC-180likelihood: High · Medium
- Signing Malicious CodeCAPEC-206Very High
- Hijacking a privileged processCAPEC-234Medium
- Reusing Session IDs (aka Session Replay)CAPEC-60likelihood: High · High
ATT&CK techniques
- File and Directory DiscoveryT1083
- Access Token Manipulation:Token Impersonation/TheftT1134.001
- Server Software Component: Terminal Services DLLT1505.005
- Abuse Elevation Control MechanismT1548
- Use Alternate Authentication Material:Web Session CookieT1550.004
- Subvert Trust Controls:Code SigningT1553.002
- Compromise Client Software BinaryT1554
- Hijack Execution Flow:Executable Installer File Permissions WeaknessT1574.005
- Hijack Execution Flow: ServicesFile Permissions WeaknessT1574.010
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (1 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.