GitHub Advisoryadvisory · RubyGems

GHSA-cr5q-6q9f-rq6q Active Support Possibly Discloses Locally Encrypted Files

MEDIUM Published 2023-08-23 Modified 2025-02-18 Official page ↗
Aliases
CVE-2023-38037
Ecosystem
RubyGems
Packages
activesupport
Severity
Moderate
CVSS vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
Weaknesses
CWE-377, CWE-732
Reviewed
2023-08-23

Affected packages

• RubyGems activesupport: >= 5.2.0, < 6.1.7.5 → fixed in 6.1.7.5 • RubyGems activesupport: >= 7.0.0, < 7.0.7.1 → fixed in 7.0.7.1

Description

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: ```ruby $ umask 0077 ```

Related

Weakness · not in database (1)

Alias · CVE (1)

  • CVE-2023-38037 ActiveSupport::EncryptedFile writes contents that will be encrypted to a temporary file. vulnerability

Weakness · CWE (1)

  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness

References