p PatchFirst

PatchFirst · Latest vulnerabilities

ruby stack vulnerabilities · Page 8

Vulnerabilities published for ruby in the last 30 days: 53. Listed in the KEV catalogue: 0.

Filter vulnerabilities
Clear filters

Vulnerabilities: 1143

  1. CVE-2026-57435

    Low · CVSS 1.7EPSS 0.46%Fix available

    Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri’s CRuby native extension could leave a Ruby wrapper pointing to freed memory when replacing the value of an XML attribute. If Ruby code had already accessed an attribute child node, Nokogiri::XML::Attr#value= could free the underlying native child node while the wrapper remained reachable through the document node cache. A later use of the freed child node or a Ruby GC mark could dereference an invalid pointer, causing an invalid read and a possible segfault. This vulnerability is fixed in 1.19.4.

    • Update to 1.19.4
    • Update to 1.19.4+dfsg-1
    • Update to 1.19.4-r0
    Published Updated
  2. CVE-2026-57434

    Low · CVSS 1.7EPSS 0.46%Fix available

    Nokogiri: Null Pointer Dereference calling methods on uninitialized wrapper classes

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri contains a bug when calling certain methods on allocated-but-uninitialized native wrapper classes that inherit from Nokogiri::XML::Node. This caused a NULL pointer dereference that could crash the process. This vulnerability is fixed in 1.19.4.

    • Update to 1.19.4
    • Update to 1.19.4+dfsg-1
    • Update to 1.19.4-r0
    Published Updated
  3. CVE-2026-57235

    Medium · CVSS 6.3EPSS 0.43%Fix available

    Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::NodeSet#[] (and its alias #slice) checked the requested index against the node set's bounds using a 32-bit-truncated copy of the index. A large negative index could pass the check and then be used at full width, reading outside the node set's storage. On CRuby this is an out-of-bounds read that typically crashes the process; on JRuby it is not memory-unsafe but returns an incorrect node. This vulnerability is fixed in 1.19.4.

    • Update to 1.19.4
    • Update to 1.19.4+dfsg-1
    • Update to 1.19.4-r0
    Published Updated
  4. CVE-2026-57234

    Low · CVSS 2.6EPSS 0.2%Fix available

    Nokogiri: XML::Schema on JRuby allows network requests when NONET is set, bypassing CVE-2020-26247

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, the NONET parse option, which Nokogiri turns on by default for Nokogiri::XML::Schema (see CVE-2020-26247), was not correctly enforced on the JRuby implementation. As a result, a schema parsed with default options could still cause external resources to be fetched over the network, potentially enabling SSRF or XXE attacks. This vulnerability is fixed in 1.19.4.

    • Update to 1.19.4
    • Update to 1.19.4+dfsg-1
    • Update to 1.19.4-r0
    Published Updated
  5. CVE-2026-57236

    Low · CVSS 1.7EPSS 0.43%Fix available

    Nokogiri: Possible Use-After-Free when `Nokogiri::XML::Document#encoding=` raises an exception

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, calling Document#encoding= with an invalid encoding (e.g., a non-string, or a string containing a null byte) raises an exception, but only after freeing the document's current encoding string without replacing it. The document is left referencing freed memory, so the next call to Document#encoding reads invalid memory, which can cause a segfault or leak freed bytes into a Ruby String. Affects the CRuby (libxml2) implementation only; JRuby is not affected. This vulnerability is fixed in 1.19.4.

    • Update to 1.19.4
    • Update to 1.19.4+dfsg-1
    • Update to 1.19.4-r0
    Published Updated
  6. CVE-2026-54297

    High · CVSS 7.5EPSS 0.76%Fix available

    Faraday: Uncontrolled recursion in NestedParamsEncoder allows stack exhaustion DoS via deeply nested query parameters

    Faraday is an HTTP client library abstraction layer that provides a common interface over many adapters. From 1.0.0 until 1.10.6 and 2.14.3, Faraday::NestedParamsEncoder, the default nested query parameter encoder/decoder in Faraday, decodes nested query strings without enforcing a maximum nesting depth. A crafted query string causes Faraday to build a deeply nested Ruby Hash structure. The internal dehash routine then recursively walks this attacker-controlled structure without a depth limit. At sufficient depth, Ruby raises an uncaught SystemStackError (stack level too deep), crashing the calling thread or worker. This can lead to denial of

    • Update to 1.10.6
    • Update to 2.14.3
    • Update to 2.14.3-1
    Published Updated
  7. CVE-2026-54906

    Low · CVSS 2.1EPSS 0.16%Fix available

    concurrent-ruby: ReadWriteLock allows wrong-thread write release and stray read-release counter corruption

    concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::ReadWriteLock#release_write_lock does not verify that the calling thread acquired the write lock. Any thread with access to the lock object can release an active write lock held by another thread. A second writer can then enter its critical section while the first writer is still running. Concurrent::ReadWriteLock#release_read_lock also decrements the shared counter even when no read lock is held. Calling it on a fresh lock changes the counter from 0 to -1, after which normal read acquisition raises Concurrent::ResourceLimitError. This is a synchronization cor

    • Update to 1.3.7
    • Update to 1.3.7-1
    Published Updated
  8. CVE-2026-54904

    High · CVSS 8.2EPSS 0.67%Fix available

    concurrent-ruby: `AtomicReference#update` livelocks when the stored value is `Float::NAN`

    concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::AtomicReference#update can enter a permanent busy retry loop when the current value is Float::NAN. The issue is caused by the interaction between AtomicReference#update, which retries until compare_and_set(old_value, new_value) succeeds; Numeric compare_and_set, which checks old == old_value before attempting the underlying atomic swap.; and Ruby NaN semantics, where Float::NAN == Float::NAN is always false. As a result, once an AtomicReference contains Float::NAN, calling #update repeatedly evaluates the caller's block and never returns. In services that stor

    • Update to 1.3.7
    • Update to 1.3.7-1
    Published Updated
  9. CVE-2026-54905

    Low · CVSS 2EPSS 0.15%Fix available

    concurrent-ruby: `ReentrantReadWriteLock` read-count overflow grants a write lock without exclusivity

    concurrent-ruby is a modern concurrency tools for Ruby. Prior to 1.3.7, Concurrent::ReentrantReadWriteLock can incorrectly grant a write lock after one thread acquires the read lock 32,768 times. The lock stores a thread's local read and write hold counts in one integer. The low 15 bits are used for the read hold count, and bit 15 is used as WRITE_LOCK_HELD. After 32,768 reentrant read acquisitions, the local read count crosses into the write-lock bit. try_write_lock then treats the thread as already holding a write lock and returns true without setting the global RUNNING_WRITER bit. This breaks the core mutual-exclusion guarantee: the caller

    • Update to 1.3.7
    • Update to 1.3.7-1
    Published Updated
  10. CVE-2026-47242

    Medium · CVSS 5.8EPSS 0.13%Fix available

    Net::IMAP: Command Injection via ID command argument

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, when Net::IMAP#id is called with a hash argument, although the ID field value strings are correctly quoted (escaping quoted specials), they were not validated to prohibit CRLF sequences. While Net::IMAP#enable does process its arguments for aliases, it does not validate them as valid atoms (or as a list of valid atoms). The #to_s value is sent verbatim. Arguments to either command could be used by an attacker to inject arbitrary IMAP commands. This vulnerability is fixed in 0.6.5 and 0.5.15.

    • Update to 0.4.25-r0
    • Update to 0.5.15
    • Update to 0.5.15-r0
    • Update to 0.6.4.1
    • Update to 3.3.13-0+deb13u1
    Published Updated
  11. CVE-2026-47240

    Medium · CVSS 5.8EPSS 0.49%Fix available

    Net::IMAP: Command Injection via non-synchronizing literal in "raw" argument

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a "raw data" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals. A server without support for non-synchronizing literals may interpret the "+}\r\n" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined co

    • Update to 0.4.25-r0
    • Update to 0.5.15
    • Update to 0.5.15-r0
    • Update to 0.6.4.1
    • Update to 3.3.13-0+deb13u1
    Published Updated
  12. CVE-2026-47241

    Low · CVSS 2.1EPSS 0.24%Fix available

    Net::IMAP: Denial of Service via incomplete raw argument validation

    Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command. This will cause the first command to eventually fail, but also prevents it from returning until another command is sent (from another thread). That other command will not return until the connection is closed. This vulnerability is fixed in 0.6.5 and 0.5

    • Update to 0.4.25-r0
    • Update to 0.5.15
    • Update to 0.5.15-r0
    • Update to 0.6.4.1
    • Update to 3.3.13-0+deb13u1
    Published Updated
  13. CVE-2026-49342

    Medium · CVSS 5.3EPSS 0.33%Fix available

    YARD static cache reads raw traversal paths before router sanitization

    YARD is a documentation generation tool for the Ruby programming language. Prior to version 0.9.44, YARD's static cache lookup reads a request path before the router's path cleanup runs. When a server is configured with a document root, a traversal path such as `/../yard-cache-secret.html` is joined against that root and can return a readable sibling `.html` file outside the intended static tree. Version 0.9.44 patches the issue.

    • Update to 0.9.44
    • Update to 0.9.44-1
    Published Updated
  14. CVE-2026-12515

    Medium · CVSS 4.3EPSS 0.22%Fix available

    Katello: missing repository authorization in content_uploads exposes cross-product content existence

    A flaw was found in Katello's of Red Hat Satellite. A content upload functionality where insufficient authorization checks in the ContentUploadsController allowed users with the edit_products permission to query content information for repositories outside the products they were authorized to manage. An authenticated attacker could exploit this issue to determine whether specific content exists within repositories that should otherwise be inaccessible. This issue does not allow unauthorized modification, import, or publication of content.

    • Update to 4.21.0.rc1
    Published Updated
  15. CVE-2026-44587

    Medium · CVSS 4.7EPSS 0.22%Fix available

    CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters

    CarrierWave is a framework to upload files from Ruby applications. In versions prior to 2.2.7 and 3.1.3, the content_type_denylist check fails to escape regex metacharacters in string entries, causing the denylist to silently not match the content types it is intended to block. In lib/carrierwave/uploader/content_type_denylist.rb:57, denylist entries are interpolated directly into a regex without Regexp.quote or anchoring, so an entry such as image/svg+xml becomes the pattern /image\/svg+xml/, in which + is treated as a quantifier rather than a literal character and therefore never matches the real MIME type image/svg+xml. This is inconsisten

    • Update to 2.2.7
    • Update to 3.1.3
    Published Updated
  16. GHSA-xf4v-w5x5-pv79

    Medium · CVSS 5.2Fix available

    Spree: CSV Formula Injection in Customer Export

    ### Summary CSV formula injection (also known as formula injection or CSV injection) affects customer export. User-controlled values customer names, email addresses, and shipping addresses. When an administrator opens a crafted Export in Microsoft Excel or LibreOffice Calc, formulas embedded in user data execute in the context of the administrator's desktop, potentially exfiltrating data or executing OS commands via DDE (Dynamic Data Exchange). --- ### Details #### Affected presenters and fields | Presenter | Path | User-controlled fields | |---|---|---| | `CustomerPresenter` | `spree/core/app/presenters/spree/csv/customer_presenter.rb:3

    • Update to 5.2.8
    • Update to 5.3.6
    • Update to 5.4.3
    Published Updated
  17. CVE-2026-44836

    Medium · CVSS 6.5EPSS 0.34%Fix available

    view_component: Preview Route Can Dispatch Inherited Helper Methods

    view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 3.0.0 to 4.9.0, the preview route derives an example name from the URL and calls it with public_send. The code does not verify that the requested method is one of the preview examples explicitly defined by the preview class. As a result, inherited public methods on ViewComponent::Preview are route-reachable. The most important one is render_with_template, which accepts template: and locals:. Those values can come from request params and are later passed to Rails as render template:. If previews are exposed, an attacker can re

    • Update to 4.12.0-1
    • Update to 4.9.0
    Published Updated
  18. CVE-2026-44837

    Medium · CVSS 5.9EPSS 0.41%Fix available

    view_component: System Test Entry Point Path Check Allows Sibling Directory Escape

    view_component is a framework for building reusable, testable, and encapsulated view components in Ruby on Rails. From 3.0.0 to 4.9.0, the system test entrypoint canonicalizes a user-controlled file path with File.realpath, then checks whether the resolved path starts with the temp directory path. This is not a safe containment check because sibling directories can share the same string prefix. This vulnerability is fixed in 4.9.0.

    • Update to 4.12.0-1
    • Update to 4.9.0
    Published Updated
  19. CVE-2026-40295

    Medium · CVSS 6.1EPSS 0.24%Fix available

    Devise: Open Redirect via Unvalidated `request.referrer` in Timeoutable Session Timeout Handler

    Devise is an authentication solution for Rails based on Warden. In versions 5.0.3 and below, when the Timeoutable module is enabled in Devise, the FailureApp#redirect_url method returns request.referrer — the HTTP Referer header, which is attacker-controllable — without validation for any non-GET request that results in a session timeout. An attacker who hosts a page with an auto-submitting cross-origin form can cause a victim with an expired Devise session to be redirected to an arbitrary external URL. This contrasts with the GET timeout path (which uses server-side attempted_path) and Devise's own store_location_for mechanism (which strips

    • Update to 5.0.4
    Published Updated
  20. CVE-2026-33637

    Low · CVSS 0EPSS 0.27%Fix available

    Faraday: Protocol-relative URI objects still bypass host scoping (possible incomplete fix for GHSA-33mh-2634-fwr2)

    Faraday is an HTTP client library abstraction layer that provides a common interface over many adapters. Versions 2.0.0 through 2.14.1 still allow protocol-relative host override when the request target is passed as a URI object (rather than a String) to Faraday::Connection#build_exclusive_url. This bypasses the February 2026 fix for GHSA-33mh-2634-fwr2 and enables off-host request forgery: a request built from a fixed-base Faraday::Connection can be redirected to an attacker-controlled host, forwarding connection-scoped values such as Authorization headers and default query parameters. This issue has been fixed in version 2.14.3.

    • Update to 2.14.2
    • Update to 2.14.3-1
    Published Updated

Check your server

Check your installed stack and versions against the current vulnerability feeds.

Check your server →