Skip to content

Support CycloneDX evidence for file locations #3880

@Sirdorblu

Description

@Sirdorblu

i'v created a sbo-generator for uninstalled deb pkg, for example, what i get:

      "bom-ref": "644d44b4eb7e02495e40d0b69ff8ae953007b437e9c768f1c1fff33f2877024f",
      "type": "library",
      "supplier": {
        "name": "Ubuntu Developers \u003cubuntu-devel-discuss@lists.ubuntu.com\u003e"
      },
      "name": "zeromq3",
      "version": "4.3.2-2ubuntu1.20.04.1~esm2",
      "description": "lightweight messaging kernel (shared library)\nØMQ is a library which extends the standard socket interfaces with features\ntraditionally provided by specialised messaging middleware products.\n.\nØMQ sockets provide an abstraction of asynchronous message queues, multiple\nmessaging patterns, message filtering (subscriptions), seamless access to\nmultiple transport protocols and more.\n.\nThis package contains the libzmq shared library.",
      "hashes": [
        {
          "alg": "SHA-256",
          "content": "644d44b4eb7e02495e40d0b69ff8ae953007b437e9c768f1c1fff33f2877024f"
        }
      ],
      "cpe": "cpe:2.3:a:ubuntu:zeromq3:4_3_2_2ubuntu1_20_04_1~esm2:*:*:*:*:*:*:*",
      "purl": "pkg:deb/ubuntu/zeromq3@4.3.2-2ubuntu1.20.04.1~esm2?arch=amd64",
      "externalReferences": [
        {
          "url": "https://www.zeromq.org/",
          "type": "website"
        }
      ],
      "evidence": {
        "occurrences": [
          {
            "location": "packages\libzmq5_4.3.2-2ubuntu1.20.04.1~esm2_amd64.deb"
          }
        ]
      }
    
But doesnt see a location, why?
   "vulnerability": {
    "id": "CVE-2021-20234",
    "dataSource": "https://ubuntu.com/security/CVE-2021-20234",
    "namespace": "ubuntu:distro:ubuntu:20.04",
    "severity": "Low",
    "urls": [
     "https://ubuntu.com/security/CVE-2021-20234"
    ],
    "cvss": [],
    "fix": {
     "versions": [],
     "state": "not-fixed"
    },
    "advisories": []
   },
   "relatedVulnerabilities": [
    {
     "id": "CVE-2021-20234",
     "dataSource": "https://nvd.nist.gov/vuln/detail/CVE-2021-20234",
     "namespace": "nvd:cpe",
     "severity": "Medium",
     "urls": [
      "https://bugzilla.redhat.com/show_bug.cgi?id=1921972",
      "https://github.com/zeromq/libzmq/security/advisories/GHSA-wfr2-29gj-5w87",
      "https://bugzilla.redhat.com/show_bug.cgi?id=1921972",
      "https://github.com/zeromq/libzmq/security/advisories/GHSA-wfr2-29gj-5w87"
     ],
     "description": "An uncontrolled resource consumption (memory leak) flaw was found in the ZeroMQ client in versions before 4.3.3 in src/pipe.cpp. This issue causes a client that connects to multiple malicious or compromised servers to crash. The highest threat from this vulnerability is to system availability.",
     "cvss": [
      {
       "source": "nvd@nist.gov",
       "type": "Primary",
       "version": "2.0",
       "vector": "AV:N/AC:M/Au:N/C:N/I:N/A:P",
       "metrics": {
        "baseScore": 4.3,
        "exploitabilityScore": 8.6,
        "impactScore": 2.9
       },
       "vendorMetadata": {}
      },
      {
       "source": "nvd@nist.gov",
       "type": "Primary",
       "version": "3.1",
       "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
       "metrics": {
        "baseScore": 6.5,
        "exploitabilityScore": 2.8,
        "impactScore": 3.6
       },
       "vendorMetadata": {}
      }
     ]
    }
   ],
   "matchDetails": [
    {
     "type": "exact-direct-match",
     "matcher": "dpkg-matcher",
     "searchedBy": {
      "distro": {
       "type": "ubuntu",
       "version": "20.04"
      },
      "namespace": "ubuntu:distro:ubuntu:20.04",
      "package": {
       "name": "zeromq3",
       "version": "4.3.2-2ubuntu1.20.04.1~esm2"
      }
     },
     "found": {
      "versionConstraint": "none (deb)",
      "vulnerabilityID": "CVE-2021-20234"
     }
    }
   ],
   "artifact": {
    "id": "763aa19b328d5d18",
    "name": "zeromq3",
    "version": "4.3.2-2ubuntu1.20.04.1~esm2",
    "type": "deb",
    "locations": [],
    "language": "",
    "licenses": [],
    "cpes": [
     "cpe:2.3:a:ubuntu:zeromq3:4_3_2_2ubuntu1_20_04_1~esm2:*:*:*:*:*:*:*"
    ],
    "purl": "pkg:deb/ubuntu/zeromq3@4.3.2-2ubuntu1.20.04.1~esm2?arch=amd64",
    "upstreams": []
   }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions