{
  "schemaVersion": "ebb.rule.v1",
  "id": "container.mysql.eol-8.0-and-older",
  "ecosystem": "container",
  "purl": "pkg:docker/library/mysql",
  "affectedVersions": "vers:semver/<8.1.0",
  "event": "end-of-life",
  "severity": "high",
  "title": "MySQL image release lines 8.0 and older are past end-of-life",
  "summary": "Oracle lists MySQL 8.0 and 5.7 as covered only by Sustaining Support, which means no new fixes. The mysql.com end-of-life notice refuses automated requests (HTTP 403), so it can only be reviewed by hand.",
  "replacement": "A mysql image on a supported release such as the 8.4 LTS line",
  "deadline": "2026-04-21",
  "sources": [
    {
      "title": "MySQL end-of-life notice",
      "url": "https://www.mysql.com/support/eol-notice.html",
      "accessedAt": "2026-11-07"
    }
  ],
  "provenance": {
    "observedAt": "2026-11-07",
    "reviewedAt": "2026-11-07",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "A new MySQL release line can need a data directory upgrade; read the upgrade notes and take a backup before starting the new image on existing data.",
      "Check SQL modes, authentication plugins, and client libraries against the target release."
    ],
    "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 compose config",
        "purpose": "Validate the Compose file after changing the image tag."
      },
      {
        "command": "docker compose run --rm db mysqld --version",
        "purpose": "Confirm the database container runs the intended release (service name may differ)."
      }
    ]
  }
}
