# Generate Report with CVE ID

**URL:** <https://discuss.rapid7.com/t/generate-report-with-cve-id/31537>\
**Category:** SQL Queries\
**Tags:** InsightVM, queries\
**Created:** [January 5, 2024, 8:50pm UTC](https://discuss.rapid7.com/t/generate-report-with-cve-id/31537 "2024-01-05T20:50:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbh537tp](https://discuss.rapid7.com/letter_avatar_proxy/v4/letter/b/ee59a6/32.png) [@bbh537tp](https://discuss.rapid7.com/u/bbh537tp)\
**Post date:** [January 5, 2024, 8:50pm UTC](https://discuss.rapid7.com/t/generate-report-with-cve-id/31537/1 "2024-01-05T20:50:18Z")

</div>

I am simply attempting to create a report that pulls the CVE-ID. Currently, I can only pull CVE-ID that includes other information in the same column, e.g. Microsoft CVE-2023-36884 or Microsoft CVE-2023-36884 Windows Search Security Feature Bypass Vulnerability.

---

<div class="post-metadata">

**Author:** ![bradpjaxx](https://discuss.rapid7.com/user_avatar/discuss.rapid7.com/bradpjaxx/32/2411_2.png) [@bradpjaxx](https://discuss.rapid7.com/u/bradpjaxx)\
**Post date:** [April 8, 2025, 6:11pm UTC](https://discuss.rapid7.com/t/generate-report-with-cve-id/31537/2 "2025-04-08T18:11:07Z")

</div>

see if this is the same thing you are looking for, if its for the Warehouse it should work based on your question, if not and your doing it in the NeXpose SQL report export it will be differnt, and would need some modification.

> [@Data warehouse sql query check](https://discuss.rapid7.com/t/data-warehouse-sql-query-check/46436/7):
>
> ok well then lets try to Use a LEFT JOIN to dim\_vulnerability\_reference — not a regular (inner) join and Remove dvr.source IN (‘CVE’, ‘NVD’) from the WHERE clause , or it undoes the outer join, then we can prioritize CVE/NVD sources if you want only one reference. SELECT da.host\_name AS "Asset Name", dvr.reference AS "CVE ID", dv.nexpose\_id AS "Vulnerability ID", dv.title AS "Vulnerability Title" FROM dim\_asset da JOIN fact\_asset fa ON da.asset\_id = fa.asset\_id JOIN fact\_asset\_vu…
