Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43610?format=api",
    "vulnerability_id": "VCID-1uce-2wtr-8bfg",
    "summary": "Improper Input Validation\nThe moodle1 backup converter in backup/converter/moodle1/lib.php in Moodle 2.1.x before 2.1.10, 2.2.x before 2.2.7, 2.3.x before 2.3.4, and 2.4.x before 2.4.1 does not properly validate pathnames, which allows remote authenticated users to read arbitrary files by leveraging the backup-restoration feature.",
    "aliases": [
        {
            "alias": "CVE-2012-6099"
        },
        {
            "alias": "GHSA-cr78-rphw-w73p"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62387?format=api",
            "purl": "pkg:composer/moodle/moodle@2.1.10",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2vsp-tbwq-1qhf"
                },
                {
                    "vulnerability": "VCID-b2tv-8q9g-qqfz"
                },
                {
                    "vulnerability": "VCID-vgxb-fkuj-9fgk"
                },
                {
                    "vulnerability": "VCID-y15n-cf9z-dyc4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.1.10"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62479?format=api",
            "purl": "pkg:composer/moodle/moodle@2.2.7",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.2.7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62480?format=api",
            "purl": "pkg:composer/moodle/moodle@2.3.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.3.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62481?format=api",
            "purl": "pkg:composer/moodle/moodle@2.4.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.4.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61520?format=api",
            "purl": "pkg:composer/moodle/moodle@2.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                },
                {
                    "vulnerability": "VCID-29gm-tfg6-xkey"
                },
                {
                    "vulnerability": "VCID-3tq1-jwd5-xqcr"
                },
                {
                    "vulnerability": "VCID-4cdk-8y5v-nba1"
                },
                {
                    "vulnerability": "VCID-6dwh-baur-9ydg"
                },
                {
                    "vulnerability": "VCID-9nee-rvyv-qfba"
                },
                {
                    "vulnerability": "VCID-a4uv-j23y-8bg1"
                },
                {
                    "vulnerability": "VCID-atb4-adjz-1uef"
                },
                {
                    "vulnerability": "VCID-c9kg-rsj3-b3bw"
                },
                {
                    "vulnerability": "VCID-dt8h-ktfk-2qec"
                },
                {
                    "vulnerability": "VCID-e2hb-w8g1-xbax"
                },
                {
                    "vulnerability": "VCID-et8t-f1u1-kudb"
                },
                {
                    "vulnerability": "VCID-jbvt-9yy2-afb4"
                },
                {
                    "vulnerability": "VCID-mh2f-ytz5-9fhg"
                },
                {
                    "vulnerability": "VCID-q6wx-c4w3-skh8"
                },
                {
                    "vulnerability": "VCID-qpm1-4xwk-sfb2"
                },
                {
                    "vulnerability": "VCID-ubt2-hvzj-1kbh"
                },
                {
                    "vulnerability": "VCID-yyug-rt71-yfds"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62333?format=api",
            "purl": "pkg:composer/moodle/moodle@2.1.9",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.1.9"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61522?format=api",
            "purl": "pkg:composer/moodle/moodle@2.2.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                },
                {
                    "vulnerability": "VCID-29gm-tfg6-xkey"
                },
                {
                    "vulnerability": "VCID-2vsp-tbwq-1qhf"
                },
                {
                    "vulnerability": "VCID-41up-e414-hyba"
                },
                {
                    "vulnerability": "VCID-4cdk-8y5v-nba1"
                },
                {
                    "vulnerability": "VCID-b2tv-8q9g-qqfz"
                },
                {
                    "vulnerability": "VCID-c9kg-rsj3-b3bw"
                },
                {
                    "vulnerability": "VCID-e2hb-w8g1-xbax"
                },
                {
                    "vulnerability": "VCID-et8t-f1u1-kudb"
                },
                {
                    "vulnerability": "VCID-jbvt-9yy2-afb4"
                },
                {
                    "vulnerability": "VCID-mh2f-ytz5-9fhg"
                },
                {
                    "vulnerability": "VCID-vgxb-fkuj-9fgk"
                },
                {
                    "vulnerability": "VCID-y15n-cf9z-dyc4"
                },
                {
                    "vulnerability": "VCID-yyug-rt71-yfds"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.2.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62331?format=api",
            "purl": "pkg:composer/moodle/moodle@2.2.6",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.2.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62102?format=api",
            "purl": "pkg:composer/moodle/moodle@2.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                },
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-2vsp-tbwq-1qhf"
                },
                {
                    "vulnerability": "VCID-41up-e414-hyba"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-9kbu-4u3w-jufu"
                },
                {
                    "vulnerability": "VCID-b2tv-8q9g-qqfz"
                },
                {
                    "vulnerability": "VCID-bgaz-b5zd-e7aj"
                },
                {
                    "vulnerability": "VCID-et8t-f1u1-kudb"
                },
                {
                    "vulnerability": "VCID-fu6f-fjmn-g7eh"
                },
                {
                    "vulnerability": "VCID-fwn7-hez1-ayhj"
                },
                {
                    "vulnerability": "VCID-kqg2-2xqk-q7ga"
                },
                {
                    "vulnerability": "VCID-mh2f-ytz5-9fhg"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                },
                {
                    "vulnerability": "VCID-qgn8-zs2m-vkc4"
                },
                {
                    "vulnerability": "VCID-r7wm-grca-3fgw"
                },
                {
                    "vulnerability": "VCID-vgxb-fkuj-9fgk"
                },
                {
                    "vulnerability": "VCID-y15n-cf9z-dyc4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.3.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62332?format=api",
            "purl": "pkg:composer/moodle/moodle@2.3.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.3.3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62205?format=api",
            "purl": "pkg:composer/moodle/moodle@2.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                },
                {
                    "vulnerability": "VCID-2vsp-tbwq-1qhf"
                },
                {
                    "vulnerability": "VCID-41up-e414-hyba"
                },
                {
                    "vulnerability": "VCID-9kbu-4u3w-jufu"
                },
                {
                    "vulnerability": "VCID-b2tv-8q9g-qqfz"
                },
                {
                    "vulnerability": "VCID-bgaz-b5zd-e7aj"
                },
                {
                    "vulnerability": "VCID-ea5s-xphb-6ub7"
                },
                {
                    "vulnerability": "VCID-fu6f-fjmn-g7eh"
                },
                {
                    "vulnerability": "VCID-fwn7-hez1-ayhj"
                },
                {
                    "vulnerability": "VCID-h8xn-n98n-qqdv"
                },
                {
                    "vulnerability": "VCID-mh2f-ytz5-9fhg"
                },
                {
                    "vulnerability": "VCID-qgn8-zs2m-vkc4"
                },
                {
                    "vulnerability": "VCID-qpu2-8paz-7ydv"
                },
                {
                    "vulnerability": "VCID-qxyw-7hnt-hqd6"
                },
                {
                    "vulnerability": "VCID-r7wm-grca-3fgw"
                },
                {
                    "vulnerability": "VCID-vgxb-fkuj-9fgk"
                },
                {
                    "vulnerability": "VCID-y15n-cf9z-dyc4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.4.0"
        }
    ],
    "references": [
        {
            "reference_url": "http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-36977",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-36977"
        },
        {
            "reference_url": "http://openwall.com/lists/oss-security/2013/01/21/1",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://openwall.com/lists/oss-security/2013/01/21/1"
        },
        {
            "reference_url": "https://github.com/moodle/moodle/commit/0ab681d3e7bed2a37430387f9da8504c0b077d10",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/0ab681d3e7bed2a37430387f9da8504c0b077d10"
        },
        {
            "reference_url": "https://github.com/moodle/moodle/commit/7b66137f7bcc84fb5eb07f58fb658b21bf37cc44",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/7b66137f7bcc84fb5eb07f58fb658b21bf37cc44"
        },
        {
            "reference_url": "https://moodle.org/mod/forum/discuss.php?d=220160",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://moodle.org/mod/forum/discuss.php?d=220160"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2012-6099",
            "reference_id": "CVE-2012-6099",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2012-6099"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-cr78-rphw-w73p",
            "reference_id": "GHSA-cr78-rphw-w73p",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-cr78-rphw-w73p"
        }
    ],
    "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": 20,
            "name": "Improper Input Validation",
            "description": "The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-1uce-2wtr-8bfg"
}