CVE-API : Unofficial API for CVE.MITRE.ORG

CVE Api is a parse & filter the latest CVEs from cve.mitre.org.

Usage

http://localhost:4000/cve?target=KEYWORD

The year parameter is optional.

http://localhost:4000/cve?target=KEYWORD&year=YEAR

Examples

http://localhost:4000/cve?target=ruby%20on%20rails

http://localhost:4000/cve?target=ruby%20on%20rails&year=2020

If you want to parse the latest year, use the “latest” keyword.
http://localhost:4000/cve?target=ruby%20on%20rails&year=latest

Also Read – Fuzzowski : The Network Protocol Fuzzer

Getting Started

  • Download the project
  • bundle install
  • ruby rest.rb

Requirements

  • Ruby
  • Docker (Optional, only required if you want to run through a container.)

Environment

  • You can switch between prod & dev at config/environment.rb
  • You need to create one yourself, an example can be found here.

Healthcheck

  • The url will return a status code of 200 which means the api is healthy.
  • If 200 is not shown then you should assume there is something wrong.
  • http://localhost:4000/status

Manage Image

Access

Build Image

docker build . -t cve-api

Run Image

docker run -p 4000:4000 -d cve-api

Get id

docker ps

Stop image

docker stop ID

Remove image

docker rmi cve-api

R K

Recent Posts

Comments in Bash Scripts

What Are Bash Comments? In Bash scripting, comments are notes in your code that the…

3 hours ago

Shebang (#!) in Bash Script

When you write a Bash script in Linux, you want it to run correctly every…

23 hours ago

Bash String Concatenation – Bash Scripting

Introduction If you’re new to Bash scripting, one of the first skills you’ll need is…

1 day ago

Learn Bash Scripting: How to Create and Run Shell Scripts for Beginners

What is Bash Scripting? Bash scripting allows you to save multiple Linux commands in a file and…

2 days ago

Bash if…else Statement – Bash Scripting

When it comes to automating tasks on Linux, Bash scripting is an essential skill for both beginners…

2 days ago

Bash Functions Explained: Syntax, Examples, and Best Practices

Learn how to create and use Bash functions with this complete tutorial. Includes syntax, arguments,…

4 days ago