Skip to content

CPE 2.3 URI with invalid language leads to silent parser failure #34

@Natureshadow

Description

@Natureshadow

The CPE URL cpe:/a:realnetworks:realplayer:10.0:::english (as published in a CVE by MITRE) has an invalid language field, although the specification somewhat allows arbitrary strings here.

However, the parser neither parses the language field correctly, nor does it throw an exception. Instead, it detects the string as a CPE 1.1 identifier, moves the h from the end to the part field and shifts all other fields right:

hw
 [
   [
     part = h
     vendor = a
     product = realnetworks
     version = realplayer
     update = 10.0
     edition = <EMPTY>
     language = <EMPTY>
     sw_edition = english
     target_sw = <UNDEFINED>
     target_hw = <UNDEFINED>
     other = <UNDEFINED>
   ]
 ]
os
 []
app
 []
undef
 []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions