<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14745</bug_id>
          
          <creation_ts>2022-02-24 21:25:06 +0000</creation_ts>
          <short_desc>cve-checker update to support NVD json 5.0 format</short_desc>
          <delta_ts>2023-04-25 08:07:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>4.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>4.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="akuster">akuster808</reporter>
          <assigned_to name="Marta Rybczynska">rybczynska</assigned_to>
          <cc>akuster</cc>
    
    <cc>david.reyna</cc>
    
    <cc>glimsdal</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>ralphs</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>theslothuk</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92669</commentid>
    <comment_count>0</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-02-24 21:25:06 +0000</bug_when>
    <thetext>The NVD data format is upgrading to json 5.0 in late Spring.

https://www.cve.org/Media/News/item/news/2022/01/11/Changes-Coming-to-CVE-Record</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92670</commentid>
    <comment_count>1</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-02-24 21:26:45 +0000</bug_when>
    <thetext>I am going to have to deal with this for my Employer so maybe I can help in migrate the checker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92698</commentid>
    <comment_count>2</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-03-01 19:57:05 +0000</bug_when>
    <thetext>CVE consumers should also be getting familiar with the CVE JSON 5.0 format. They will begin seeing JSON 5.0 CVE Records published on the CVE website in the JSON 5.0 format by late spring 2022.


As a result of the transition to JSON 5.0, beginning in summer 2022, the CVE List download options currently provided by the CVE Program (i.e., CSV, HTML, XML and CVRF) will no longer be supported.

After the JSON 4.0 retirement date (which will be announced/confirmed in spring 2022), the CVE List (as of that date) in all JSON 4.0 supported formats will be available in an archive and the CVE List will be downloadable only in JSON 5.0 format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92724</commentid>
    <comment_count>3</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-03-03 20:17:53 +0000</bug_when>
    <thetext>My thought process on this is to figure out 4.0 -&gt; 5.0 delta as it applies to the bbclass. 

We may want to define a variable which sets the version to use during the transition phase so we can expand the testing in the community prior to permanently changing. it gives us a fail back if NVD runs into problems and allow the sharing of code changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92741</commentid>
    <comment_count>4</comment_count>
    <who name="Nathan Glimsdale">glimsdal</who>
    <bug_when>2022-03-08 17:59:06 +0000</bug_when>
    <thetext>I&apos;ll take a look at this. It&apos;s a little unclear on the NVD website where a new JSON API is. I see an announcement for deprecating a SOAP API, but it just points to the endpoint already used by cve-update-db-native.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92956</commentid>
    <comment_count>5</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-04-07 21:41:05 +0000</bug_when>
    <thetext>Looks like some 5.0 json data is now available.

https://github.com/CVEProject/cvelistV5/tree/master/review_set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92957</commentid>
    <comment_count>6</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-04-07 21:41:19 +0000</bug_when>
    <thetext>Updated Transition Schedule

See Transition Bulletin #2 for descriptions of activities 1-6; descriptions for activities 7 and 8 are above.
Item 	Activity 	Schedule
1 	CVE Services 2.1 Community Testing in the Testing Instance 	Late February/early March 2022
2 	CVE Services 2.1 Community Penetration Testing 	Mid-to-late March 2022 (will run for approximately 3 weeks)
3 	CNA Community Review of Historical JSON 5.0 Records 	January through April 2022
4 	CVE Services 2.1/JSON 5.0 Soft Deployment 	Mid-to-late April 2022 (will span approximately 3 weeks)
5 	CVE Services 2.1/JSON 5.0 Hard Deployment 	Late April 2022
6 	JSON 4.0 Retirement 	July 2022 (3 months after JSON 5.0 is made available to CVE downstream users)
7 	CVE List GitHub Submission Pilot Retirement 	July 2022 (3 months after JSON 5.0 is made available to CVE downstream users)
8 	CVE List Download Format Changes 	July 2022 (3 months after JSON 5.0 is made available to CVE downstream users)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92958</commentid>
    <comment_count>7</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-04-07 21:42:27 +0000</bug_when>
    <thetext>Bulletin Number 2

CVE Services Transition — February 11, 2022

https://cveproject.github.io/automation-transition#bulletin-number-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92959</commentid>
    <comment_count>8</comment_count>
    <who name="akuster">akuster808</who>
    <bug_when>2022-04-07 21:44:35 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; I&apos;ll take a look at this. It&apos;s a little unclear on the NVD website where a
