Ruby/activesupport/7.0.4.3


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
5.0.0.rc2 MIT 5 2016-06-22 - 20:02 about 9 years
5.0.0.rc1 MIT 5 2016-05-06 - 21:55 about 9 years
5.0.0.beta4 MIT 5 2016-04-27 - 20:53 about 9 years
5.0.0.beta3 MIT 5 2016-02-24 - 16:15 over 9 years
5.0.0.beta2 MIT 5 2016-02-01 - 22:05 over 9 years
5.0.0.beta1.1 MIT 5 2016-01-25 - 19:26 over 9 years
5.0.0.beta1 MIT 5 2015-12-18 - 21:17 over 9 years
5.0.0.racecar1 MIT 5 2016-05-06 - 22:00 about 9 years
4.2.11.3 MIT 5 2020-05-15 - 18:34 about 5 years
4.2.11.2 MIT 5 2020-05-15 - 16:30 about 5 years
4.2.11.1 MIT 5 2019-03-13 - 16:37 over 6 years
4.2.11 MIT 5 2018-11-27 - 20:06 over 6 years
4.2.10 MIT 5 2017-09-27 - 14:26 almost 8 years
4.2.10.rc1 MIT 5 2017-09-20 - 19:41 almost 8 years
4.2.9 MIT 5 2017-06-26 - 21:29 about 8 years
4.2.9.rc2 MIT 5 2017-06-19 - 22:27 about 8 years
4.2.9.rc1 MIT 5 2017-06-13 - 18:49 about 8 years
4.2.8 MIT 5 2017-02-21 - 16:07 over 8 years
4.2.8.rc1 MIT 5 2017-02-10 - 02:44 over 8 years
4.2.7.1 MIT 5 2016-08-11 - 17:34 almost 9 years
4.2.7 MIT 5 2016-07-13 - 02:54 almost 9 years
4.2.7.rc1 MIT 5 2016-07-01 - 00:30 almost 9 years
4.2.6 MIT 5 2016-03-07 - 22:31 over 9 years
4.2.6.rc1 MIT 5 2016-03-01 - 18:36 over 9 years
4.2.5.2 MIT 5 2016-02-29 - 19:15 over 9 years
4.2.5.1 MIT 5 2016-01-25 - 19:25 over 9 years
4.2.5 MIT 5 2015-11-12 - 17:04 over 9 years
4.2.5.rc2 MIT 5 2015-11-05 - 03:00 over 9 years
4.2.5.rc1 MIT 5 2015-10-30 - 20:46 over 9 years
4.2.4 MIT 5 2015-08-24 - 18:24 almost 10 years
4.2.4.rc1 MIT 5 2015-08-14 - 15:19 almost 10 years
4.2.3 MIT 5 2015-06-25 - 21:29 about 10 years
4.2.3.rc1 MIT 5 2015-06-22 - 14:22 about 10 years
4.2.2 MIT 5 2015-06-16 - 18:01 about 10 years
4.2.1 MIT 10 2015-03-19 - 16:40 over 10 years
4.2.1.rc4 MIT 10 2015-03-12 - 21:24 over 10 years
4.2.1.rc3 MIT 10 2015-03-02 - 21:34 over 10 years
4.2.1.rc2 MIT 10 2015-02-25 - 22:18 over 10 years
4.2.1.rc1 MIT 10 2015-02-20 - 22:19 over 10 years
4.2.0 MIT 10 2014-12-20 - 00:15 over 10 years
4.2.0.rc3 MIT 8 2014-12-13 - 02:58 over 10 years
4.2.0.rc2 MIT 8 2014-12-05 - 23:19 over 10 years
4.2.0.rc1 MIT 8 2014-11-28 - 17:52 over 10 years
4.2.0.beta4 MIT 8 2014-10-30 - 22:13 over 10 years
4.2.0.beta3 MIT 8 2014-10-30 - 18:37 over 10 years
4.2.0.beta2 MIT 8 2014-09-26 - 17:44 almost 11 years
4.2.0.beta1 MIT 8 2014-08-20 - 02:33 almost 11 years
4.1.16 MIT 5 2016-07-12 - 22:19 almost 9 years
4.1.16.rc1 MIT 5 2016-07-02 - 02:13 almost 9 years
4.1.15 MIT 5 2016-03-07 - 22:35 over 9 years