Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated CycloneDX file is invalid #1564

Open
anthonyharrison opened this issue Feb 3, 2025 · 0 comments
Open

Generated CycloneDX file is invalid #1564

anthonyharrison opened this issue Feb 3, 2025 · 0 comments

Comments

@anthonyharrison
Copy link

Using osv-scanner to scan a SBOM and produce a CycloneDX 1.5 report produces an invalid file.

File has been validated using the CycloneDX online validator

Issue appears to be with repeated references to the same component in the vulnerability

Sample of invalid entry

      "description": "libwebp: OOB write in BuildHuffmanTable",
      "detail": "Heap buffer overflow in libwebp allow a remote attacker to perform an out of bounds memory write via a crafted HTML page. ",
      "advisories": [
        {
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-4863"
        }
      ],
      "published": "2023-09-12T15:30:20Z",
      "updated": "2024-08-07T19:29:17Z",
      "credits": {
        "organizations": []
      },
      "affects": [
        {
          "ref": "pkg:cargo/libwebp-sys2"
        },
        {
          "ref": "pkg:cargo/libwebp-sys"
        },
        {
          "ref": "pkg:npm/electron"
        },
        {
          "ref": "pkg:npm/electron"
        },
        {
          "ref": "pkg:npm/electron"
        },
        {
          "ref": "pkg:npm/electron"
        },
        {
          "ref": "pkg:npm/electron"
        },
        {
          "ref": "pkg:nuget/SkiaSharp"
        },
        {
          "ref": "pkg:golang/github.com/chai2010/webp"
        },
        {
          "ref": "pkg:pypi/pillow"
        },
        {
          "ref": "pkg:cargo/webp"
        },
        {
          "ref": "pkg:nuget/magick.net-q16-anycpu"
        },
        {
          "ref": "pkg:nuget/magick.net-q16-hdri-anycpu"
        },
        {
          "ref": "pkg:nuget/magick.net-q16-x64"
        },
        {
          "ref": "pkg:nuget/magick.net-q8-anycpu"
        },
        {
          "ref": "pkg:nuget/magick.net-q8-openmp-x64"
        },
        {
          "ref": "pkg:nuget/magick.net-q8-x64"
        }
      ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant