Ruby/activesupport/6.1.7.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
9 Security Vulnerabilities
Rails Active Support has a possible DoS vulnerability in its number helpers
- https://github.com/rails/rails/security/advisories/GHSA-2j26-frm8-cmj9
- https://github.com/rails/rails/commit/19dbab51ca086a657bb86458042bc44314916bcb
- https://github.com/rails/rails/commit/ebd6be18120d1136511eb516338e27af25ac0a1a
- https://github.com/rails/rails/commit/ee2c59e730e5b8faed502cd2c573109df093f856
- https://github.com/rails/rails/releases/tag/v7.2.3.1
- https://github.com/rails/rails/releases/tag/v8.0.4.1
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://github.com/advisories/GHSA-2j26-frm8-cmj9
- https://nvd.nist.gov/vuln/detail/CVE-2026-33176
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2026-33176.yml
Impact
Active Support number helpers accept strings containing scientific notation (e.g. 1e10000), which when converted to a string could be expanded into extremely large decimal representations. This can cause excessive memory allocation and CPU consumption when the expanded number is formatted, possibly resulting in a DoS vulnerability.
Releases
The fixed releases are available at the normal locations.
Credit
This issue was responsibly reported by Hackerone researcher manun.
Rails Active Support has a possible XSS vulnerability in SafeBuffer#%
- https://github.com/rails/rails/security/advisories/GHSA-89vf-4333-qx8v
- https://github.com/rails/rails/commit/50d732af3b7c8aaf63cbcca0becbc00279b215b7
- https://github.com/rails/rails/commit/6e8a81108001d58043de9e54a06fca58962fc2db
- https://github.com/rails/rails/commit/c1ad0e8e1972032f3395853a5e99cea035035beb
- https://github.com/rails/rails/releases/tag/v7.2.3.1
- https://github.com/rails/rails/releases/tag/v8.0.4.1
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://github.com/advisories/GHSA-89vf-4333-qx8v
- https://nvd.nist.gov/vuln/detail/CVE-2026-33170
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2026-33170.yml
Impact
SafeBuffer#% does not propagate the @html_unsafe flag to the newly created buffer. If a SafeBuffer is mutated in place (e.g. via gsub!) and then formatted with % using untrusted arguments, the result incorrectly reports html_safe? == true, bypassing ERB auto-escaping and possibly leading to XSS.
Releases
The fixed releases are available at the normal locations.
Credit
This issue was responsibly reported by @ch4n3-yoon
Rails Active Support has a possible ReDoS vulnerability in number_to_delimited
- https://github.com/rails/rails/security/advisories/GHSA-cg4j-q9v8-6v38
- https://github.com/rails/rails/commit/29154f1097da13d48fdb3200760b3e3da66dcb11
- https://github.com/rails/rails/commit/b54a4b373c6f042cab6ee2033246b1c9ecc38974
- https://github.com/rails/rails/commit/ec1a0e215efd27a3b3911aae6df978a80f456a49
- https://github.com/rails/rails/releases/tag/v7.2.3.1
- https://github.com/rails/rails/releases/tag/v8.0.4.1
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://github.com/advisories/GHSA-cg4j-q9v8-6v38
- https://nvd.nist.gov/vuln/detail/CVE-2026-33169
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2026-33169.yml
Impact
NumberToDelimitedConverter used a regular expression with gsub! to insert thousands delimiters. This could produce quadratic time complexity on long digit strings.
Releases
The fixed releases are available at the normal locations.
Credit
This issue was responsibly reported by Hackerone researcher scyoon.
Active Support Possibly Discloses Locally Encrypted Files
- https://github.com/rails/rails/commit/a21d6edf35a60383dfa6c4da49e4b1aef5f00731
- https://github.com/rails/rails/releases/tag/v7.0.7.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/CVE-2023-38037.yml
- https://github.com/advisories/GHSA-cr5q-6q9f-rq6q
- https://nvd.nist.gov/vuln/detail/CVE-2023-38037
- https://discuss.rubyonrails.org/t/cve-2023-38037-possible-file-disclosure-of-locally-encrypted-files/83544
- https://security.netapp.com/advisory/ntap-20250214-0010
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
Possible File Disclosure of Locally Encrypted Files
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
Rails Active Support has a possible ReDoS vulnerability in number_to_delimited
Impact
NumberToDelimitedConverter used a regular expression with gsub! to insert thousands delimiters. This could produce quadratic time complexity on long digit strings.
Releases
The fixed releases are available at the normal locations.
Rails Active Support has a possible XSS vulnerability in SafeBuffer#%
Impact
SafeBuffer#% does not propagate the @html_unsafe flag to the newly created buffer. If a SafeBuffer is mutated in place (e.g. via gsub!) and then formatted with % using untrusted arguments, the result incorrectly reports html_safe? == true, bypassing ERB auto-escaping and possibly leading to XSS.
Releases
The fixed releases are available at the normal locations.
Rails Active Support has a possible DoS vulnerability in its number helpers
Impact
Active Support number helpers accept strings containing scientific notation (e.g. 1e10000), which when converted to a string could be expanded into extremely large decimal representations. This can cause excessive memory allocation and CPU consumption when the expanded number is formatted, possibly resulting in a DoS vulnerability.
Releases
The fixed releases are available at the normal locations.
Possible DoS vulnerability in Active Support safe_constantize
Impact
When constant lookup raises LoadError, ActiveSupport::Inflector#safe_constantize (and String#safe_constantize) builds a regular expression from the requested constant name without escaping it, so a caller that passes untrusted input lets the attacker choose the source of a pattern that the application compiles. Crafted patterns can trigger defects in Ruby's regular expression compiler, possibly leading to a crash of the server process, and repeated requests could keep the application unavailable.
Action Cable passes the channel value of each subscribe command to safe_constantize before any channel lookup, so in the default configuration an unauthenticated client of the Action Cable endpoint can reach this code.
Details
The check that decides whether safe_constantize returns nil or re-raises the LoadError now matches the first segment of the constant name against the error message as a literal string, and no longer compiles a regular expression. It returns the same result as before for constant names that contain no regular expression syntax.
Affected applications
An application is affected if it meets all of these requirements: - Mounts Action Cable, which a new Rails application does by default at /cable (config.action_cable.mount_path), or otherwise passes untrusted input to safe_constantize. - Accepts Action Cable connections from untrusted clients. ApplicationCable::Connection#connect authenticates nobody unless the application adds a check.
Workarounds
Applications that do not use Action Cable can set config.action_cable.mount_path = nil to remove the endpoint. Applications that use Action Cable can call reject_unauthorized_connection in ApplicationCable::Connection#connect for unauthenticated clients, which limits exposure to authenticated users but does not remove it.
Releases
The fixed releases are available at the normal locations.
Patches for those who cannot upgrade at once: - 8.1: https://github.com/rails/rails/commit/95aa9e416016524956d4904fed96eaed079580bb.patch - 8.0: https://github.com/rails/rails/commit/210ac22d446c8e2625b091e79256806b836eee20.patch
Versions affected
- activesupport < 8.0.5.2
- activesupport >= 8.1, < 8.1.4.1
Credit
This issue was responsibly reported by Felix Tscheulin (flixt) through HackerOne researcher scheja, and independently by Bucky Wolfe (Igneous), who provided a proof of concept that crashes the server. It was also found by the Anthropic OSS Scanner (ANT-2026-ZUN5KU3Q).
509 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 8.1.4.1 | MIT | 2026-11-04 - 02:47 | about 1 month | |
| 8.1.4 | MIT | 2 | 2026-09-24 - 14:21 | 2 months |
| 8.1.3.1 | MIT | 2 | 2026-07-29 - 15:01 | 4 months |
| 8.1.3 | MIT | 2 | 2026-03-24 - 20:26 | 8 months |
| 8.1.2.1 | MIT | 2 | 2026-03-23 - 19:44 | 9 months |
| 8.1.2 | MIT | 8 | 2026-01-08 - 20:18 | 11 months |
| 8.1.1 | MIT | 8 | 2025-10-28 - 23:47 | about 1 year |
| 8.1.0 | MIT | 8 | 2025-10-22 - 00:35 | about 1 year |
| 8.1.0.rc1 | MIT | 7 | 2025-10-15 - 00:51 | about 1 year |
| 8.1.0.beta1 | MIT | 7 | 2025-09-04 - 12:30 | over 1 year |
| 8.0.5.2 | MIT | 2026-11-04 - 02:33 | about 1 month | |
| 8.0.5.1 | MIT | 1 | 2026-07-29 - 15:09 | 4 months |
| 8.0.5 | MIT | 1 | 2026-03-24 - 20:20 | 8 months |
| 8.0.4.1 | MIT | 1 | 2026-03-23 - 19:39 | 9 months |
| 8.0.4 | MIT | 7 | 2025-10-28 - 23:43 | about 1 year |
| 8.0.3 | MIT | 7 | 2025-09-22 - 22:20 | about 1 year |
| 8.0.2.1 | MIT | 7 | 2025-08-13 - 20:39 | over 1 year |
| 8.0.2 | MIT | 7 | 2025-03-12 - 03:08 | over 1 year |
| 8.0.1 | MIT | 7 | 2024-12-13 - 20:02 | almost 2 years |
| 8.0.0.1 | MIT | 7 | 2024-12-10 - 21:46 | almost 2 years |
| 8.0.0 | MIT | 7 | 2024-11-07 - 22:30 | about 2 years |
| 8.0.0.rc2 | MIT | 7 | 2024-10-30 - 00:31 | about 2 years |
| 8.0.0.rc1 | MIT | 7 | 2024-10-19 - 01:43 | about 2 years |
| 8.0.0.beta1 | MIT | 7 | 2024-09-26 - 15:05 | about 2 years |
| 7.2.4 | MIT | 1 | 2026-09-24 - 19:08 | 2 months |
| 7.2.3.2 | MIT | 1 | 2026-07-29 - 15:07 | 4 months |
| 7.2.3.1 | MIT | 1 | 2026-03-23 - 19:33 | 9 months |
| 7.2.3 | MIT | 7 | 2025-10-28 - 23:24 | about 1 year |
| 7.2.2.2 | MIT | 7 | 2025-08-13 - 20:34 | over 1 year |
| 7.2.2.1 | MIT | 7 | 2024-12-10 - 21:42 | almost 2 years |
| 7.2.2 | MIT | 7 | 2024-10-31 - 01:47 | about 2 years |
| 7.2.1.2 | MIT | 7 | 2024-10-23 - 22:34 | about 2 years |
| 7.2.1.1 | MIT | 7 | 2024-10-15 - 20:46 | about 2 years |
| 7.2.1 | MIT | 7 | 2024-08-22 - 19:45 | over 2 years |
| 7.2.0 | MIT | 7 | 2024-08-09 - 23:26 | over 2 years |
| 7.2.0.rc1 | MIT | 7 | 2024-08-06 - 17:00 | over 2 years |
| 7.2.0.beta3 | MIT | 7 | 2024-07-11 - 15:19 | over 2 years |
| 7.2.0.beta2 | MIT | 7 | 2024-06-04 - 18:14 | over 2 years |
| 7.2.0.beta1 | MIT | 7 | 2024-05-29 - 23:37 | over 2 years |
| 7.1.6 | MIT | 7 | 2025-10-28 - 23:20 | about 1 year |
| 7.1.5.2 | MIT | 7 | 2025-08-13 - 20:29 | over 1 year |
| 7.1.5.1 | MIT | 7 | 2024-12-10 - 21:27 | almost 2 years |
| 7.1.5 | MIT | 7 | 2024-10-31 - 01:34 | about 2 years |
| 7.1.4.2 | MIT | 7 | 2024-10-23 - 22:28 | about 2 years |
| 7.1.4.1 | MIT | 7 | 2024-10-15 - 20:39 | about 2 years |
| 7.1.4 | MIT | 7 | 2024-08-22 - 21:26 | over 2 years |
| 7.1.3.4 | MIT | 7 | 2024-06-04 - 18:00 | over 2 years |
| 7.1.3.3 | MIT | 7 | 2024-05-16 - 19:21 | over 2 years |
| 7.1.3.2 | MIT | 7 | 2024-02-21 - 21:45 | almost 3 years |
| 7.1.3.1 | MIT | 7 | 2024-02-21 - 18:46 | almost 3 years |
