Skip to content

OpenVAS/Greenbone: XML vs CSV import and re-import create inconsistent findings, inflate counts & missing information #12849

@Hamudah

Description

@Hamudah

Bug description

When we import the same Greenbone / OpenVAS scan into DefectDojo we get inconsistent results and not all information is transferred from the scan results:

  • XML vs CSV – importing the identical report in XML format vs CSV produces a different set / count of findings.
  • Re-import of the exact same file – clicking Re-import on an unchanged scan again changes the finding list: some previously-created findings are closed, new ones are created, and several remain “untouched.” The net effect is an ever-growing total count without any real changes in the source data (see attached screenshot).

Question: Is this a known issue with the OpenVAS parser or the deduplication logic?

Steps to reproduce

  1. In DefectDojo, create a Test and Import ScanGreenbone / OpenVAS → upload scan.xml.
  2. Note the IDs and total number of findings created.
  3. In the same Test, Import Scan again but upload the corresponding scan.csv generated from the same Greenbone scan.
  4. Compare findings: counts and IDs differ.
  5. Click Re-import for each of the above uploads; observe that findings are closed/created unexpectedly and overall totals rise.

Expected behaviour

  • XML and CSV imports of the same OpenVAS report should produce identical findings (or at least map deterministically one-to-one).
  • Re-importing an unchanged file should result in zero modifications—no new findings, no closures.

Deployment method

  • Docker Compose

Environment information

Newest DefectDojo OS Version

Screenshots

Image

Sample scan files

I can supply the exact scan.xml and scan.csv that trigger the issue after redacting confidential data (company-specific hostnames, IPs, etc.). Let me know if sanitized samples would help.

Additional context

We rely on re-import in CI pipelines; the ever-increasing finding count breaks downstream metrics and dashboards. Happy to enable debug logging or test any patches you suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp_wantedWe would welcome a community contribution on this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions