Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/7918?format=api",
    "vulnerability_id": "VCID-hvre-wgyt-23dz",
    "summary": "Improper Restriction of Operations within the Bounds of a Memory Buffer\npcre2test.c in PCRE2 allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a crafted regular expression.",
    "aliases": [
        {
            "alias": "CVE-2017-8786"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/934552?format=api",
            "purl": "pkg:deb/debian/pcre2@10.31-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.31-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1052527?format=api",
            "purl": "pkg:deb/debian/pcre2@10.32-5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-n3na-8bf2-r3gv"
                },
                {
                    "vulnerability": "VCID-nhna-bk28-t3ex"
                },
                {
                    "vulnerability": "VCID-sqxs-v4xg-5kd8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.32-5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/934547?format=api",
            "purl": "pkg:deb/debian/pcre2@10.36-2%2Bdeb11u1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-puhw-2qwq-gqet"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.36-2%252Bdeb11u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/934545?format=api",
            "purl": "pkg:deb/debian/pcre2@10.42-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.42-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/934549?format=api",
            "purl": "pkg:deb/debian/pcre2@10.46-1~deb13u1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.46-1~deb13u1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/934548?format=api",
            "purl": "pkg:deb/debian/pcre2@10.46-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.46-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76811?format=api",
            "purl": "pkg:ebuild/dev-libs/libpcre2@10.30",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:ebuild/dev-libs/libpcre2@10.30"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1052525?format=api",
            "purl": "pkg:deb/debian/pcre2@2.08-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hvre-wgyt-23dz"
                },
                {
                    "vulnerability": "VCID-n3na-8bf2-r3gv"
                },
                {
                    "vulnerability": "VCID-nhna-bk28-t3ex"
                },
                {
                    "vulnerability": "VCID-sqxs-v4xg-5kd8"
                },
                {
                    "vulnerability": "VCID-udse-25e2-vfeb"
                },
                {
                    "vulnerability": "VCID-ywee-ghvk-pubu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@2.08-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1052526?format=api",
            "purl": "pkg:deb/debian/pcre2@10.22-3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hvre-wgyt-23dz"
                },
                {
                    "vulnerability": "VCID-n3na-8bf2-r3gv"
                },
                {
                    "vulnerability": "VCID-nhna-bk28-t3ex"
                },
                {
                    "vulnerability": "VCID-sqxs-v4xg-5kd8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pcre2@10.22-3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/23968?format=api",
            "purl": "pkg:nuget/pcre.symbols@10.23.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hvre-wgyt-23dz"
                },
                {
                    "vulnerability": "VCID-ywee-ghvk-pubu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/pcre.symbols@10.23.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2017-8786.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.3",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2017-8786.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2017-8786",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71302",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71399",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71364",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71347",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71393",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.7131",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71328",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71343",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71357",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00671",
                    "scoring_system": "epss",
                    "scoring_elements": "0.71379",
                    "published_at": "2026-04-11T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2017-8786"
        },
        {
            "reference_url": "https://blogs.gentoo.org/ago/2017/04/29/libpcre-heap-based-buffer-overflow-write-in-pcre2test-c/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://blogs.gentoo.org/ago/2017/04/29/libpcre-heap-based-buffer-overflow-write-in-pcre2test-c/"
        },
        {
            "reference_url": "https://bugs.exim.org/show_bug.cgi?id=2079",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.exim.org/show_bug.cgi?id=2079"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8786",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8786"
        },
        {
            "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"
                }
            ],
            "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
        },
        {
            "reference_url": "https://vcs.pcre.org/pcre2?view=revision&revision=696",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://vcs.pcre.org/pcre2?view=revision&revision=696"
        },
        {
            "reference_url": "https://vcs.pcre.org/pcre2?view=revision&revision=697",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://vcs.pcre.org/pcre2?view=revision&revision=697"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1500717",
            "reference_id": "1500717",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1500717"
        },
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861873",
            "reference_id": "861873",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861873"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:pcre:pcre2:10.23:*:*:*:*:*:*:*",
            "reference_id": "cpe:2.3:a:pcre:pcre2:10.23:*:*:*:*:*:*:*",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:pcre:pcre2:10.23:*:*:*:*:*:*:*"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-8786",
            "reference_id": "CVE-2017-8786",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv2",
                    "scoring_elements": "AV:N/AC:L/Au:N/C:P/I:P/A:P"
                },
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-8786"
        },
        {
            "reference_url": "https://security.gentoo.org/glsa/201710-09",
            "reference_id": "GLSA-201710-09",
            "reference_type": "",
            "scores": [],
            "url": "https://security.gentoo.org/glsa/201710-09"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 119,
            "name": "Improper Restriction of Operations within the Bounds of a Memory Buffer",
            "description": "The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        },
        {
            "cwe_id": 122,
            "name": "Heap-based Buffer Overflow",
            "description": "A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc()."
        }
    ],
    "exploits": [],
    "severity_range_score": "3.3 - 9.8",
    "exploitability": "0.5",
    "weighted_severity": "8.8",
    "risk_score": 4.4,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hvre-wgyt-23dz"
}