fix(security): ship pillow 13.0.0 in aiperf-bench, drop pillow VEX #3516
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #3516"
general
weight: 0.35
yuanchen8911
Summary
The
aiperf-benchimage now ships pillow 13.0.0 instead of 12.3.0, which removes all 28 HIGH+ pillow advisories from the image instead of suppressing them. The 28 pillow OpenVEX statements are retired, so.openvex.jsongoes back to"statements": [].Motivation / Context
aiperf 0.13.0 (the newest release) pins
pillow~=12.3.0, and every one of these advisories is fixed only in pillow 13.0.0, so no aiperf bump reaches the fix. #3492 hid them withnot_affectedstatements. This PR removes them.This is a stopgap until upstream releases. The proper fix is ai-dynamo/aiperf#1630, which moves aiperf itself to
pillow~=13.0.0. It's still open and unreleased, and we're waiting on an aiperf release that includes it. When that ships, a follow-up bumps aiperf inrequirements.txt(andAIPERF_VERSION), deletes the pillow line fromrequirements-overrides.txt, and rerunsmake python-licenses.Fixes: N/A
Related: #3515 (stays open until an inference-perf run and the first post-merge release scan confirm pillow is gone)
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)aiperf-benchimage (validators/performance), notices/source tooling (tools/generate-*), OpenVEXImplementation Notes
requirements.txt. The newvalidators/performance/requirements-overrides.txtholdspillow==13.0.0, and the Dockerfile installs it withpip install --no-depsright after the main install, in the sameRUNas the pip uninstall.requirements.txtnow read the overrides file too, so they keep describing what actually ships:-
tools/generate-python-licensesdownloads the overrides with--no-depsand gives them precedence. The attribution therefore records pillow 13.0.0, not 12.3.0. With--wheels-dir, override wheels come from anoverrides/subdirectory.-
tools/generate-aiperf-sourceresolves the overrides with--no-depsand swaps them into the closure, so the source referrer publishes pillow 13.0.0's sdist.-
tools/generate-noticesandTestCommittedFragmentMatchesRequirementscheck the overrides file's sha256 as well asrequirements.txt's. Editing either one without runningmake python-licensesfails closed, and the merge-gate path filter now watches the new file.--no-depsmust replace a version, never add a package, because the added package's own dependencies would never be installed. The license tool also warns when an override is redundant.Image.open/new/fromarray(withoutmode),resize(Image.LANCZOS),tobytes,registered_extensionsandImageDraw. None of the APIs pillow 13.0.0 removed are used:Image._show,Image.Image.get_child_images,ExifTags.IFD.Makernote, the ImageCms product fields, and I-mode PNG clipping.python-notices.mdalso moves about 50 transitive packages to their current releases. That's the existing unpinned-closure behavior (#2086): every image rebuild already resolves those versions. The only override is pillow 12.3.0 → 13.0.0. The package count is unchanged at 138.pip_requirementsfile pattern already matchesrequirements-overrides.txt, so pillow patch releases will get bump PRs. RENOVATE.md now lists the file.- The document moves to version 25 with no statements.
- The
pillow-13-blocked-by-aiperf-pinknown-negative invex-state.yamlis deleted, because overriding the range is exactly what it said had not been tried.- A deferred verification is added for the first weekly scan on main after this merges.
Testing
aiperf-benchlocally for linux/amd64 (docker buildx build --platform linux/amd64 -f validators/performance/aiperf-bench.Dockerfile):- The image has pillow 13.0.0 and aiperf 0.13.0.
aiperf --versionandaiperf profile --helprun, and pip is still absent from the runtime.- aiperf's pillow-using modules import cleanly (
aiperf.dataset.utils,aiperf.dataset.generator.image,aiperf.dataset.generator.video).- Every pillow call aiperf makes works on pillow 13:
fromarray,ImageDraw, LANCZOS resize,tobytes, and a PNG/JPEG save-and-reopen round trip.--only-fixed -c .grype.yaml) and no VEX file. Main's image has 28 pillow critical/high findings, and this PR's image has none, with no pillow match at any severity. syft catalogspillow 13.0.0. What remains is 1 critical (CVE-2026-115557) and 3 mediums, all in CPython 3.13.16 from the distroless base and present on main too. That critical is new in the 2026-10-30 DB and needs a base with Python 3.13.18, handled separately. The before/after comparison and raw output are in the test evidence comment below.make python-licensesresolved 138 packages and loggedoverride pillow: 12.3.0 -> 13.0.0.tools/generate-aiperf-source'sread_closure()against live PyPI returned the same 138 packages with('pillow', '13.0.0').tests/notices:- override precedence and an override outside the closure, for both generators;
- stale-fragment rejection when only the overrides file changed;
- the committed-fragment hash check for both inputs.
The
generate-noticesstaleness tests ran against the real go-licenses.Not done yet: an inference-perf UAT run on the rebuilt image. The weekly scan on main is tracked as a deferred verification in
vex-state.yaml.Risk Assessment
Rollout notes: The image runs aiperf against a pillow major version that aiperf doesn't declare support for. AICR's invocation (
aiperf profile --endpoint-type chat, text-only) never reaches pillow, and the APIs aiperf does call were exercised in the built image. If anything regresses, reverting this PR restores pillow 12.3.0 and the VEX statements. N/A otherwise.Checklist
make testwith-race)make lint)git commit -s -S) — GPG signing info