Skip to content

Conversation

@valentijnscholten
Copy link
Member

Description

Fixes issue #11243

Tenable CSV import was failing when encountering CPE fields with unsupported versions (e.g., CPE 2.3 format). The cpe library throws a "Version of CPE not implemented" exception which was not caught, causing the entire import to crash.

Changes

  • Added exception handling around CPE parsing in TenableCSVParser
  • Log unsupported CPE versions at DEBUG level instead of crashing
  • Import now continues processing other findings when encountering unsupported CPE formats

Testing

  • Import will no longer crash on unsupported CPE versions
  • Findings with unsupported CPE will skip component_name/component_version extraction but continue processing
  • Other findings in the same import are unaffected

Related Issue

Closes #11243

- Add exception handling around CPE parsing in TenableCSVParser
- Log unsupported CPE versions at DEBUG level instead of crashing
- Allows import to continue when encountering unsupported CPE formats
- Fixes issue DefectDojo#11243
Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tenable import fails with "Version of CPE not implemented"

3 participants