<?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>15931</bug_id>
          
          <creation_ts>2025-07-09 20:33:57 +0000</creation_ts>
          <short_desc>CVE Reporting wrong CVSSv3 score</short_desc>
          <delta_ts>2026-08-20 12:34:58 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Prosper Van">prosper.van</reporter>
          <assigned_to name="Colin McAllister">colinmca242</assigned_to>
          <cc>Archana.Polampalli</cc>
    
    <cc>ccasciato</cc>
    
    <cc>colinmca242</cc>
    
    <cc>mathieu.dubois-briand</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>102441</commentid>
    <comment_count>0</comment_count>
    <who name="Prosper Van">prosper.van</who>
    <bug_when>2025-07-09 20:33:57 +0000</bug_when>
    <thetext>This is under the assumption that v3.1 score should take precedence over v3.0

For CVE-2018-16840 there is a v3.1 score of 9.8 and a v3.0 score of 4.3. I image that and v3.1 score should override v3.0 score. Otherwise add another field to capture both scores.


CVE for curl
{
  &quot;id&quot;: &quot;CVE-2018-16840&quot;,
  .....
  &quot;scorev2&quot;: &quot;7.5&quot;,
  &quot;scorev3&quot;: &quot;4.3&quot;,
  &quot;scorev4&quot;: &quot;0.0&quot;,
  .....
  &quot;link&quot;: &quot;https://nvd.nist.gov/vuln/detail/CVE-2018-16840&quot;
},


Code in cve-update-nvd2-native.bb

    try:
        accessVector = accessVector or elt[&apos;cve&apos;][&apos;metrics&apos;][&apos;cvssMetricV30&apos;][0][&apos;cvssData&apos;][&apos;attackVector&apos;]
        vectorString = vectorString or elt[&apos;cve&apos;][&apos;metrics&apos;][&apos;cvssMetricV30&apos;][0][&apos;cvssData&apos;][&apos;vectorString&apos;]
        cvssv3 = elt[&apos;cve&apos;][&apos;metrics&apos;][&apos;cvssMetricV30&apos;][0][&apos;cvssData&apos;][&apos;baseScore&apos;]
    except KeyError:
        pass
    try:
        accessVector = accessVector or elt[&apos;cve&apos;][&apos;metrics&apos;][&apos;cvssMetricV31&apos;][0][&apos;cvssData&apos;][&apos;attackVector&apos;]
        vectorString = vectorString or elt[&apos;cve&apos;][&apos;metrics&apos;][&apos;cvssMetricV31&apos;][0][&apos;cvssData&apos;][&apos;vectorString&apos;]
        cvssv3 = cvssv3 or elt[&apos;cve&apos;][&apos;metrics&apos;][&apos;cvssMetricV31&apos;][0][&apos;cvssData&apos;][&apos;baseScore&apos;]
    except KeyError:
        pass
    cvssv3 = cvssv3 or 0.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102446</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-07-10 14:44:06 +0000</bug_when>
    <thetext>Hi Prosper,
Can you send a patch to the oe-core list?
https://docs.yoctoproject.org/contributor-guide/index.html

Also, what systems from Fluke are using Yocto?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102653</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-21 14:56:41 +0000</bug_when>
    <thetext>Perhaps Archana would be willing to work on this but only if she has time and interest.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103860</commentid>
    <comment_count>3</comment_count>
    <who name="Colin McAllister">colinmca242</who>
    <bug_when>2026-01-13 17:55:11 +0000</bug_when>
    <thetext>I have attempted to fix this issue by adding all CVSS score versions to the database and cve-check report. See the linked thread below.

https://lists.openembedded.org/g/openembedded-core/topic/109850435#msg208046

IIRC there was some back and forth in the developers meeting because of some rework that Marta was adding for the CVE database fetcher recipes. I&apos;d be happy to pick up my patch again and get it merged if that would be considered helpful.

I think the big question is for the LTS versions, should the current score logic be left as-is to not break any compatibility issues, or should the logic be inverted to include the latest CVSS score version that exists for a given CVE? Regardless, I could also create a new key with an object or list containing all CVSS scores.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103943</commentid>
    <comment_count>4</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-01-16 10:26:04 +0000</bug_when>
    <thetext>Maybe related patch: [scarthgap] [PATCH] Fix CVE CVSS scoring to use maximum score from all sources
https://lists.openembedded.org/g/openembedded-core/message/229229</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103987</commentid>
    <comment_count>5</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-01-21 10:36:28 +0000</bug_when>
    <thetext>[PATCH v2] cve-update-nvd2-native: Use maximum CVSS score from all sources
https://lists.openembedded.org/g/openembedded-core/topic/patch_v2/117379016

This patch points here but this may be subtly different:
* This bug is about aggregating CVSS score from different version
* The patch is about aggregating CVSS scores from multiple disagreeing sources.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104002</commentid>
    <comment_count>6</comment_count>
    <who name="Colin McAllister">colinmca242</who>
    <bug_when>2026-01-21 14:57:43 +0000</bug_when>
    <thetext>I&apos;d personally really like cve-check to include all CVSS version vector strings and scores, not just the maximum. I think at that point users of the cve-check output can be fully informed with all score data and determine which they should use.

As it&apos;s currently implemented, I don&apos;t really use any of the CVSS score or vector information included by CVE check and instead use post-processing tooling to enrich the cve-check output with all available CVSS data from NVD.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104014</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-21 21:26:38 +0000</bug_when>
    <thetext>Colin,
Did you really intend to move the defect milestone to &quot;Future&quot;?
If so, maybe we should move it to 6.0, unassigned.

Note that I&apos;m not following the bug discussion closely since 
I&apos;m allergic to CVEs! ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106569</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-20 12:34:58 +0000</bug_when>
    <thetext>(In reply to Yoann Congal from comment #5)
&gt; [PATCH v2] cve-update-nvd2-native: Use maximum CVSS score from all sources
&gt; https://lists.openembedded.org/g/openembedded-core/topic/patch_v2/117379016
&gt; 
&gt; This patch points here but this may be subtly different:
&gt; * This bug is about aggregating CVSS score from different version
&gt; * The patch is about aggregating CVSS scores from multiple disagreeing
&gt; sources.

This patch got merged, but above comment about differences still applies.

https://git.openembedded.org/openembedded-core/commit/?id=4f6192f3165de0bc2499e045607c7e7ffd878a4b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>