<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title type="text"><![CDATA[RubySec]]></title>
  <subtitle type="text"><![CDATA[Providing security resources for the Ruby community]]></subtitle>
  <link href="https://rubysec.com/atom.xml" rel="self"/>
  <link href="https://rubysec.com/" rel="alternate" hreflang="en" />
  <updated>2026-11-16T02:09:25+00:00</updated>
  <id>https://rubysec.com/</id>
  <author>
    <name><![CDATA[RubySec]]></name>
    
  </author>
  <generator uri="https://jekyllrb.com/">Jekyll</generator>

  
  <entry>
    <title type="html"><![CDATA[GHSA-5wpc-45jc-6ccc (dalli): Unbounded or stalled memcached replies can exhaust Dalli client resources]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-5wpc-45jc-6ccc/"/>
    <id>https://rubysec.com/advisories/GHSA-5wpc-45jc-6ccc</id>
    <updated>2026-11-14T00:00:00+00:00</updated>
    <content type="html"><![CDATA[A malicious or compromised memcached server or intermediary can exhaust
Dalli client resources or keep a TLS operation blocked beyond the
configured `socket_timeout`.

Pipelined `get_multi` can accumulate a header with no terminating CRLF
without the 8 KiB limit used for ordinary reply lines. A declared value
length can cause an excessive read, up to memcached's 1 GiB item maximum,
even when the default 1 MiB `value_max_bytes` limits writes. Stats and
quiet or bulk operations accept an unbounded number of complete replies
while waiting for their terminator. On Ruby 3.3 with its default OpenSSL
gem, blocking TLS handshake and reply reads can exceed `socket_timeout`.

The attacker must control the memcached endpoint or an intermediary able
to alter its replies. Both meta and binary protocols are covered where
supported; the unterminated text header applies to the meta protocol.
These issues can cause denial of service through memory use, CPU use, or
a stalled caller.

Upgrade to the patch release for your supported line. Incoming values
now default to the configured `value_max_bytes` limit (1 MiB by default).
If your deployment stores larger values, set `max_response_bytes` to the
required positive byte count.

### Workaround

Restrict memcached connections and intermediaries to trusted
infrastructure until you can upgrade.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-xw3h-pgr9-3vg7 (puma): Reactor blocks on `100 Continue` writes to clients that stop reading, stalling other connections]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-xw3h-pgr9-3vg7/"/>
    <id>https://rubysec.com/advisories/GHSA-xw3h-pgr9-3vg7</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

An unauthenticated client with one connection per worker process can
stop Puma from serving every connection that waits in the reactor,
for as long as it holds that connection open.

Each Puma worker has one reactor thread, which holds connections
waiting for more data: keep-alive connections between requests,
requests that arrive in more than one read, and TLS connections
still in the handshake. When a request with Expect: 100-continue
completes its headers on the reactor thread, Puma writes the
HTTP/1.1 100 Continue interim response with a blocking write and
no timeout. An attacker pipelines a request for a large response
before the Expect: 100-continue request and does not read that
response. The server's send buffer for the connection fills, and
the reactor thread blocks on the 25-byte interim write until the
attacker reads or closes. The 408 Request Timeout response and
error responses for requests that fail to parse in the reactor
were written from the reactor thread in the same way.

While the reactor thread is blocked, Puma does not read from or
time out any connection in the reactor on that worker. Requests
that arrive complete in a single read are still served, so the
server appears to hang only for some clients.

The default configuration is affected (queue_requests is on by
default) when Puma is directly reachable by clients and the
application has a route whose response size the client can
influence. A reverse proxy in front of Puma that buffers
responses prevents the attack.

## Acknowledgements

Thanks to @wtn for the report, the TCP and Unix socket proofs
of concept, the note about the 408 path, and the original fix.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-x646-wp7c-h9mg (puma): Client that stops reading a TLS or file response holds a worker thread indefinitely]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-x646-wp7c-h9mg/"/>
    <id>https://rubysec.com/advisories/GHSA-x646-wp7c-h9mg</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

An unauthenticated client can hold a Puma worker thread indefinitely
when Puma sends it a TLS response, or a file response larger than
64 KB. With enough connections, it can take the server offline.

The client sends a request and then stops reading the response.
Puma's write timeout (10 seconds) should then free the worker
thread. In two cases it never fires, and the thread stays blocked
until the client disconnects:

* TLS: MiniSSL::Socket#write_nonblock performs a blocking write.
  This has been the case since v3.9.0 (#1274).

* File bodies over 64 KB, on any bind: Puma sends File bodies, and
  bodies that respond to to_path, with IO.copy_stream, which has no
  write timeout. This has been the case since v6.0.0 (#2896).
  Rack::Files, Rails static file serving, and Rails send_file return
  these bodies.

An attacker who opens max_threads such connections per worker leaves
no threads to serve requests. The attack needs very little bandwidth
and no CPU on the server.

Two kinds of deployment are affected:

* Deployments where Puma terminates TLS itself, with an ssl://
  bind or ssl_bind:

  * ssl_bind "0.0.0.0", "9292", cert: "/path/to/cert.pem", key:
    "/path/to/key.pem"

* Applications that serve a file larger than 64 KB through Puma, on
  any bind. Puma's default configuration is affected in this case.

Deployments behind a proxy that buffers responses are not affected
for files that fit in the proxy's buffer. nginx buffers by default
(proxy_buffering on), up to 1 GB per response in a temporary file.

## Acknowledgements

Thanks to @wtn and @SounLabs, who reported this issue
independently, and to @wtn for the fix.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-rf6g-xhmp-gm7v (puma): Accept loop retries without pausing when out of file descriptors, flooding the log]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-rf6g-xhmp-gm7v/"/>
    <id>https://rubysec.com/advisories/GHSA-rf6g-xhmp-gm7v</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

An unauthenticated client can make Puma:

1. write log lines as fast as it can...
2. ...which eventually may fill the disk...
3. ...and when the disk fills, Puma will stop accepting connections.

The client can do this by opening enough idle connections to use up
the process's file descriptors.

When accept fails because the process is out of file descriptors
(EMFILE), the connection stays in the listen backlog, so the listening
socket stays readable. Puma logs the error and calls accept again
at once, with no pause. Each attempt fails the same way and writes
another "Listen loop" error line. An attacker who opens about as
many idle connections as the file descriptor limit, and sends
nothing on them, keeps Puma in this loop. The attacker reconnects
when Puma closes idle connections after first_data_timeout, so
the loop does not end.

If the log destination then raises an error, such as ENOSPC when
the disk is full, that error escapes the listen loop and ends
the thread that accepts connections.

Deployments that accept connections directly from clients are
affected, including the default configuration.

Deployments behind a reverse proxy or load balancer that limits
connections to Puma are not affected, because the client cannot
open enough connections to Puma itself.

## Acknowledgements

Found by Puma's maintainers during an internal security review.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-r885-m39c-939g (puma): ssl_cipher_filter values containing `+` are decoded to a wider cipher list]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-r885-m39c-939g/"/>
    <id>https://rubysec.com/advisories/GHSA-r885-m39c-939g</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

Puma servers that set an ssl_cipher_filter containing + accept TLS
cipher suites that the filter is meant to exclude. Any client that
can reach the SSL listener can negotiate those suites.

Support for ssl_cipher_filter in ssl:// bind URLs was added in
v3.12.0 (#1478), and in the ssl_bind DSL in v4.0.0 (#1676).

In an OpenSSL cipher string, + means "both": AES+SHA selects suites
that are AES and SHA. Puma decodes the query of a bind URL as HTML
form data, where + means a space, and a space in a cipher string
means "either". So the filter !aNULL:AES+SHA, which is the example
in Puma's README, reaches OpenSSL as !aNULL:AES SHA: every AES
suite plus every SHA suite. On OpenSSL 3.x that is 94 suites in
place of 27, including suites without forward secrecy.

Puma logs nothing, and the startup output shows the filter as written,
so operators cannot see that their filter is not applied. The filter
only gets wider: explicit exclusions such as !aNULL or !3DES still apply.

Deployments that set ssl_cipher_filter with a + are affected, in either form:

* ssl_bind "0.0.0.0", "9292", ssl_cipher_filter: "!aNULL:AES+SHA",
  cert: "...", key: "..."

* puma -b 'ssl://0.0.0.0:9292?key=...&cert=...&ssl_cipher_filter=!aNULL:AES+SHA'

The default configuration is not affected. Filters without +,
ssl_ciphersuites (TLS 1.3), and JRuby's ssl_cipher_list are not affected.

## Acknowledgements

Thanks to @b84330808 for reporting this issue.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-m5xw-3hrw-qcmf (puma): Reactor timeout queue loses order, letting a slow client keep other connections open past their timeout]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-m5xw-3hrw-qcmf/"/>
    <id>https://rubysec.com/advisories/GHSA-m5xw-3hrw-qcmf</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

An unauthenticated client can stop Puma from closing other connections
when their first_data_timeout or persistent_timeout expires.

The reactor keeps waiting connections in a queue sorted by deadline.
Puma sorted the queue only when new connections arrived, but it
extended a connection's deadline every time that connection sent
data. A client that connects and then sends about one byte per
timeout interval, without completing its request, stays at the
front of the queue with a deadline that is always in the future.
Every expired connection behind it stays open for as long as the
client keeps sending, or until a new connection arrives and causes a sort.

Connections held this way cost Puma one file descriptor and a small
amount of memory each. Puma does not crash, and the effect ends
when the slow client stops or new traffic arrives.
This bug was introduced in v5.0.3 by the reactor refactor (#2279).

The default configuration is affected.

## Acknowledgements

Thanks to @0xMigoo for the report and the controlled proof of
concept that isolated the missing sort.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-jm4r-w4xx-qxw7 (puma): Graceful shutdown waits indefinitely on trickled request bodies]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-jm4r-w4xx-qxw7/"/>
    <id>https://rubysec.com/advisories/GHSA-jm4r-w4xx-qxw7</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

Puma servers running in single mode with the default force_shutdown_after
:forever can be prevented from shutting down or restarting by an
unauthenticated client.

When Puma begins a graceful shutdown, it hands any request that is
still being received to the thread pool so that it can finish. The
thread pool then waits for that request with no deadline. Puma's
read timeout restarts every time a byte arrives, so an attacker who
sends a POST with a large Content-Length and then trickles one body
byte every few seconds can keep that request "in progress" for as
long as they like. The same works with chunked bodies and with
trickled headers. Puma stops accepting new connections, but the
process does not exit until the attacker closes the socket.

This delays or blocks deploys, restarts, and operational recovery.
Process supervisors that eventually send SIGKILL will end the
process, but any other in-flight requests are lost when they do.
Many trickling connections can be used together; each holds a
file descriptor but uses very little memory.

Deployments using Puma's default single-mode configuration are affected.

Unaffected:

* Cluster mode (workers N) bounds the delay: the master kills a
  stuck worker after worker_shutdown_timeout (30 seconds by default).

* A finite force_shutdown_after bounds the delay.

* Deployments behind a proxy that buffers request bodies before
  forwarding them are not affected. For example, nginx's default
  proxy_request_buffering on keeps a trickled body from reaching Puma.

## Acknowledgements

Thanks to Zheng Yu of depthfirst (@cla7aye15I4nd) for reporting
this issue and providing a proposed fix.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-86xc-wrr9-xmmq (puma): pumactl does not verify the TLS identity of SSL control servers]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-86xc-wrr9-xmmq/"/>
    <id>https://rubysec.com/advisories/GHSA-86xc-wrr9-xmmq</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[## Impact

An attacker on the network path between pumactl and a Puma control
server reached over ssl:// can steal the control token and use it
to stop, restart, or inspect Puma.

pumactl support for ssl:// control URLs was added in v4.3.0 (#2052).

When pumactl connects to an ssl:// control URL, it accepts any TLS
certificate. It should check that a trusted authority issued the
certificate and that the certificate matches the hostname in the URL.
An attacker who can intercept or redirect the connection can present
their own certificate, and pumactl then sends them the control token.

With the token, the attacker can send authenticated commands to the
real control server, including stop, restart, and stats.

Only deployments that run pumactl against an ssl:// control URL
are affected, for example:

  * pumactl --control-url 'ssl://control.example.com:9293'
    --control-token "$PUMA_CONTROL_TOKEN" stats

Puma's default configuration is not affected. The control server
is off by default, and unix:// control URLs are not affected.

## Acknowledgements

Thanks to @ahmedehab-nopr for reporting this issue.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[CVE-2026-126818 (mongoid): Improper Encryption of Inherited Model Fields Leads to Information Disclosure]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/CVE-2026-126818/"/>
    <id>https://rubysec.com/advisories/CVE-2026-126818</id>
    <updated>2026-11-13T00:00:00+00:00</updated>
    <content type="html"><![CDATA[A Ruby object-document mapper does not apply its automatic field-level
encryption configuration to certain fields when the data model uses
class inheritance. Values the application designated for encryption
are written to the database in readable form without any error or
warning. A database account holding only read access to the
application's collections, and no access to the encryption
key store, may obtain those values.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-r6vf-943r-2wvw (minitar): minitar path traversal vulnerability on Windows with a maliciously crafted tarball]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-r6vf-943r-2wvw/"/>
    <id>https://rubysec.com/advisories/GHSA-r6vf-943r-2wvw</id>
    <updated>2026-11-11T00:00:00+00:00</updated>
    <content type="html"><![CDATA[On Windows, a maliciously crafted tarball can
write files outside of the extraction directory.

## Impact

Path traversal (CWE-22). A crafted tar archive can cause files to
be created or overwritten outside the extraction directory.

Applications and scripts running on Windows Ruby (platforms where
File::ALT_SEPARATOR is "\\", such as mswin and mingw) that extract
tar archives from sources they don't fully control, using
Minitar.unpack, Minitar::Input#extract_entry, or Minitar::Input#each.
Platforms where File::ALT_SEPARATOR is nil, including Linux, macOS,
and the BSDs, are not affected, because \ is not a separator there
and is extracted as a literal filename character.

A crafted archive can cause files to be created or overwritten
outside the destination directory, limited to locations the extracting
process can write to. Exploitation requires a user or process to
extract the attacker-supplied archive. Further impact depends on
what is writable and what the overwritten files are used for.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-586r-mm5q-xhg2 (lockbox): Insecure hybrid cryptography]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-586r-mm5q-xhg2/"/>
    <id>https://rubysec.com/advisories/GHSA-586r-mm5q-xhg2</id>
    <updated>2026-11-11T00:00:00+00:00</updated>
    <content type="html"><![CDATA[With hybrid cryptography, an attacker who obtains the encryption key can use
it to decrypt data (acting as symmetric encryption rather than asymmetric).]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-x84w-hjc5-6pqw (alchemy_cms): Stored XSS via unvalidated URL schemes in menu nodes and linkable ingredients]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-x84w-hjc5-6pqw/"/>
    <id>https://rubysec.com/advisories/GHSA-x84w-hjc5-6pqw</id>
    <updated>2026-11-09T00:00:00+00:00</updated>
    <content type="html"><![CDATA[Alchemy::Node validated its url with a pattern that accepted any URI
scheme, and the linkable ingredients (Link, Text, Picture) never
validated their url at all. A user with permission to edit menus or
element content could therefore store a javascript: url, which the
menu template and the ingredient view components render as the href
of an <a> element. Activating such a link executes the stored script
in the site's origin, with the privileges of whoever clicked it.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-pfx8-f77c-5gp5 (alchemy_cms): CSS Injection via Unescaped Cookie in AlchemyCMS Admin Layout]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-pfx8-f77c-5gp5/"/>
    <id>https://rubysec.com/advisories/GHSA-pfx8-f77c-5gp5</id>
    <updated>2026-11-09T00:00:00+00:00</updated>
    <content type="html"><![CDATA[The admin layout wrote the value of the alchemy-elements-window-width
cookie into the style attribute of the admin <body> without checking it:

<%= content_tag :body, id: 'alchemy',
  class: alchemy_body_class,
  style: cookies["alchemy-elements-window-width"] &&
  "--elements-window-width: #{cookies["alchemy-elements-window-width"]}px" do %>

The admin JavaScript sets this cookie to the width the user dragged
the elements window to. A cookie value like 1; background:
url(//attacker.example) ends the custom property and adds further
CSS declarations to the body's inline style.

## Impact

Rails escapes the attribute value, so the cookie cannot add HTML or
script, only CSS declarations on the <body> element. With those an
attacker can change how the admin interface looks, for example hide
or cover parts of it, or load a background image from a server they
control and learn when the page was opened. Inline styles have no
selectors, so CSS techniques that read form values or other page
content do not apply.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-cqh4-xxr9-qc73 (alchemy_cms): CSRF protection bypassed in admin controllers when current_user_method memoizes the user]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-cqh4-xxr9-qc73/"/>
    <id>https://rubysec.com/advisories/GHSA-cqh4-xxr9-qc73</id>
    <updated>2026-11-09T00:00:00+00:00</updated>
    <content type="html"><![CDATA[Since 8.4.0, Alchemy::BaseController loads the current user in a
before_action that runs before the CSRF check. With the default
null_session forgery strategy, a forged cross-site request still
runs as the signed-in user in apps whose current_user_method memoizes
the user (for example the Rails 8 authentication generator or
@current_user ||= ...). An attacker can make a signed-in editor or
admin change content in the Alchemy admin by getting them to
visit a malicious page.

## Impact

Cross-site request forgery against the Alchemy admin. An attacker who
gets a signed-in Alchemy user to visit a malicious page can perform
any state-changing admin action that user is allowed to do: edit,
publish or delete pages and elements, manage attachments and pictures,
and, for admins, manage sites, languages and users where the host
app exposes that. Only apps whose current_user_method memoizes the
user are affected. Devise-based apps appear to be safe.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-3v87-v27q-vf34 (alchemy_cms): Mass-assignment in ingredients_attributes enables STI type confusion and polymorphic-association tampering, leading to stored XSS and Author -> Admin privilege escalation]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-3v87-v27q-vf34/"/>
    <id>https://rubysec.com/advisories/GHSA-3v87-v27q-vf34</id>
    <updated>2026-11-09T00:00:00+00:00</updated>
    <content type="html"><![CDATA[Alchemy::Admin::ElementsController' permitted nested ingredient
attributes with an open hash (ingredients_attributes: {}), and
Alchemy::Element accepted them for every ingredient column. A
user allowed to edit elements, which in the default role set
includes author, the lowest content role, could send a modified
PATCH /admin/elements/:id request and:

* change an ingredient's STI type, for example turn a Text ingredient
  into an Html ingredient, whose view renders its value unescaped;
* point an ingredient's polymorphic related_object at a record of
  any model in the application;
* create ingredients of any type and role that the element's
  definition does not declare;
* replace an ingredient's whole data store.

No crafted code is needed. The request is an ordinary authenticated
form submission, and type and related_object_type only have to name
classes that already exist, such as Alchemy::Ingredients::Html.

## Impact

Changing the type gives an author a way to store markup that is
rendered unescaped, both on the public site and in the admin page
preview where editors and administrators review drafts. A script
stored this way runs with the privileges of whoever views the page,
so an administrator reviewing an author's draft can have actions
performed in their session.

This adds the most risk on sites that deliberately keep authors
from storing HTML, by using only text-like ingredients or by
configuring a sanitizer for Richtext ingredients. Richtext
ingredients without a sanitizer setting render their HTML as
entered, so on sites using them authors can already store markup.

Pointing related_object at an unrelated record mostly breaks
rendering of that ingredient. It exposes data only where the
ingredient's view renders something of the related record, for
example its to_s.]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-x6mj-8jx9-qhqv (actionpack): Possible sensitive session information leak in Active Storage proxy mode]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-x6mj-8jx9-qhqv/"/>
    <id>https://rubysec.com/advisories/GHSA-x6mj-8jx9-qhqv</id>
    <updated>2026-11-04T00:00:00+00:00</updated>
    <content type="html"><![CDATA[### Impact

When `ActionDispatch::Cookies` reads a signed or encrypted cookie that was
written under a rotated secret (`config.action_dispatch.cookies_rotations`) or
in the format that a `:hybrid` cookie serializer migrates from, it writes the
cookie back to the response in the current format, and that write ignores
`request.session_options[:skip]`. `ActiveStorage::DisableSession` relies on
that option to keep the session cookie off the public, immutable responses of
the Active Storage proxy controllers, but those controllers still load the
session, so a request carrying an old-format session cookie could receive the
rewritten session cookie in `Set-Cookie` on a cacheable response. A shared
cache that stores such a response together with its `Set-Cookie` header could
then serve one user's session to later requesters of the same URL, or serve an
attacker's session to other users.

Applications are affected when they serve Active Storage files through the
proxy controllers, have a cookie rotation or a `:hybrid` serializer migration
configured, and run behind a cache that stores `Set-Cookie` on public
responses. This is a path around the fix for
[CVE-2024-26144](https://github.com/advisories/GHSA-8h22-8cf7-hq6g).

### Details

In the fixed releases, a response that skips the session leaves an old-format
signed or encrypted cookie unchanged, and the next request that does not skip
the session upgrades it. An application that skips the session on every
request no longer upgrades its signed or encrypted cookies. Cookies that the
application sets explicitly are still written. See the Action Pack CHANGELOG.

### Workarounds

Configure caching proxies not to store responses that carry a `Set-Cookie`
header, or complete the cookie rotation or serializer migration and remove it
from the configuration.

### 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/849a6c30eacbb6ca4722132f43c4333a93188556.patch
- 8.0:
  https://github.com/rails/rails/commit/0e6cf8faa89caf4c64311d35ca2bc88c1458d4e3.patch

### Credit

This issue was responsibly reported by HackerOne researcher
[flashmyname](https://hackerone.com/flashmyname).]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-wm3x-v3qw-4jh3 (actionpack): Possible Strong Parameters bypass in Parameters#each_key in Action Pack]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-wm3x-v3qw-4jh3/"/>
    <id>https://rubysec.com/advisories/GHSA-wm3x-v3qw-4jh3</id>
    <updated>2026-11-04T00:00:00+00:00</updated>
    <content type="html"><![CDATA[### Impact

`ActionController::Parameters#each_key` delegates to the internal
`ActiveSupport::HashWithIndifferentAccess` that holds the request parameters,
so when called with a block it returns that hash instead of the `Parameters`
instance. The hash does not respond to `permitted?`, so Active Model mass
assignment (`new`, `assign_attributes`, `update`) accepts it without raising
`ActiveModel::ForbiddenAttributesError`. An application that passes the return
value of `each_key` to mass assignment could allow a remote, unauthenticated
attacker to set attributes that the application does not permit, such as an
authorization flag.

This is an incomplete fix of
[CVE-2020-8164](https://github.com/advisories/GHSA-8727-m6gj-mc37), which made
`each`, `each_pair` and `each_value` return the `Parameters` instance but left
`each_key` delegated.

### Details

The fixed releases define `Parameters#each_key` to yield each key and return
the `Parameters` instance when given a block, as `each`, `each_pair` and
`each_value` do, and to return an `Enumerator` without one. Code that used the
return value of `each_key` as a hash now receives the `Parameters` instance,
which mass assignment rejects unless it is permitted.

### Affected applications

An application is affected if it passes the return value of
`ActionController::Parameters#each_key`, called with a block, to mass
assignment. Rails itself makes no such call.

### Workarounds

Do not use the return value of `each_key`. Call it for its block only, and
pass the permitted `Parameters` instance to mass assignment.

### 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/8ba746e0a786458c281060823f2ccc5c5f6312ac.patch
- 8.0:
  https://github.com/rails/rails/commit/2fc8838300133931e19eed3ea6cee76a7e83f19c.patch

### Versions affected

- actionpack < 8.0.5.2
- actionpack >= 8.1, < 8.1.4.1

### Credit

This issue was responsibly reported by HackerOne researcher
[smlee](https://hackerone.com/smlee).]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-v924-7rp8-4mxh (activestorage): Possible arbitrary file read and remote code execution in Active Storage video previews, analysis and image processing]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-v924-7rp8-4mxh/"/>
    <id>https://rubysec.com/advisories/GHSA-v924-7rp8-4mxh</id>
    <updated>2026-11-04T00:00:00+00:00</updated>
    <content type="html"><![CDATA[### Impact

`ActiveStorage::Blob#open` writes a blob to a tempfile whose name carries the
extension of the uploaded filename, and hands that path to `ffprobe`
(`VideoAnalyzer`, `AudioAnalyzer`), `ffmpeg` (`VideoPreviewer`) and
ImageMagick (`ImageAnalyzer`, the `:mini_magick` variant processor). These
tools select a decoder from the file extension when the content does not
identify its own format, so an attacker who chooses the filename and declares
the content type of an upload chooses which decoder processes it. An FFmpeg
built with AviSynth support treats a file with the `.avs` extension as an
AviSynth script and evaluates it, which could disclose files readable by the
application process through the preview image, or load a native library the
attacker has also uploaded, possibly leading to remote code execution in the
FFmpeg process. ImageMagick selects its coders and delegates from the
extension in the same way.

### Details

The fixed releases keep the uploaded extension on the tempfile only when
Marcel maps that extension to the blob's recorded content type, and name the
tempfile with no extension otherwise. A form upload whose Rack tempfile fails
the same check is copied to a correctly named tempfile before processing.
Files whose uploaded extension disagrees with their content type are still
processed; the external tool detects their format from the content. The Active
Storage CHANGELOG describes the change.

### Affected applications

An application is affected if it meets all of these requirements:
- Accepts uploads from untrusted users.
- Analyzes video or audio attachments (which Active Storage does on attach by
  default), generates video previews, or processes images with ImageMagick.

The AviSynth attack additionally requires an FFmpeg built with
`--enable-avisynth` and the AviSynthPlus runtime on the host. Upstream FFmpeg
and the common Linux distribution and Homebrew packages do not enable it; the
GPL builds distributed for Windows and Linux from ffmpeg.org do. Other
decoders that FFmpeg or ImageMagick select from the extension may be reachable
without AviSynth.

### Mitigation

- Upgrade to a fixed version of `activestorage`.

### Expire and change secrets

Upgrading closes the vulnerability but does not undo a disclosure that already
occurred. An application that meets the AviSynth requirement above should
treat every secret readable by the application process as potentially exposed
and change it, including `secret_key_base`, the master key and everything in
`config/credentials.yml.enc` that it decrypts, the Active Storage service
credentials, database credentials, and tokens for third-party services.
Changing `secret_key_base` expires active sessions and invalidates signed and
encrypted cookies, signed global IDs and Active Storage URLs. Do not retain an
exposed secret as a fallback.

### Workarounds

Applications that cannot upgrade can stop Active Storage from running FFmpeg
on uploaded files by removing `ActiveStorage::Previewer::VideoPreviewer` from
`config.active_storage.previewers`, and
`ActiveStorage::Analyzer::VideoAnalyzer` and
`ActiveStorage::Analyzer::AudioAnalyzer` from
`config.active_storage.analyzers`. Running an FFmpeg built without AviSynth
support closes the AviSynth attack but not the extension-selected decoders of
ImageMagick.

### 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/72136ff39153bc8d63ecbc899993848eb3d6573e.patch
- 8.0:
  https://github.com/rails/rails/commit/8106938fb0a595f11006dd1497cd409e27d7d636.patch

### Versions affected

- activestorage < 8.0.5.2
- activestorage >= 8.1, < 8.1.4.1

### Credit

This issue was responsibly reported by HackerOne researcher
[pirikara](https://hackerone.com/pirikara).]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-v6rj-xm57-3p59 (actionview): Possible XSS vulnerability in Action View highlight helper]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-v6rj-xm57-3p59/"/>
    <id>https://rubysec.com/advisories/GHSA-v6rj-xm57-3p59</id>
    <updated>2026-11-04T00:00:00+00:00</updated>
    <content type="html"><![CDATA[### Impact

`ActionView::Helpers::TextHelper#highlight` substitutes each matched phrase
into the `:highlighter` string without escaping it and returns the result
marked HTML-safe. Because sanitizing leaves quote characters in text
unescaped, a match substituted into a quoted attribute value of the
highlighter, such as the `<a href="search?q=\1">` form shown in the method's
documentation, could end the attribute value and add attributes to the
element, possibly leading to XSS. Applications are affected when they pass a
`:highlighter` that places a placeholder inside an attribute value and
highlight text or phrases that a user controls. The default `<mark>\1</mark>`
highlighter and the block form are not affected.

### Details

The fixed releases HTML-escape each group substituted into the `:highlighter`
string, so quotes in a match are rendered as `&quot;` and `&#39;`. Only the
numbered placeholders `\0` to `\9` are expanded; other `String#sub`
replacement escapes, such as `\k<name>`, `\&` and `\\`, are left as written. A
match can no longer begin on the `>` that closes a preceding tag. Escaping
makes a placeholder safe as element content or inside a quoted attribute
value, but not in an unquoted attribute value, a URL, JavaScript or CSS
context, or an attribute whose value is HTML. See the Action View CHANGELOG
for details.

### Workarounds

Use a `:highlighter` that places the matched phrase only in element content,
such as the default `<mark>\1</mark>`.

### 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/06938194b4fd59e1d2c8ab4a781f3c1e2b763425.patch
- 8.0:
  https://github.com/rails/rails/commit/c796f6198837479ada13290eb8fa767b5219a58a.patch

### Credit

This issue was found by the Anthropic OSS Scanner (ANT-2026-THHUJQVO).]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[GHSA-rwvh-fw6r-pwvp (actionpack): Possible DoS vulnerability in Action Controller Live streaming]]></title>
    <link rel="alternate" href="https://rubysec.com/advisories/GHSA-rwvh-fw6r-pwvp/"/>
    <id>https://rubysec.com/advisories/GHSA-rwvh-fw6r-pwvp</id>
    <updated>2026-11-04T00:00:00+00:00</updated>
    <content type="html"><![CDATA[### Impact

`ActionController::Live::Buffer#close` pushes its end-of-stream marker onto
the response's bounded queue while it holds the buffer's monitor. When the
client has stopped reading and the queue is full, the push blocks, and
`Buffer#abort`, which runs when the client disconnects or a write times out,
waits indefinitely for the same monitor. Each such response could permanently
hold a web server thread and its `ActionController::Live` thread, possibly
resulting in a DoS vulnerability through thread exhaustion.

Applications that stream responses with `ActionController::Live`, including
`send_stream`, are affected. Applications that serve large files through
Active Storage proxy mode are exposed to unauthenticated clients.

### 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/ccbfc09690fef05fdd2a9969c917a71b92cc98fc.patch
- 8.0:
  https://github.com/rails/rails/commit/27ad18ed5900dee28ba20e9c6fc718ff751fa215.patch

### Credit

This issue was found by the Anthropic OSS Scanner (ANT-2026-LDFW5N2T).]]></content>
  </entry>
  
</feed>
