Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/52936?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/52936?format=api",
    "vulnerability_id": "VCID-2dmf-rj8w-xycm",
    "summary": "Denial of Service (DoS) in HashiCorp Consul\nHashiCorp Consul and Consul Enterprise could crash when configured with an abnormally-formed service-router entry. Introduced in 1.6.0, fixed in 1.6.6 and 1.7.4.\n### Specific Go Packages Affected\ngithub.com/hashicorp/consul/agent/consul/discoverychain",
    "aliases": [
        {
            "alias": "CVE-2020-12758"
        },
        {
            "alias": "GHSA-q2qr-3c2p-9235"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/584346?format=api",
            "purl": "pkg:deb/debian/consul@1.7.4%2Bdfsg1-1?distro=bullseye",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.7.4%252Bdfsg1-1%3Fdistro=bullseye"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1049168?format=api",
            "purl": "pkg:deb/debian/consul@1.8.7%2Bdfsg1-2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.8.7%252Bdfsg1-2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/583644?format=api",
            "purl": "pkg:deb/debian/consul@1.8.7%2Bdfsg1-2?distro=bullseye",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.8.7%252Bdfsg1-2%3Fdistro=bullseye"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76655?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.6.6",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.6.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76657?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.7.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.7.4"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1049167?format=api",
            "purl": "pkg:deb/debian/consul@1.0.7~dfsg1-5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2dmf-rj8w-xycm"
                },
                {
                    "vulnerability": "VCID-467g-8bds-t3ef"
                },
                {
                    "vulnerability": "VCID-cqzz-az3e-kych"
                },
                {
                    "vulnerability": "VCID-ftvt-9nb3-xue3"
                },
                {
                    "vulnerability": "VCID-gkgb-5g8x-7fgf"
                },
                {
                    "vulnerability": "VCID-gsqu-g2y4-a7ap"
                },
                {
                    "vulnerability": "VCID-jm2d-ejbf-qfhz"
                },
                {
                    "vulnerability": "VCID-mv9z-hxmr-skfp"
                },
                {
                    "vulnerability": "VCID-pet2-hhx7-g7fc"
                },
                {
                    "vulnerability": "VCID-th2f-96u1-syhg"
                },
                {
                    "vulnerability": "VCID-xzyq-wm1j-dkcu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.0.7~dfsg1-5"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-12758",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70341",
                    "published_at": "2026-05-05T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.7028",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70304",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70289",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70276",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70317",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70326",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70308",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70361",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70369",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70367",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70212",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70225",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70242",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70219",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.0063",
                    "scoring_system": "epss",
                    "scoring_elements": "0.70265",
                    "published_at": "2026-04-08T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-12758"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-12758",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-12758"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/blob/v1.6.6/CHANGELOG.md",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hashicorp/consul/blob/v1.6.6/CHANGELOG.md"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/blob/v1.7.4/CHANGELOG.md",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hashicorp/consul/blob/v1.7.4/CHANGELOG.md"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/commit/69b44fb9424cfdc05f1b7243876ab10d236ef1fc",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hashicorp/consul/commit/69b44fb9424cfdc05f1b7243876ab10d236ef1fc"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/pull/7783",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hashicorp/consul/pull/7783"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-12758",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-12758"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 400,
            "name": "Uncontrolled Resource Consumption",
            "description": "The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2dmf-rj8w-xycm"
}