# How do you stop Trivy from flagging patched Debian and Alpine CVE backports?

Answers / Scanner triage. Breadcrumb: [Home](https://osty.dev/) / [Answers](https://osty.dev/answers) / Trivy backport false positives

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.

Table: Signals for a distro CVE finding and whether each one justifies suppression

| 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. |

Check a Trivy report for backports: https://osty.dev/tools/backport-check

## 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](https://osty.dev/tools/backport-check) 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.

Explain every CVE in a Trivy JSON report:

```bash
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.txt
```

## What 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.

## Related pages

- [Plan](https://osty.dev/plan): Upgrade intelligence before CI: distro backport proof, ELF and glibc ABI floors, SPDX license gates, compiler-verified breaking call sites and topological rollout waves.
- [Trivy Operator integration](https://osty.dev/integrations/trivy-operator): Explain Trivy Operator CVEs against Osty's distro evidence.
- [Osty vs DIY stack](https://osty.dev/compare/osty-vs-diy-stack): Trivy, Renovate, Socket free tier and Argo CD compared with Osty.
- [Benchmarks](https://osty.dev/benchmarks): The 15 adversarial scenarios `a01` to `a15` and the TLA+ models that Osty's code is held to.

## See what is actually exposed in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories. The report strips out backport and reachability noise before your team or coding agents patch it, and flags stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/answers/stop-trivy-debian-alpine-backport-false-positives
