<?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>15317</bug_id>
          
          <creation_ts>2023-12-11 13:24:28 +0000</creation_ts>
          <short_desc>Imported CVEs aren&apos;t Historical</short_desc>
          <delta_ts>2023-12-12 00:42:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Security Response Tool</product>
          <component>General</component>
          <version>unspecified</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>normal</bug_severity>
          <target_milestone>5.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marta Rybczynska">rybczynska</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97486</commentid>
    <comment_count>0</comment_count>
    <who name="Marta Rybczynska">rybczynska</who>
    <bug_when>2023-12-11 13:24:28 +0000</bug_when>
    <thetext>In SRtool fe396799b2d2a7572b428868152c17dbac6781b6 freshly imported ancient CVEs aren&apos;t historical. They are all in &apos;New&apos; state.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97528</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2023-12-12 00:39:06 +0000</bug_when>
    <thetext>Feature added. I will consider making the &apos;historical&apos; data the default for new installs.

Use the &quot;--test&quot; flag for dry runs.

Usage:
Convert all new CVEs:
  $ ./bin/cve_checker/srtool_cvechecker.py --new-to-historical all

Convert new CVEs prior to a given Published date:
  $ ./bin/cve_checker/srtool_cvechecker.py --new-to-historical 2023-12-01

Example run:

$ ./bin/cve_checker/srtool_cvechecker.py --new-to-historical 2023-12-01 
 Results
Year        Found Changed    Kept
CVE-1999:     118     118       0
CVE-2000:     170     170       0
CVE-2001:      49      49       0
CVE-2002:      95      95       0
CVE-2003:      85      85       0
CVE-2004:     136     136       0
CVE-2005:     266     266       0
CVE-2006:     418     418       0
CVE-2007:     365     365       0
CVE-2008:     346     346       0
CVE-2009:     373     373       0
CVE-2010:    5216    5216       0
CVE-2011:    4859    4859       0
CVE-2012:    5890    5890       0
CVE-2013:    6779    6779       0
CVE-2014:    8976    8976       0
CVE-2015:    8738    8738       0
CVE-2016:   10544   10544       0
CVE-2017:   16977   16977       0
CVE-2018:   17342   17341       1
CVE-2019:   16968   16968       0
CVE-2020:   20410   20408       2
CVE-2021:   21989   21987       2
CVE-2022:   24425   24416       9
CVE-2023:   21866   21137     729
CVE-2024:       2       2       0
$ ./bin/cve_checker/srtool_cvechecker.py --new-to-historical 2023-12-01 

 Results
Year        Found Changed    Kept
CVE-2018:       1       0       1
CVE-2020:       2       0       2
CVE-2021:       2       0       2
CVE-2022:       9       0       9
CVE-2023:     729       0     729
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97529</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2023-12-12 00:42:14 +0000</bug_when>
    <thetext>729 new CVEs for 2023 in 11 days!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>