Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/45056?format=api",
    "vulnerability_id": "VCID-rd4g-h1j9-23cb",
    "summary": "Unrestricted Upload of File with Dangerous Type\nDrupal core sanitizes filenames with dangerous extensions upon upload (reference: SA-CORE-2020-012) and strips leading and trailing dots from filenames to prevent uploading server configuration files (reference: SA-CORE-2019-010). However, the protections for these two vulnerabilities previously does not work correctly together. As a result, if the site were configured to allow the upload of files with an htaccess extension, these files' filenames would not be properly sanitized. This could allow bypassing the protections provided by Drupal core's default .htaccess files and possible remote code execution on Apache web servers. This issue is mitigated by the fact that it requires a field administrator to explicitly configure a file field to allow htaccess as an extension (a restricted permission), or a contributed module or custom code that overrides allowed file uploads.",
    "aliases": [
        {
            "alias": "CVE-2022-25277"
        },
        {
            "alias": "GHSA-6955-67hm-vjjq"
        },
        {
            "alias": "GMS-2022-3361"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64975?format=api",
            "purl": "pkg:composer/drupal/core@9.3.19",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/core@9.3.19"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64976?format=api",
            "purl": "pkg:composer/drupal/core@9.4.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/core@9.4.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52630?format=api",
            "purl": "pkg:composer/drupal/core@8.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2989-fmjz-nkby"
                },
                {
                    "vulnerability": "VCID-2fas-m6vh-myhc"
                },
                {
                    "vulnerability": "VCID-2t34-82p3-73c3"
                },
                {
                    "vulnerability": "VCID-31qy-vagp-83b6"
                },
                {
                    "vulnerability": "VCID-3xk4-qwaq-5yaj"
                },
                {
                    "vulnerability": "VCID-4dpp-gg2v-q3et"
                },
                {
                    "vulnerability": "VCID-56ze-2yw2-bfh8"
                },
                {
                    "vulnerability": "VCID-5c5c-m7ba-kqct"
                },
                {
                    "vulnerability": "VCID-7v89-2sss-hfaz"
                },
                {
                    "vulnerability": "VCID-9nk8-dban-g7h9"
                },
                {
                    "vulnerability": "VCID-a3s2-c4k2-4ufn"
                },
                {
                    "vulnerability": "VCID-a4u4-ga84-wyf9"
                },
                {
                    "vulnerability": "VCID-a7ss-tkb6-gkge"
                },
                {
                    "vulnerability": "VCID-ah3h-t9qa-gudr"
                },
                {
                    "vulnerability": "VCID-ard5-3cjv-1beu"
                },
                {
                    "vulnerability": "VCID-asm8-guag-b3ep"
                },
                {
                    "vulnerability": "VCID-avmn-kqky-83dd"
                },
                {
                    "vulnerability": "VCID-ay6b-1a7z-qkas"
                },
                {
                    "vulnerability": "VCID-bq2j-t19h-zyad"
                },
                {
                    "vulnerability": "VCID-dav9-pgdh-8yey"
                },
                {
                    "vulnerability": "VCID-dyhz-g3nv-yuc3"
                },
                {
                    "vulnerability": "VCID-e12q-qavs-qybu"
                },
                {
                    "vulnerability": "VCID-e8un-nbkk-cbf9"
                },
                {
                    "vulnerability": "VCID-egtv-y9w1-skgr"
                },
                {
                    "vulnerability": "VCID-jrhg-3271-tqdy"
                },
                {
                    "vulnerability": "VCID-kzrs-mrga-nyej"
                },
                {
                    "vulnerability": "VCID-mm13-6dhq-nqfb"
                },
                {
                    "vulnerability": "VCID-myja-t33q-q3cv"
                },
                {
                    "vulnerability": "VCID-nacy-y1qt-5yhb"
                },
                {
                    "vulnerability": "VCID-ng6g-hvc2-bkg4"
                },
                {
                    "vulnerability": "VCID-p54u-b18k-jyft"
                },
                {
                    "vulnerability": "VCID-pgnc-fq4m-3kaz"
                },
                {
                    "vulnerability": "VCID-pmmq-8s2m-h7dp"
                },
                {
                    "vulnerability": "VCID-pnme-dc73-efcb"
                },
                {
                    "vulnerability": "VCID-qsuc-53pg-zkda"
                },
                {
                    "vulnerability": "VCID-rd4g-h1j9-23cb"
                },
                {
                    "vulnerability": "VCID-rsc6-y1uv-6bfq"
                },
                {
                    "vulnerability": "VCID-t89y-c9hq-9bhk"
                },
                {
                    "vulnerability": "VCID-ta99-gcmk-2qc8"
                },
                {
                    "vulnerability": "VCID-tpzm-u3qp-akc8"
                },
                {
                    "vulnerability": "VCID-w4ks-ufnz-vfav"
                },
                {
                    "vulnerability": "VCID-wapd-e3mu-sffn"
                },
                {
                    "vulnerability": "VCID-wsv7-je8g-sqet"
                },
                {
                    "vulnerability": "VCID-wszp-2es5-z7fy"
                },
                {
                    "vulnerability": "VCID-x34m-u169-1bce"
                },
                {
                    "vulnerability": "VCID-y1nb-prqc-suaj"
                },
                {
                    "vulnerability": "VCID-yq4q-hydz-vuga"
                },
                {
                    "vulnerability": "VCID-yygb-pp11-5udj"
                },
                {
                    "vulnerability": "VCID-zqer-y4s4-hqhy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/core@8.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64974?format=api",
            "purl": "pkg:composer/drupal/core@9.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3xk4-qwaq-5yaj"
                },
                {
                    "vulnerability": "VCID-a7ss-tkb6-gkge"
                },
                {
                    "vulnerability": "VCID-dyhz-g3nv-yuc3"
                },
                {
                    "vulnerability": "VCID-rd4g-h1j9-23cb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/core@9.4.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52632?format=api",
            "purl": "pkg:composer/drupal/drupal@8.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2989-fmjz-nkby"
                },
                {
                    "vulnerability": "VCID-31qy-vagp-83b6"
                },
                {
                    "vulnerability": "VCID-3xk4-qwaq-5yaj"
                },
                {
                    "vulnerability": "VCID-56ze-2yw2-bfh8"
                },
                {
                    "vulnerability": "VCID-5c5c-m7ba-kqct"
                },
                {
                    "vulnerability": "VCID-6rtn-zphz-sydn"
                },
                {
                    "vulnerability": "VCID-9nk8-dban-g7h9"
                },
                {
                    "vulnerability": "VCID-a4u4-ga84-wyf9"
                },
                {
                    "vulnerability": "VCID-a7ss-tkb6-gkge"
                },
                {
                    "vulnerability": "VCID-ah3h-t9qa-gudr"
                },
                {
                    "vulnerability": "VCID-ard5-3cjv-1beu"
                },
                {
                    "vulnerability": "VCID-asm8-guag-b3ep"
                },
                {
                    "vulnerability": "VCID-avmn-kqky-83dd"
                },
                {
                    "vulnerability": "VCID-ay6b-1a7z-qkas"
                },
                {
                    "vulnerability": "VCID-bndv-n7w9-43b4"
                },
                {
                    "vulnerability": "VCID-bq2j-t19h-zyad"
                },
                {
                    "vulnerability": "VCID-dnc7-jg8m-8fh3"
                },
                {
                    "vulnerability": "VCID-dyhz-g3nv-yuc3"
                },
                {
                    "vulnerability": "VCID-e8un-nbkk-cbf9"
                },
                {
                    "vulnerability": "VCID-egtv-y9w1-skgr"
                },
                {
                    "vulnerability": "VCID-eyew-pw17-ryfj"
                },
                {
                    "vulnerability": "VCID-ks17-b29e-73au"
                },
                {
                    "vulnerability": "VCID-mm13-6dhq-nqfb"
                },
                {
                    "vulnerability": "VCID-mscp-wvvx-zfh3"
                },
                {
                    "vulnerability": "VCID-n5n3-p5yy-13d9"
                },
                {
                    "vulnerability": "VCID-nacy-y1qt-5yhb"
                },
                {
                    "vulnerability": "VCID-ng6g-hvc2-bkg4"
                },
                {
                    "vulnerability": "VCID-nn8g-m52e-5kfe"
                },
                {
                    "vulnerability": "VCID-pmmq-8s2m-h7dp"
                },
                {
                    "vulnerability": "VCID-pnme-dc73-efcb"
                },
                {
                    "vulnerability": "VCID-r4ja-mndm-uyge"
                },
                {
                    "vulnerability": "VCID-rd4g-h1j9-23cb"
                },
                {
                    "vulnerability": "VCID-rsc6-y1uv-6bfq"
                },
                {
                    "vulnerability": "VCID-s5qd-cpvc-c3cd"
                },
                {
                    "vulnerability": "VCID-ta99-gcmk-2qc8"
                },
                {
                    "vulnerability": "VCID-tbah-jrah-a3fg"
                },
                {
                    "vulnerability": "VCID-tbk2-zprq-27c8"
                },
                {
                    "vulnerability": "VCID-tpzm-u3qp-akc8"
                },
                {
                    "vulnerability": "VCID-w3x8-db6e-kued"
                },
                {
                    "vulnerability": "VCID-w4ks-ufnz-vfav"
                },
                {
                    "vulnerability": "VCID-wapd-e3mu-sffn"
                },
                {
                    "vulnerability": "VCID-wsv7-je8g-sqet"
                },
                {
                    "vulnerability": "VCID-wszp-2es5-z7fy"
                },
                {
                    "vulnerability": "VCID-x34m-u169-1bce"
                },
                {
                    "vulnerability": "VCID-y1nb-prqc-suaj"
                },
                {
                    "vulnerability": "VCID-zqer-y4s4-hqhy"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/drupal@8.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64969?format=api",
            "purl": "pkg:composer/drupal/drupal@9.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3xk4-qwaq-5yaj"
                },
                {
                    "vulnerability": "VCID-a7ss-tkb6-gkge"
                },
                {
                    "vulnerability": "VCID-bge7-rqsx-gfee"
                },
                {
                    "vulnerability": "VCID-dyhz-g3nv-yuc3"
                },
                {
                    "vulnerability": "VCID-rd4g-h1j9-23cb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/drupal@9.4.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/drupal/core/commit/1cd1830d79f221cc8490f53c2bb487dd07094f17",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/drupal/core/commit/1cd1830d79f221cc8490f53c2bb487dd07094f17"
        },
        {
            "reference_url": "https://github.com/drupal/core/commit/5d464ea4407c50e40dcf6cb5ee376e7b8dd36f3a",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/drupal/core/commit/5d464ea4407c50e40dcf6cb5ee376e7b8dd36f3a"
        },
        {
            "reference_url": "https://www.drupal.org/sa-core-2022-014",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.drupal.org/sa-core-2022-014"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25277",
            "reference_id": "CVE-2022-25277",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25277"
        },
        {
            "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2022-25277.yaml",
            "reference_id": "CVE-2022-25277.YAML",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2022-25277.yaml"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-6955-67hm-vjjq",
            "reference_id": "GHSA-6955-67hm-vjjq",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-6955-67hm-vjjq"
        }
    ],
    "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": 434,
            "name": "Unrestricted Upload of File with Dangerous Type",
            "description": "The product allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment."
        },
        {
            "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-rd4g-h1j9-23cb"
}