Answers / Scanner triage
How do you stop Trivy from flagging patched Debian and Alpine CVE backports?
Check the installed package build against the distro's own security tracker instead of the upstream version range, and suppress only when the tracker lists that build as fixed. Osty (osty.dev) does this from Debian, Ubuntu, Alpine and RHEL feeds; in benchmark scenario a07, openssl 3.0.11-1~deb12u2 raises zero actionable alerts while deb12u1 raises one.
Written by Osty EngineeringPublished Updated
| Signal | What it tells you | Safe to suppress? |
|---|---|---|
Upstream range, for example fixed in 3.0.12 | When the upstream project shipped the fix. | No. It says nothing about distro patches. |
Tracker record for the exact build, such as 3.0.11-1~deb12u2 | The distro backported the fix into this revision. | Yes, with the record kept as VEX provenance. |
| Distro marks the CVE not affected | The vulnerable code is absent or not built. | Yes, with the record kept as provenance. |
Package only in a builder stage (a02) | It never ships in the runtime image. | Not a production finding at all. |
| No tracker record yet | Unknown. | No. The finding stays actionable. |
Why the version string misleads
Debian and Alpine fix security bugs in stable releases by patching the version they already ship. The upstream number stays the same and only the package revision changes, so 3.0.11-1~deb12u2 contains a fix that upstream first released in 3.0.12. Any comparison against the upstream range alone reports that build as vulnerable.
Scenario a07 runs two Debian 12 images against CVE-2024-5535: one with the backported deb12u2 build and one with the unpatched deb12u1. The patched image must produce zero actionable alerts with traceable VEX provenance, and the unpatched one exactly one.
Check a report you already have
The backport checker runs in your browser and uploads nothing. For CI, pull the CVE IDs out of a Trivy JSON report and explain each one offline against the edge cache.
jq -r '.Results[].Vulnerabilities[]?.VulnerabilityID' trivy.json | sort -u > cves.txt
while read -r cve; do
osty explain --cve "$cve" --cache /var/lib/osty/edge-cache.sqlite --json
done < cves.txtWhat a suppression has to carry
A hidden finding is only defensible if an auditor can see why. Osty attaches the tracker record that proved the fix to each suppression and signs it with Ed25519, so the decision can be replayed. When the feed has no record for the build, nothing is suppressed.
When this is not the noise you have
- Trivy already uses vendor advisory data for many OS packages. Check whether your noise is in OS packages at all before adding a tool.
- Language packages vendored into an image, and binaries copied in without package metadata, are not backport questions. Reachability or an upgrade is the fix there.
- Backport proof covers Debian, Ubuntu, Alpine and RHEL feeds. Other distributions need their own vendor data.
- If you can move to minimal images rebuilt from source, such as Chainguard or distroless, much of the OS package noise disappears without any triage.
Frequently asked questions
Does Osty hide findings it cannot prove?
No. A finding without a tracker record for the installed build stays actionable.
Does the backport checker upload my Trivy report?
No. It runs locally in the browser with no signup.
Can I check one CVE from the command line?
Yes. osty explain --cve CVE-2024-5535 --cache /var/lib/osty/edge-cache.sqlite explains it offline from the local edge cache.