p PatchFirst

PatchFirst · Latest vulnerabilities

ruby stack vulnerabilities · Page 7

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-47737

    High · CVSS 7.5EPSS 0.18%Fix available

    Puma PROXY Protocol v1 Accepts Repeated Protocol Headers on Persistent Connections

    Puma is a Ruby/Rack web server built for parallelism. From 5.5.0 until 7.2.1 and 8.0.2, Puma is vulnerable to source IP spoofing when set_remote_address proxy_protocol: :v1 is enabled and persistent connections are used because Puma incorrectly re-parses PROXY protocol headers after each keep-alive request on the same connection, allowing an attacker to inject a second PROXY header and overwrite REMOTE_ADDR. This issue is fixed in versions 7.2.1 and 8.0.2.

    • Update to 5.6.5-3+deb12u2
    • Update to 7.2.1
    • Update to 8.0.2
    • Update to 8.0.2-1
    Published Updated
  2. CVE-2026-44161

    High · CVSS 7.2EPSS 0.44%Fix available

    Fluentd: Server-Side Request Forgery (SSRF) via Placeholder Expansion in `out_http`

    Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Prior to 1.19.3, the Fluentd out_http output plugin allows placeholders such as ${tag} in the endpoint configuration parameter, and if a placeholder value is derived from untrusted input an attacker can control the destination hostname of outbound HTTP requests and force requests to arbitrary internal services. This issue is fixed in version 1.19.3.

    • Update to 1.19.3
    Published Updated
  3. CVE-2026-44160

    High · CVSS 7.5EPSS 0.62%Fix available

    Fluentd: Denial of Service (DoS) via Gzip Decompression Bomb in `in_http` and `in_forward`

    Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Prior to 1.19.3, Fluentd's in_http and in_forward plugins support gzip-compressed data but enforce limits only on compressed payloads through settings such as body_size_limit and chunk_size_limit, allowing crafted compressed payloads to decompress in memory to an excessive size and cause denial of service through memory exhaustion. This issue is fixed in version 1.19.3.

    • Update to 1.19.3
    Published Updated
  4. CVE-2026-44025

    High · CVSS 7.5EPSS 0.47%Fix available

    Fluentd: Exposure of Sensitive Information via Monitor Agent API

    Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Prior to 1.19.3, Fluentd's Monitor Agent plugin in_monitor_agent exposes internal metrics and plugin information via a REST API, and responses from /api/plugins.json and related endpoints unintentionally include internal instance variables that may contain database passwords, API keys, or cloud credentials. This issue is fixed in version 1.19.3.

    • Update to 1.19.3
    Published Updated
  5. CVE-2026-44024

    Critical · CVSS 9.8EPSS 1.08%Fix available

    Fluentd: Remote Code Execution (RCE) via Arbitrary File Write in `${tag}` Placeholder

    Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Prior to 1.19.3, Fluentd allows dynamically constructing file paths using the ${tag} placeholder, and insufficient validation of ${tag} in file configurations such as the path parameter of the out_file plugin allows attackers sending untrusted tags containing path traversal characters to write or overwrite arbitrary files and potentially achieve remote code execution. This issue is fixed in version 1.19.3.

    • Update to 1.19.3
    Published Updated
  6. CVE-2026-54903

    Medium · CVSS 6.3EPSS 0.41%Fix available

    Oj: Integer Overflow in Oj.load 2GB String Handling

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj.load is vulnerable to heap corruption when parsing a JSON string longer than 2 GB. An integer overflow in buf_append_string (buf.h:61) converts the string length to a large negative size_t, causing memcpy to copy an astronomically large amount of data out of bounds. This crashes the process and can corrupt adjacent heap memory. The issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  7. CVE-2026-54902

    Medium · CVSS 6.3EPSS 0.5%Fix available

    Oj: Use-After-Free in Oj::Parser SAJ Long Key Callback

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to version 3.17.2, is vulnerable to Use-After-Free when in SAJ mode. The Oj::Parser does not protect cached object keys (≥ 35 bytes) from garbage collection, and a Ruby callback that triggers GC inside hash_end can cause the key string to be reclaimed while the C parser still holds a pointer to it. The subsequent access to the freed string VALUE results in a segfault, confirmed by an RIP pointing to address 0x4242 (a canary-style pattern suggesting control over the freed memory's content). This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.6-2
    Published Updated
  8. CVE-2026-54901

    Medium · CVSS 6.3EPSS 0.41%Fix available

    Oj: Use-After-Free in Oj::Parser array_class/hash_class GC Marking

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj::Parser in usual mode does not mark array_class and hash_class references during garbage collection, leading to Use-After-Free. If GC runs after the class is assigned but before a parse, the class object is reclaimed, leaving the parser holding a dangling VALUE. The subsequent parse call dereferences the freed object, producing a segfault. This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  9. CVE-2026-54900

    Medium · CVSS 6.3EPSS 0.52%Fix available

    Oj: Negative-Size memcpy in Oj::Parser create_id Attribute Handling

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in usual mode with create_id enabled, Oj::Parser#parse is vulnerable to heap corruption via a negative-size memcpy. When a JSON object key is exactly 65,535 bytes long, an integer truncation in form_attr (usual.c:63) converts the length to -1 before passing it to memcpy. This causes memcpy to copy SIZE_MAX bytes (interpreted as a huge size_t), corrupting heap memory and crashing the process. The issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  10. CVE-2026-54898

    Low · CVSS 2.1EPSS 0.2%Fix available

    Oj: Use-After-Free in Oj::Parser SAJ Callback via Input Mutation

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2,Oj::Parser#parse is vulnerable to a heap use-after-free when a SAJ/SAJ2 callback mutates the input JSON string during parsing. The C engine holds a raw const byte * pointer into the Ruby string's internal buffer. If a callback (e.g. hash_start) resizes the string — for example by calling String#replace with a longer value — Ruby reallocates the string buffer and frees the old one. The C parser's pointer is left dangling; the next character read at parser.c:607 is a use-after-free. This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  11. CVE-2026-54897

    Low · CVSS 2.1EPSS 0.2%Fix available

    Oj : Use-After-Free in Oj::Doc Iterators via Reentrant Close

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to 3.17.2, Oj::Doc iterators (each_value, each_child, each_leaf) were vulnerable to a heap use-after-free. When a Ruby block yielded during iteration calls doc.close or d.close, the document's heap memory is freed while the C iterator is still running. When control returns from the block, the iterator reads from the freed region, producing a use-after-free accessible from pure Ruby. This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  12. CVE-2026-54896

    Low · CVSS 2.1EPSS 0.2%Fix available

    Oj: Heap Buffer Overflow in Oj.dump Exception Serialization via Large Indent

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Exception objects with a large :indent value. The serializer allocates a buffer sized for the object's attributes but does not account for the indent bytes added on each write. With indent: 5000, the accumulation of 5,000-byte indent strings overflows the 13,150-byte heap allocation, corrupting adjacent heap memory. This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  13. CVE-2026-54592

    High · CVSS 7.5EPSS 0.33%Fix available

    Oj: Stack Buffer Overflow in Oj::Doc#each_child via Deeply Nested Input

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj::Doc#each_child, when invoked recursively over a deeply nested JSON document, overflows a fixed-size stack buffer and aborts the process, leading to DoS. In a two-step chain in ext/oj/fast.c, doc_each_child increments doc->where past the where_path[MAX_STACK = 100] array with no bounds check and never restores it (the doc->where-- is missing), so calling each_child recursively from inside the yield block drives doc->where beyond the array. On the next entry the function copies the path into the 800-byte stack-local buffer save_

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  14. CVE-2026-54502

    Medium · CVSS 6.3EPSS 0.4%Fix available

    Oj: Stack Buffer Overflow in Oj.dump via Large Indent

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, Oj.dump is vulnerable to a stack-based buffer overflow when a large :indent value is provided by the developer. fill_indent in dump.h calls memset(indent_str, ' ', (size_t)opts->indent) without validating the size. When opts->indent is set to INT_MAX (2,147,483,647), the (size_t) cast preserves the large value and memset writes 2 GB into the stack-allocated out buffer (4,184 bytes), corrupting the stack and crashing the process. This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  15. CVE-2026-54500

    Medium · CVSS 5.3EPSS 0.2%Fix available

    Oj: intern.c form_attr has an uninitialized stack read

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.3, Oj.load in :object mode reads uninitialized stack memory (and, for long keys, reads out of bounds) when parsing a JSON object whose key is 254 bytes or longer. The interned bytes can surface to the caller, disclosing process stack memory. In ext/oj/intern.c, form_attr() handles the long-key path by allocating a heap buffer, `b`, populating it with the attribute name, and then freeing it — but it passed the uninitialized stack buffer buf (not b) to rb_intern3(). rb_intern3 therefore reads len + 1 bytes of uninitialized stack memory.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.3
    • Update to 3.17.3-1
    Published Updated
  16. CVE-2026-54899

    Medium · CVSS 6.3EPSS 0.41%Fix available

    Oj: Use-After-Free in Oj::Parser Symbol Key Cache Toggle

    Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. Prior to version 3.17.2, disabling symbol_keys on a reused Oj::Parser instance triggers a heap use-after-free. When symbol_keys is toggled from true to false, opt_symbol_keys_set frees the internal key cache (cache_free) but does not clear the pointer. The next parse call reads from the freed cache via cache_intern, producing a use-after-free. This issue has been fixed in version 3.17.2.

    • Update to 3.14.2-1+deb12u1
    • Update to 3.16.3-1+deb13u1
    • Update to 3.17.2
    • Update to 3.17.3-1
    Published Updated
  17. CVE-2026-54696

    Low · CVSS 3.7EPSS 0.41%Fix available

    Ruby JSON: JSON generator heap buffer overflow when streaming to an IO

    Ruby JSON is a JSON implementation for Ruby. Versions 2.9.0 through 2.19.8 are vulnerable to heap buffer overflow when the JSON generator is provided with an oversized streamed object. When streaming to an IO JSON.dump(obj, io) and JSON::State#generate(obj, io) can write past the internal JSON generator buffer when a streamed object contains an attacker-controlled string near 16 KB. Exploitation would result in a reliable process crash/denial of service. This issue has been fixed in version 2.19.9.

    • Update to 2.19.9
    • Update to 2.19.9+dfsg-1
    Published Updated
  18. CVE-2026-57438

    Low · CVSS 2.2EPSS 0.12%Fix available

    Nokogiri: Possible Use-After-Free in XInclude Processing

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, XInclude substitution performed by Nokogiri::XML::Node#do_xinclude replaced each <xi:include> in place, freeing the include node along with its children (such as <xi:fallback> and its descendants) and any namespaces declared on them. If an application had already exposed one of those nodes or namespaces to Ruby, the corresponding Ruby object was left pointing at freed memory. Using the object could result in invalid reads or writes to memory. 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
  19. CVE-2026-57437

    Low · CVSS 1.7EPSS 0.4%Fix available

    Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::XPathContext did not keep its source document alive for garbage collection. If an XPathContext outlived its document and the document was collected, evaluating an XPath expression could read invalid memory and potentially segfault. This is only reachable when application code constructs an XPathContext directly and lets the document become unreachable while continuing to use the context. The normal Document#xpath, #css, and related search methods are not affected, and it is not triggerable by malicious document input. This vulner

    • Update to 1.19.4
    • Update to 1.19.4+dfsg-1
    • Update to 1.19.4-r0
    Published Updated
  20. CVE-2026-57436

    Low · CVSS 1.7EPSS 0.4%Fix available

    Nokogiri: Possible Use-After-Free when setting `Document#root=` to an invalid node type

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri::XML::Document#root= validated only that the new root was a Nokogiri::XML::Node, allowing a DTD node to be set as the document root. The result is a heap use-after-free during garbage collection or finalization, leading to an invalid memory read or potentially a 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

Check your server

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

Check your server →