Ruby/activesupport/7.0.5.1


A toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Rich support for multibyte strings, internationalization, time zones, and testing.

https://rubygems.org/gems/activesupport
MIT

2 Security Vulnerabilities

Active Support Possibly Discloses Locally Encrypted Files

Published date: 2023-08-23T20:36:24Z
CVE: CVE-2023-38037
Links:

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

Affected versions: ["7.0.0", "7.0.1", "7.0.2", "7.0.2.1", "7.0.2.2", "7.0.2.3", "7.0.2.4", "7.0.3", "7.0.3.1", "7.0.4", "7.0.4.1", "7.0.4.2", "7.0.4.3", "7.0.5", "7.0.5.1", "7.0.6", "7.0.7", "6.0.3.3", "6.0.3.1", "6.0.2.2", "6.0.2.1", "6.0.2.rc2", "6.0.2.rc1", "6.0.0", "6.0.0.rc2", "6.0.0.beta3", "5.2.4.3", "5.2.4", "5.2.3.rc1", "5.2.2.1", "5.2.2", "5.2.1", "5.2.1.rc1", "5.2.0", "6.1.0.rc1", "6.0.3.4", "6.0.3.2", "6.0.3", "6.0.3.rc1", "6.0.2", "6.0.1", "6.0.1.rc1", "6.0.0.rc1", "6.0.0.beta2", "6.0.0.beta1", "5.2.4.4", "5.2.4.2", "5.2.4.1", "5.2.4.rc1", "5.2.3", "5.2.2.rc1", "5.2.1.1", "6.1.0.rc2", "6.1.0", "6.1.1", "6.1.2", "6.0.3.5", "5.2.4.5", "6.1.2.1", "6.1.3", "6.1.3.1", "6.0.3.6", "5.2.5", "6.0.3.7", "5.2.6", "5.2.4.6", "6.1.3.2", "6.0.4", "6.1.4", "6.0.4.1", "6.1.4.1", "6.1.4.2", "6.0.4.3", "6.1.4.3", "6.0.4.2", "6.1.4.4", "6.0.4.4", "6.1.4.6", "6.1.4.5", "6.0.4.6", "6.0.4.5", "5.2.6.2", "5.2.6.1", "6.0.4.7", "5.2.6.3", "6.1.4.7", "6.1.5", "5.2.7", "6.0.4.8", "5.2.7.1", "6.1.5.1", "6.1.6", "5.2.8", "6.0.5", "6.1.6.1", "5.2.8.1", "6.0.5.1", "6.1.7", "6.0.6", "6.1.7.1", "6.0.6.1", "6.1.7.2", "6.1.7.3", "6.1.7.4"]
Secure versions: [6.1.7.10, 6.1.7.5, 6.1.7.6, 6.1.7.7, 6.1.7.8, 6.1.7.9, 7.0.7.1, 7.0.7.2, 7.0.8, 7.0.8.1, 7.0.8.2, 7.0.8.3, 7.0.8.4, 7.0.8.5, 7.0.8.6, 7.0.8.7, 7.1.0, 7.1.0.beta1, 7.1.0.rc1, 7.1.0.rc2, 7.1.1, 7.1.2, 7.1.3, 7.1.3.1, 7.1.3.2, 7.1.3.3, 7.1.3.4, 7.1.4, 7.1.4.1, 7.1.4.2, 7.1.5, 7.1.5.1, 7.2.0, 7.2.0.beta1, 7.2.0.beta2, 7.2.0.beta3, 7.2.0.rc1, 7.2.1, 7.2.1.1, 7.2.1.2, 7.2.2, 7.2.2.1, 8.0.0, 8.0.0.1, 8.0.0.beta1, 8.0.0.rc1, 8.0.0.rc2, 8.0.1, 8.0.2]
Recommendation: Update to version 8.0.2.

Possible File Disclosure of Locally Encrypted Files

Published date: 2023-08-23
Framework: rails
CVE: 2023-38037
CVSS V3: 5.5
Links:

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

