Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Crystal Blog 1 min read Release easyNovice

Crystal 1.20.3 is released!

Crystal 1.20.3 fixes two security vulnerabilities in the YAML parsers. Recursive parsing had no limit on nesting depth, so deeply nested documents could overflow the stack; `YAML::PullParser` now has a `max_nesting` option. Alias expansion was open to the billion laughs attack, where a 100-node document could expand to over a billion nodes; an alias-to-anchor ratio check now blocks this. Applications that parse YAML from untrusted sources should upgrade promptly.

Assumes: YAML anchors and aliases

Related posts

  • Crystal 1.22.3 is released!

    Crystal Blog mediumAdept

    Crystal 1.22.3 is a patch release of 14 changes from 4 contributors, focused on security fixes and regressions. Sockets now reject port numbers above 65535 instead of silently truncating them, for example binding 73616 as 8080. The HTTP parser now rejects invalid headers, chunk lines and Content-Length values that could cause request desync, and a `close` token in the Connection header always closes the connection. The release also fixes `IO::Delimited` matching after a fragmented delimiter and an `Enum.parse?` regression from 1.22.0 that could cause out-of-bounds writes.

  • Ruby2Shell (CVE-2026-132825): find vulnerable Ruby across your repos

    Sourcegraph mediumAdept

    Ruby2Shell (CVE-2026-132825) is a critical heap overflow in Ruby's string case conversion that researchers say default Rails and classic Sinatra apps expose without authentication, with remote code execution proofs of concept known. Fixed releases are 3.3.14, 3.4.13 and 4.0.10, and the hard part is finding which interpreter actually runs, because Dockerfiles, .ruby-version, Gemfile and Gemfile.lock can disagree and vendor products may bundle their own Ruby. Sourcegraph gives regex Code Search queries for affected version pins, a Deep Search prompt to reconcile pins per repo, and an Agentic Batch Changes prompt to bump exact pins within each series. Floating tags, unresolved build args and Ruby 3.2 or earlier are flagged for rebuild, review or migration rather than edited automatically.

  • Crystal 1.22.0 is released!

    Crystal Blog mediumAdept

    Crystal 1.22.0 makes processes exit immediately on EPIPE when writing to STDOUT/STDERR, mimicking SIGPIPE, with an opt-out via `STDOUT.exit_on_broken_pipe = false`. It also removes the long-deprecated `Process.fork` and adds type declarations on constants. aarch64-linux is promoted to Tier 1, and a reworked DWARF parser scans sections on demand, builds an index once and caches decoded backtrace lines in an LRU cache. Native epoll/kqueue event loops are now the default on all targets with libevent opt-in, alongside many HTTP validation fixes and LLVM 23.1/24.0 support; Kernel TLS was enabled but reverted in 1.22.1.

  • Announcing Rust 1.100.0

    Rust Blog mediumAdept

    Rust 1.100.0 stabilizes the never type `!` after a decade and five failed attempts, makes `Infallible` an alias for it, and switches never-type fallback from `()` to `!` in pre-2024 editions, a rare-case breaking change that may also surface more unreachable code. The release also stabilizes the core `Allocator` trait for `Vec` and `Box`, adds `DropGuard` for closure-based cleanup with a `dismiss` escape hatch for rollback patterns, and introduces unsafe `conjure_zst` as the sanctioned way to create zero-sized types. Cargo gains an unused-dependency lint under `[lints.cargo]`, a `build-dir` layout that consistently applies the build-configuration hash to cut cache collisions, and `global-min-publish-age` dependency cooldowns that hold back freshly published crate versions to reduce supply-chain risk.

  • How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

    Cloudflare mediumAdept

    ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution. Default Rails and classic Sinatra apps are exposed before authentication because Rack's MethodOverride middleware upcases the `_method` parameter, which an attacker can send in a legacy charset via a multipart POST. Cloudflare added Block-by-default managed rules for this CVE and the related integer overflow GHSA-87fm-7w84-j2px on all plans, and suggests attack-score custom rules as extra defense. It stresses that the WAF cannot see direct-to-origin, internal or non-HTTP paths, so upgrading to Ruby 3.3.14, 3.4.13 or 4.0.10 and restarting all processes is the real fix.

The quest for software engineering knowledge.

Look:
Layout: