Fetch CVE (Common Vulnerabilities and Exposures) information from cve.org
use Net::CVE;
my $cr = Net::CVE->new ();
$cr->get ("CVE-2022-12345");
my $full_report = $cr->data;
my $summary = $cr->summary;
use Data::Peek;
DDumper $cr->summary ("CVE-2022-12345");
perl version 5.14.2 and up. Very well possible, you will be able to use this with a previous version, but that is not officially supported.
Network access: the default operation mode is to fetch reports directly from the CVE database, but using downloaded reports in JSON is undocumented supported.
$ perl Makefile.PL
$ make
$ make test
$ make install
Recent changes can be (re)viewed in the public GIT repository at https://github.com/CPAN-Security/Net-CVE
Feel free to clone your own copy:
$ git clone https://github.com/CPAN-Security/Net-CVE Net-CVE
or get it as a tgz:
$ wget --output-document=Net-CVE-git.tgz \
https://github.com/CPAN-Security/Net-CVE/archive/main.tar.gz
New ideas and fixes welcome. Please read this guide
H.Merijn Brand [email protected]