Advisory

GHSA-cr5q-6q9f-rq6q

Also known as: CVE-2023-38037

Summary

Active Support Possibly Discloses Locally Encrypted Files

Details

There is a possible file disclosure of locally encrypted files in Active Support. This vulnerability has been assigned the CVE identifier CVE-2023-38037.

Versions Affected: >= 5.2.0 Not affected: < 5.2.0 Fixed Versions: 7.0.7.1, 6.1.7.5

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

Releases
The fixed releases are available at the normal locations.

Workarounds
To work around this issue, you can set your umask to be more restrictive like this:

$ umask 0077

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-08-23 20:36 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

activesupport

RubyGems · All systems

Affected

  • introduced 5.2.0, fixed 6.1.7.5 (ecosystem)

Fixed versions

6.1.7.5

Fix

The export has no generic command for this ecosystem.

activesupport

RubyGems · All systems

Affected

  • introduced 7.0.0, fixed 7.0.7.1 (ecosystem)

Fixed versions

7.0.7.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences