roxctl image scan - fixableCves field missing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start at the roxctl image scan command's handling of the default output and --output json. Compare how fixableCves is represented when no CVEs are fixable versus when fixable CVEs exist, then look for related output or serialization tests. Done means the intended output behavior is defined and consistently verified for both output modes.
索引モデルが issue の本文から書いたものです。
説明
Hi, I'm running ACS 4.9.2 and roxctl 4.9.2
I've noticed differences in behaviour related to the .fixableCves when roxctl scanning various images:
For images with no fixable CVEs, the generated JSON may or may not include "fixableCves": 0
export SCAN_IMAGE="registry.access.redhat.com/ubi10/ubi-minimal:10.1"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify | jq '. | .fixableCves'
null
export SCAN_IMAGE="alpine:3.23"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify | jq '. | .fixableCves'
0
If I look at what fields are present:
export SCAN_IMAGE="registry.access.redhat.com/ubi10/ubi-minimal:10.1"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify | tail -10
}
],
"fetched": "2026-04-23T09:49:58.795410347Z"
},
"components": 97,
"cves": 70,
"lastUpdated": "2026-04-23T09:49:58.846701686Z",
"riskScore": 6.8999996,
"topCvss": 8.1
}
export SCAN_IMAGE="alpine:3.23"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify | tail -10
"components": 16,
"cves": 0,
"fixableCves": 0,
"lastUpdated": "2026-04-23T09:50:17.312875104Z",
"riskScore": 1.3,
"notes": [
"MISSING_SIGNATURE",
"MISSING_SIGNATURE_VERIFICATION_DATA"
]
}
If I try including the --output json flag, it appears the fixableCves key has been dropped?
Using alpine:3.23 there are no CVEs, and so no componentFixedVersion nor fixableCves summary:
export SCAN_IMAGE="alpine:3.23"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify --output json | grep -i fix
Using registry.access.redhat.com/ubi10/ubi-minimal:10.1 there are CVEs, but none are fixable, so componentFixedVersion are present, but there is no fixableCves summary:
export SCAN_IMAGE="registry.access.redhat.com/ubi10/ubi-minimal:10.1"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify --output json | grep -i fix
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
"componentFixedVersion": ""
Confirmation of output if fixable CVEs are present in the image (using alpine:3.19):
export SCAN_IMAGE="alpine:3.19"
roxctl image scan -f --retries=3 --retry-delay=3 --endpoint https://localhost:8443 --image $SCAN_IMAGE --insecure-skip-tls-verify --output json | grep -i fix
"componentFixedVersion": "1.36.1-r21"
"componentFixedVersion": "1.36.1-r21"
"componentFixedVersion": "1.36.1-r21"
"componentFixedVersion": "1.36.1-r21"
"componentFixedVersion": "1.2.4_git20230717-r6"
"componentFixedVersion": "1.2.4_git20230717-r6"
"componentFixedVersion": "1.2.4_git20230717-r6"
"componentFixedVersion": "1.2.4_git20230717-r6"
"componentFixedVersion": "1.36.1-r21"
"componentFixedVersion": "1.36.1-r21"
I guess I therefore have three questions:
- Without the
--outputflag, what is the default output style? - Without the
--outputflag, why is fixableCves sometimes not present if there are no fixable CVEs, vs other times it's set as 0? - Why when using
--output jsondo I no longer get a total number of fixable CVEs included in the JSON (as this is useful for scripts to use in pipeline logging)?
Thanks in advance.
- 主要言語
- Go
- スター
- 1.3k
- フォーク
- 194
- 平均マージ
- 2日 20時間
- マージ済み PR(30日)
- 392
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackrox/stackrox のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
False positive: CVE-2023-29019 (@fastify/passport) reported against npm package passport 0.7.0対応中かも @Molter73 が 1 日前に担当しました。 オープン
stackrox/stackrox#23692 · コメント 3 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
stackrox/stackrox#21616 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Scanner V4 DB (scanner-v4-db) disk usage grows significantly over time (16GB within a few weeks)オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
stackrox/stackrox#21463 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
stackrox/stackrox#20831 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
stackrox/stackrox の issue をすべて見る
似ている issue
-
WriterSetTimes: the UTIME_NOW check fails when the kernel uses its coarse clock対応中かも @JakeChampion が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JakeChampion/lang#14224 ·
メンテナーはふだん 1 日以内に返信
-
agent-butler-finding bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
jordansmall/spindrift#6391 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
SAP/crossplane-provider-btp#1175 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
adk: stream concatenation errors bypass retry and failover対応中かも @OUAO-FRANK が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信