{
  "@context": "https://openvex.dev/ns/v0.2.0",
  "@id": "https://quench-works.com/vex/memos/2026-11-15",
  "author": "QuenchWorks <info@quench-works.com>",
  "timestamp": "2026-11-15T00:00:00Z",
  "version": 1,
  "statements": [
    {
      "vulnerability": {
        "name": "CVE-2023-36308"
      },
      "products": [
        {
          "@id": "pkg:golang/github.com/disintegration/imaging@v1.6.2"
        }
      ],
      "status": "not_affected",
      "justification": "inline_mitigations_already_exist",
      "impact_statement": "Measured 2026-11-15. imaging 1.6.2 has no fixed release (upstream inactive since 2020); its scanner indexes the palette table with raw pixel values (scanner.go:242), so an image.Paletted whose pixel indexes exceed its palette panics it. Memos strips EXIF from JPEG, TIFF, WebP and HEIC uploads with imaging.Decode (server/api/attachment_service_image.go:111), sniffing the content as well as the declared type. The decoders this binary registers cannot produce such an image: golang.org/x/image is at v0.47.0 (Memos 26.11.0 already requires v0.45.0; the recipe floors v0.47.0 in apps/memos/melange.yaml), whose bmp reader rejects out-of-range palette indexes (fixed in v0.41.0, 'bmp: reject input with invalid palette index') and whose tiff reader rejects them ('invalid color index'); Go's gif decoder rejects bad pixels and its png decoder grows the palette to fit. The recipe also patches imaging's scanner.go at build time to size the palette table for every uint8 index (go mod vendor + sed, asserted by grep). Proven by the smoke test (tools/qw/internal/smoke/servers86.go): a 62-byte BMP with a 2-entry palette and pixel index 70, uploaded as image/jpeg through POST /api/attachments, goes through the EXIF strip and the server keeps serving. Revisit if Memos lowers x/image below v0.41.0 or adds a decoder."
    }
  ]
}