&gt; new JSON API is. I see an announcement for deprecating a SOAP API, but it
&gt; just points to the endpoint already used by cve-update-db-native.

The submission web i/f is migrating too to version 2.1 but we don&apos;t do anything with that from a the checker side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92961</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-04-08 15:19:01 +0000</bug_when>
    <thetext>So my reading of this is that this is a change to the cve.org (previously mitre) feeds.

Our tool fetches from nvd.nist.gov which has its own feeds and doesn&apos;t talk about the format changing:

https://nvd.nist.gov/vuln/data-feeds#JSON_FEED

We should evaluate whether we should be fetching from cve.org instead of nist, but this isn&apos;t as important as it seemed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94624</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-01-05 15:53:03 +0000</bug_when>
    <thetext>Marta,
  Based on your comments sent to the oe-core email list, it seems that you might be a better owner for this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94628</commentid>
    <comment_count>11</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-05 16:50:16 +0000</bug_when>
    <thetext>So since I left that comment the page has been updated and now talks about the feeds being retired in late 2023...

https://nvd.nist.gov/developers/api-workflows talks about the new suggested workflow.

Marta: is this something you&apos;ll be willing to work on, or should I add it to my todo list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94629</commentid>
    <comment_count>12</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-01-05 17:09:40 +0000</bug_when>
    <thetext>Ross,
Yes, I plan to work on it. The first step will be to find out if it is better to go for CVE 5 or NVD API 2.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94630</commentid>
    <comment_count>13</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-05 18:26:09 +0000</bug_when>
    <thetext>I got curious/distracted and hacked a bit: https://pastebin.com/1ZHregqF

Conclusion so far is that the API is nice, but slow.  A full fetch of the old JSON files took me just under two minutes, but a full fetch with the v2 JSON REST API has been running for a several minutes and it&apos;s still going.

That said, the incremental fetch should be a lot more reliable so that&apos;s a tradeoff that I&apos;m fine with.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94631</commentid>
    <comment_count>14</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-01-05 18:42:44 +0000</bug_when>
    <thetext>15 minutes for a full fetch with the new API!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94637</commentid>
    <comment_count>15</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-01-06 16:07:37 +0000</bug_when>
    <thetext>15 minutes for me too. I&apos;ve send a message to NVD asking if they might considers a downloadable version.

Looked at the CVE 5.0 too. The schema itself contains enough information. However, there is no feed yet. And the 4.0 version does not contain the information we need.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94930</commentid>
    <comment_count>16</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-02-15 11:13:30 +0000</bug_when>
    <thetext>I&apos;ve just figured out that you can use the API without a key. That simplifies things *a lot*. There&apos;s only a different load limiter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94931</commentid>
    <comment_count>17</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2023-02-16 11:24:17 +0000</bug_when>
    <thetext>That&apos;s useful.  I guess we should support people using it without and without a key.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94932</commentid>
    <comment_count>18</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-02-16 11:26:44 +0000</bug_when>
    <thetext>Yes, with an option to give the key. I can now merge two code bases into one. Without the need of mirroring, it will be easier to deploy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95317</commentid>
    <comment_count>19</comment_count>
    <who name="Bob">theslothuk</who>
    <bug_when>2023-04-07 12:59:15 +0000</bug_when>
    <thetext>Hi all. I found this thread after researching how much of an issue the NVD dumping their json feeds might be for me. 

If this is going in Sept 2023:

https://nvd.nist.gov/vuln/data-feeds#JSON_FEED

Does anyone know if there is a way to replicate it, using the API?

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95450</commentid>
    <comment_count>20</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-04-25 08:06:14 +0000</bug_when>
    <thetext>The new fetcher has been merged http://git.openembedded.org/openembedded-core/commit/meta/recipes-core/meta/cve-update-nvd2-native.bb?id=fb62c4c3dbca4e58f7ce6cf29d4b630a06411a97</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95451</commentid>
    <comment_count>21</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-04-25 08:07:03 +0000</bug_when>
    <thetext>(In reply to Bob from comment #19)
&gt; Hi all. I found this thread after researching how much of an issue the NVD
&gt; dumping their json feeds might be for me. 
&gt; 
&gt; If this is going in Sept 2023:
&gt; 
&gt; https://nvd.nist.gov/vuln/data-feeds#JSON_FEED
&gt; 
&gt; Does anyone know if there is a way to replicate it, using the API?
&gt; 
&gt; Thanks.

Bob, do you have a reason to dump the feed separately when the new class is available?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>