Affected versions: ["6.0.3.3", "6.0.3.1", "6.0.2.2", "6.0.2.1", "6.0.2.rc2", "6.0.2.rc1", "6.0.0", "6.0.0.rc2", "6.0.0.beta3", "5.2.4.3", "5.2.4", "5.2.3.rc1", "5.2.2.1", "5.2.2", "5.2.1", "5.2.1.rc1", "5.2.0", "6.1.0.rc1", "6.0.3.4", "6.0.3.2", "6.0.3", "6.0.3.rc1", "6.0.2", "6.0.1", "6.0.1.rc1", "6.0.0.rc1", "6.0.0.beta2", "6.0.0.beta1", "5.2.4.4", "5.2.4.2", "5.2.4.1", "5.2.4.rc1", "5.2.3", "5.2.2.rc1", "5.2.1.1", "6.1.0.rc2", "6.1.0", "6.1.1", "6.1.2", "6.0.3.5", "5.2.4.5", "6.1.2.1", "6.1.3", "6.1.3.1", "6.0.3.6", "5.2.5", "6.0.3.7", "5.2.6", "5.2.4.6", "6.1.3.2", "6.0.4", "6.1.4", "6.0.4.1", "6.1.4.1", "7.0.0.alpha1", "7.0.0.alpha2", "7.0.0.rc1", "7.0.0.rc2", "6.1.4.2", "6.0.4.3", "7.0.0.rc3", "6.1.4.3", "6.0.4.2", "6.1.4.4", "6.0.4.4", "7.0.0", "7.0.1", "7.0.2", "7.0.2.1", "7.0.2.2", "6.1.4.6", "6.1.4.5", "6.0.4.6", "6.0.4.5", "5.2.6.2", "5.2.6.1", "7.0.2.3", "6.0.4.7", "5.2.6.3", "6.1.4.7", "6.1.5", "5.2.7", "6.0.4.8", "5.2.7.1", "7.0.2.4", "6.1.5.1", "7.0.3", "6.1.6", "5.2.8", "6.0.5", "6.1.6.1", "5.2.8.1", "7.0.3.1", "6.0.5.1", "6.1.7", "7.0.4", "6.0.6", "7.0.4.1", "6.1.7.1", "6.0.6.1", "7.0.4.2", "6.1.7.2", "7.0.4.3", "6.1.7.3", "7.0.5", "7.0.5.1", "6.1.7.4", "7.0.6", "7.0.7"]
Secure versions: [6.1.7.10, 6.1.7.5, 6.1.7.6, 6.1.7.7, 6.1.7.8, 6.1.7.9, 7.0.7.1, 7.0.7.2, 7.0.8, 7.0.8.1, 7.0.8.2, 7.0.8.3, 7.0.8.4, 7.0.8.5, 7.0.8.6, 7.0.8.7, 7.1.0, 7.1.0.beta1, 7.1.0.rc1, 7.1.0.rc2, 7.1.1, 7.1.2, 7.1.3, 7.1.3.1, 7.1.3.2, 7.1.3.3, 7.1.3.4, 7.1.4, 7.1.4.1, 7.1.4.2, 7.1.5, 7.1.5.1, 7.2.0, 7.2.0.beta1, 7.2.0.beta2, 7.2.0.beta3, 7.2.0.rc1, 7.2.1, 7.2.1.1, 7.2.1.2, 7.2.2, 7.2.2.1, 8.0.0, 8.0.0.1, 8.0.0.beta1, 8.0.0.rc1, 8.0.0.rc2, 8.0.1, 8.0.2]
Recommendation: Update to version 8.0.2.

483 Other Versions

Version License Security Released
2.3.5 UNKNOWN 12 2009-11-27 - 00:11 over 15 years
2.3.4 UNKNOWN 12 2009-09-04 - 17:32 almost 16 years
2.3.3 UNKNOWN 16 2009-08-04 - 23:45 almost 16 years
2.3.2 UNKNOWN 16 2009-07-25 - 18:35 almost 16 years
2.2.3 UNKNOWN 15 2009-09-28 - 09:22 almost 16 years
2.2.2 UNKNOWN 17 2009-07-25 - 18:35 almost 16 years
2.1.2 UNKNOWN 19 2009-07-25 - 18:35 almost 16 years
2.1.1 UNKNOWN 19 2009-07-25 - 18:35 almost 16 years
2.1.0 UNKNOWN 19 2009-07-25 - 18:35 almost 16 years
2.0.5 UNKNOWN 17 2009-07-25 - 18:35 almost 16 years
2.0.4 UNKNOWN 17 2009-07-25 - 18:35 almost 16 years
2.0.2 UNKNOWN 17 2009-07-25 - 18:35 almost 16 years
2.0.1 UNKNOWN 17 2009-07-25 - 18:35 almost 16 years
2.0.0 UNKNOWN 17 2009-07-25 - 18:35 almost 16 years
1.4.4 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.4.3 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.4.2 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.4.1 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.4.0 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.3.1 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.3.0 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.2.5 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.2.4 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.2.3 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.2.2 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.2.1 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.1.1 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.1.0 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.0.4 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.0.3 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.0.2 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.0.1 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years
1.0.0 UNKNOWN 13 2009-07-25 - 18:35 almost 16 years