{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.ruby.eol-3.2-and-older",
  "ecosystem": "container",
  "purl": "pkg:docker/library/ruby",
  "affectedVersions": "vers:semver/<3.3.0",
  "event": "end-of-life",
  "severity": "high",
  "title": "Ruby image release lines 3.2 and older are end-of-life",
  "summary": "These Ruby branches no longer receive security or bug fixes.",
  "replacement": "A ruby image on a supported branch",
  "deadline": "2026-04-01",
  "sources": [
    {
      "title": "Ruby maintenance branches",
      "url": "https://www.ruby-lang.org/en/downloads/branches/",
      "accessedAt": "2026-10-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-16",
    "reviewedAt": "2026-10-16",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the base image, .ruby-version, Gemfile ruby requirement, and CI matrices on one supported Ruby branch.",
      "Confirm gems with native extensions build on the target Ruby, and rebuild bundled gems inside the image."
    ],
    "steps": [
      {
        "id": "update-image-declaration",
        "title": "Update the base image",
        "instructions": "Change the reported FROM line or Compose image to a tag on a supported release line, and pin it to a digest if your policy requires.",
        "targets": "declaration"
      },
      {
        "id": "align-image-surfaces",
        "title": "Align other image references",
        "instructions": "Update other Dockerfiles, Compose files, CI service containers, and deployment manifests that use the same image so they agree.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "docker build .",
        "purpose": "Build the image on the new base."
      },
      {
        "command": "docker run --rm IMAGE ruby --version",
        "purpose": "Confirm the container runs the intended Ruby version."
      }
    ]
  }
}
