Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Container scan matches Debian and Ubuntu packages against every Ubuntu release's USN advisories

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 2 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      ThitLonGiaCay
      last edited by

      Summary

      The package list from a container scan carries no distro or release, e.g.
      pkg:deb/apt@2.6.1?arch=amd64 (no distro=debian-12 qualifier). Every pkg:deb package then
      appears to be compared, by version string only, against the USN records of all Ubuntu
      releases. The result is:

      1. Debian images are matched only against Ubuntu data. PGVD does hold Debian advisories
        (e.g. debian/openssl source for bookworm/trixie), but none of them are ever matched.
      2. Ubuntu images get records from other Ubuntu releases. A 22.04 (jammy) image is flagged with
        the 24.04 (noble) and 26.04 (resolute) records of the same USN, whose fixed versions it can
        never reach.

      Example: USN-8996-1 (APT), one advisory = three PGV records

      PGV OVAL source Affects
      PGV-268161R oval:com.ubuntu.jammy:def:8996… apt < 2.4.15ubuntu0.1
      PGV-268161W oval:com.ubuntu.noble:def:8996… apt < 2.8.4ubuntu0.1
      PGV-268162A oval:com.ubuntu.resolute:def:8996… apt < 3.2.1ubuntu0.1
      Image OS (from base-files) apt in image Records matched
      --- --- --- ---
      bitnami/redis:7.4.1-debian-12-r2 Debian 12 (12.4+deb12u8) 2.6.1 268162A, 268161W
      envoyproxy/envoy:v1.33.1 Ubuntu 22.04 (12ubuntu4.7) 2.4.13 268162A, 268161W, 268161R
      • For the Debian image, the verdict comes from Ubuntu's fixed versions, not from Debian's. Whether
        bookworm's apt is actually affected or already fixed is not considered.
      • For the jammy image, only PGV-268161R applies. The noble and resolute records would stay "open"
        even after apt is upgraded to the jammy fix (2.4.15ubuntu0.1), because that version is still
        below 2.8.4ubuntu0.1 and 3.2.1ubuntu0.1.

      Scale

      Image Packages Vulnerability records Distinct CVEs Records that are USN
      bitnami/redis (Debian 12) 101 deb 253 136 253 (100%)
      bitnami/grafana (Debian 12) 125 deb 385 199 385 (100%)
      golang:1.23 (Debian 12) 205 deb 451 230 451 (100%)
      envoy (Ubuntu 22.04) 103 deb 363 165 363 (100%)

      Not a single DSA/DLA record was matched on any Debian image. A single USN typically yields 6–8
      records on one image (one per Ubuntu release). This is also the main source of the duplicate counts
      mentioned in our other post.

      Expected

      • Detect the distro and release from the image (/etc/os-release), as other container scanners do,
        and record it in the purl (?distro=debian-12 / ubuntu-22.04).
      • Match Debian packages against Debian advisories (by source package and release). Match Ubuntu
        packages only against the USN records for that image's release.

      Related coverage questions (same images)

      Image Result Question
      goharbor/harbor-core:v2.12.2 (Photon OS 5) 48 pkg:rpm packages, 0 vulnerabilities PGVD's RPM data appears to be RHSA only. Is Photon OS supported? If not, can the image be marked "OS not covered" instead of showing as clean?
      quay.io/cryostat/cryostat:3.0.1 (UBI 8) 0 packages Is the UBI 8 / RHEL 8 rpm database (Berkeley DB format) read? Photon's rpm DB is read fine.

      Subject: No way to look up a vulnerability by CVE ID

      ProGet 2026.2 (Build 16) and 2026.14 (Build 11), Enterprise.

      The common workflow is: a security team circulates a CVE ID, and we need to answer
      "are we affected, and where?". ProGet holds exactly that answer — the vulnerability
      detail page has an Impacted Containers table listing feed, repository, image
      digest and download count, which is excellent. But we can only reach that page if
      we already know the PGV ID, and nothing we have found maps a CVE to a PGV.

      What we tried:

      Attempt Result
      /vulnerabilities/vulnerability?vulnerabilityId=CVE-2024-3094 renders "not found"
      /vulnerabilities?search= / ?q= / ?cve= no filtering (or HTTP 500)
      security.inedo.com/vulnerability/search?search=CVE-2024-3094 0 results
      security.inedo.com/vulnerability/search?search=PGV-2423510 1 result (works)

      So lookup works by PGV ID only. The CVE is not shown anywhere on ProGet's own
      vulnerability detail page either — PGV-2423510's page contains no CVE-… string
      at all, although the Inedo Security Labs page for the same PGV does show
      CVE-2024-3094, and the containers audit API returns a cve field per
      vulnerability.

      So the data exists on both sides; only the lookup path is missing.

      Requests

      1. Allow vulnerabilityId= (or a search box on Vulnerabilities Identified) to
        accept a CVE ID and resolve it to the matching PGV record(s).
      2. Display the CVE ID(s) on the vulnerability detail page, so the PGV record can at
        least be cross-referenced manually.
      3. Allow searching by CVE on Inedo Security Labs.

      Without these, answering "does CVE-X affect us?" requires enumerating every PGV
      record and resolving each one individually, which is a lot of work for what the
      product already knows.


      Documentation defect — audit API parameters

      The Containers API page documents the audit endpoint as:

      /api/containers/images/audit?feed=docker-internal&repo=nginx&tag=1.28
      

      That returns 400 Missing query string argument: tagOrDigest. The working form is
      feed + tagOrDigest:

      /api/containers/images/audit?feed=<feed>&tagOrDigest=<repo>:<tag>
      

      Also worth documenting: the repository name must have the feed prefix stripped.
      /v2/_catalog returns names like myfeed/base/nginx, and passing that unchanged
      also returns 400; it has to be base/nginx:<tag>.


      Question — collapsing duplicate vulnerability records

      Auditing one container image returned 583 vulnerability records covering 130
      distinct CVEs
      , apparently one record per advisory per distribution release — for
      example CVE-2026-109518 appears three times, each citing a different Ubuntu
      release's fixed version.

      Each advisory being its own record may well be by design. The practical question is
      whether there is a supported deduplicated view, in the API or as a grouping on the
      Vulnerabilities Identified page. Today any count taken from that page overstates
      exposure by roughly 4.5x unless the consumer deduplicates on cve themselves.

      atrippA 1 Reply Last reply Reply Quote
      • atrippA Offline
        atripp inedo-engineer @ThitLonGiaCay
        last edited by

        Hi @ThitLonGiaCay ,

        Regarding CVE searching, the search you identified (security.inedo.com/vulnerability/search?search=CVE-2024-3094) will yield 4 results now. It's not possible to search by CVE in ProGet, however.

        Otherwise, the "distro + vulnerability" is a known limitation. It's something we intend to address in ProGet 2027. I think the underlying issue is two fold:

        1. ProGet does not "know" which distro a container is using
        2. Our Vulnerability records don't identify the distro they apply to

        Therefore, there will be a lot of false positives until then.

        This limitation also applies to feeds. For example, Looking at PGV-265533M, we can see that samba-libs, versions < 2:4.23.6+dfsg-1ubuntu2.2 is impacted, which means all versions less than 2:4.23.6+dfsg-1ubuntu2.2. This information comes from the upstream provider (Ubuntu) via USN-8621-1.

        Per Debian's version number specifications, the version string 2:4.19.5+dfsg-4ubuntu9.8 is indeed less than 2:4.23.6+dfsg-1ubuntu2.2 and thus it's considered impacted.

        Since ProGet does not know which distribution/version (i.e. ubuntu 23.04 vs ubuntu 24.10 vs debian trixie) your feed is intended for. Moreover, our vulnerabilities do not have that information either. As such, there's no way to know that PGV-265533M should be ignored for samba-libs 2:4.19.5+dfsg-4ubuntu9.8, even though it's matched by the version range.

        Thanks,
        Alana

        1 Reply Last reply Reply Quote

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation