Skip to content
/ cve_db Public

Common Vulnerabilities and Exposures DB and Python API

License

Notifications You must be signed in to change notification settings

rsc-dev/cve_db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVE DB

About

CVE DB is a sqlite DB with CVEs and Python API. CVEs are scrapped from CVE Details.

Latest DB is from 17.01.2017.

Why?

It seems there is no developer friendly CVE data available.

Usage

DB

Download latest sqlite DB from dbs and extract.

Python

Updating DB

with open('csv_list.txt', 'r') as csv_h:
        with CVE_DB() as db:
            for cve_name in csv_h:
                cve = cve_name.strip()
                v = VulnerabilityBuilder.get_vulnerability_by_cve_net(cve)
                if v is not None:
                    db.add_vulnerability(v)

DB lookup

with CVE_DB('db_file_name') as db:
    v = VulnerabilityBuilder.get_vulnerability_by_cve_db(db, 'CVE-2014-6271')
    print v.__dict__

License

Code is released under MIT license © Radoslaw '[rsc]' Matusiak.

About

Common Vulnerabilities and Exposures DB and Python API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages