Ruby on Rails 漏洞与安全更新

36 条

12月4日周五

12月2日周三

11月27日周五

11月20日周五

11月14日周六

  • 中危03:09漏洞公告Ruby on RailsRubyGitHub Advisory Database

    rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls

    受影响: rubygems:rails-html-sanitizer < 1.7.2 → 1.7.2 Rails::HTML::SafeListSanitizer (both the HTML4 and HTML5 variants) shares one Rails::HTML::PermitScrubber across every sanitize call on the same instance, assigning its tags and attributes on each call without synchronization. Two concurrent sanitize calls with different tags: or attributes: options can interleave, so one call is scrubbed with the other call's allowlist. - Versions affected: < 1.7.2 - Not affected: none - Fixed versions: 1.7.2 Impact Action View memoizes a single SafeListSaniti…

  • 中危02:54漏洞公告Ruby on RailsRubyGitHub Advisory Database

    rails-html-sanitizer: Possible regular expression denial of service with certain configurations

    受影响: rubygems:rails-html-sanitizer >= 1.0.3, < 1.7.2 → 1.7.2 Rails::HTML::PermitScrubber restricts the href and xlink:href attributes of SVG reference elements to local references. That check matched the attribute value against /^\s[^#\s]./m. In Ruby ^ anchors to every line start and \s matches newlines, so an all-whitespace value made the engine rescan the value from each of its line starts, taking time quadratic in its length. - Versions affected: >= 1.0.3, < 1.7.2 - Not affected: < 1.0.3 - Fixed versions: 1.7.2 Only Ruby 3.1 and earlier are affected.…

11月13日周五

11月11日周三

  • 高危06:34漏洞公告Ruby on RailsRubyGitHub Advisory Database

    Active Support: Possible DoS vulnerability in Active Support safe_constantize

    受影响: rubygems:activesupport >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:activesupport < 8.0.5.2 → 8.0.5.2 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 unavailabl…

  • 中危06:27漏洞公告Ruby on RailsRubyGitHub Advisory Database

    Active Support: Possible XSS vulnerability in Active Support MessagePack serializer

    受影响: rubygems:activesupport >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1 ActiveSupport::MessagePack serializes an ActiveSupport::SafeBuffer as its bytes alone and deserializes it as a new SafeBuffer, so a buffer that is no longer html_safe? (for example, one mutated in place with gsub!) is restored as html_safe. If such a buffer holds untrusted input and is stored through a MessagePack serializer, rendering it after it is loaded bypasses ERB auto-escaping, possibly leading to XSS. Applications on Rails 8.1 are affected if they use a MessagePack serializer, such as c…

  • 中危06:26漏洞公告Ruby on RailsRubyGitHub Advisory Database

    Action Pack: Possible cache poisoning in Action Pack content negotiation

    受影响: rubygems:actionpack >= 8.1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 Action Pack negotiates the format of a rendered response from the Accept, X-Requested-With and, for XHR requests without Accept, Content-Type request headers, but ActionController::Rendering#_set_vary_header adds Vary: Accept only when the request carries a usable Accept header and the response has no Vary header yet. A response to a request without Accept, or to an XHR request, therefore omits the headers that selected its representation, and a response whose Vary the application set before re…

  • 低危06:25漏洞公告Ruby on RailsRubyGitHub Advisory Database

    Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores

    受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 Action Pack session stores other than ActionDispatch::Session::CookieStore (CacheStore, MemCacheStore, and third-party stores built on AbstractStore, AbstractSecureStore or the session mixins) write the session cookie without a SameSite attribute, regardless of config.action_dispatch.cookies_same_site_protection, which defaults to :lax. Only CookieStore applies the configured policy. In browsers that do not treat a cookie without the attribute as SameSite=Lax, a cross-site request could carry t…

  • 高危06:20漏洞公告Ruby on RailsRubyGitHub Advisory Database

    Action Pack: Possible IP spoofing in Action Dispatch RemoteIp

    受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1 Since Rails 8.1.0, ActionDispatch::RemoteIp derives request.remote_ip from Rack::Request#forwarded_for, which under Rack 3 reads the RFC 7239 Forwarded header in preference to X-Forwarded-For. When a reverse proxy appends the client address to X-Forwarded-For but passes a client-supplied Forwarded header through unchanged, request.remote_ip returns an address chosen by the client, and the IP spoofing check does not raise, because it compares only Client-Ip with the forwarded addresses. An unaut…

  • 中危06:19漏洞公告Ruby on RailsRubyGitHub Advisory Database

    Action Pack: Possible restoration of destroyed sessions in Action Dispatch CacheStore

    受影响: rubygems:actionpack >= 8.1.0.beta1, < 8.1.4.1 → 8.1.4.1, rubygems:actionpack < 8.0.5.2 → 8.0.5.2 ActionDispatch::Session::CacheStore writes a session back to the cache at the end of each request that loaded it, without checking that the session's cache entry still exists. When a concurrent request destroys the session, through reset_session on logout or by deleting its cache entry on the server, a request that loaded the session earlier and finishes later restores it under its original session ID. Logout and server-side revocation could therefore fail to end a session, and an attacker who…

11月6日周五

11月5日周四

11月4日周三

10月30日周五

10月23日周五

10月22日周四

10月16日周五

10月13日周二

10月9日周五

10月2日周五

10月1日周四

9月25日周五

9月21日周一

9月18日周五

7月1日周三

  • GitLab Patch Release: 18.8.11

    On July 1, 2026, we released version 18.8.11 for GitLab Community Edition and Enterprise Edition. These versions resolve regressions and bugs. This patch release does not include any security fixes. When database load balancing is in use, database connections may not be returned to the pool as a result of a regression caused by the upgrade to Rails 7.2. We are making an out-of-band patch release to ensure stability for customers upgrading to the required stop of GitLab 18.8. GitLab Community Edition and Enterprise Edition 18.8.11 Fix database connection leaks when database load balancer in us…

  • GitLab Patch Release: 18.8.11

    On July 1, 2026, we released version 18.8.11 for GitLab Community Edition and Enterprise Edition. These versions resolve regressions and bugs. This patch release does not include any security fixes. When database load balancing is in use, database connections may not be returned to the pool as a result of a regression caused by the upgrade to Rails 7.2. We are making an out-of-band patch release to ensure stability for customers upgrading to the required stop of GitLab 18.8. GitLab Community Edition and Enterprise Edition 18.8.11 Fix database connection leaks when database load balancer in us…