Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/19032?format=api",
    "vulnerability_id": "VCID-k4wn-j55z-b3dk",
    "summary": "Apache Commons Compress denial of service vulnerability\nImproper Input Validation, Uncontrolled Resource Consumption vulnerability in Apache Commons Compress in TAR parsing.This issue affects Apache Commons Compress: from 1.22 before 1.24.0.\n\nUsers are recommended to upgrade to version 1.24.0, which fixes the issue.\n\nA third party can create a malformed TAR file by manipulating file modification times headers, which when parsed with Apache Commons Compress, will cause a denial of service issue via CPU consumption.\n\nIn version 1.22 of Apache Commons Compress, support was added for file modification times with higher precision (issue # COMPRESS-612 [1]). The format for the PAX extended headers carrying this data consists of two numbers separated by a period [2], indicating seconds and subsecond precision (for example “1647221103.5998539”). The impacted fields are “atime”, “ctime”, “mtime” and “LIBARCHIVE.creationtime”. No input validation is performed prior to the parsing of header values.\n\nParsing of these numbers uses the BigDecimal [3] class from the JDK which has a publicly known algorithmic complexity issue when doing operations on large numbers, causing denial of service (see issue # JDK-6560193 [4]). A third party can manipulate file time headers in a TAR file by placing a number with a very long fraction (300,000 digits) or a number with exponent notation (such as “9e9999999”) within a file modification time header, and the parsing of files with these headers will take hours instead of seconds, leading to a denial of service via exhaustion of CPU resources. This issue is similar to CVE-2012-2098 [5].\n\n[1]:  https://issues.apache.org/jira/browse/COMPRESS-612\n[2]:  https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_05\n[3]:  https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html\n[4]:  https://bugs.openjdk.org/browse/JDK-6560193\n[5]:  https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2098\n\nOnly applications using CompressorStreamFactory class (with auto-detection of file types), TarArchiveInputStream and TarFile classes to parse TAR files are impacted. Since this code was introduced in v1.22, only that version and later versions are impacted.",
    "aliases": [
        {
            "alias": "CVE-2023-42503"
        },
        {
            "alias": "GHSA-cgwf-w82q-5jrr"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/927022?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@0?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@0%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/927016?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@1.20-1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-p41w-msyv-u7bk"
                },
                {
                    "vulnerability": "VCID-qsw3-wm4k-m7h3"
                },
                {
                    "vulnerability": "VCID-qu4m-4u1a-r3cv"
                },
                {
                    "vulnerability": "VCID-vaar-ytpp-eqc7"
                },
                {
                    "vulnerability": "VCID-y6ff-umvz-zbgd"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@1.20-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/927023?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@1.24.0-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@1.24.0-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/927017?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@1.27.1-2?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@1.27.1-2%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1055085?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@1.27.1-2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@1.27.1-2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/59952?format=api",
            "purl": "pkg:maven/org.apache.commons/commons-compress@1.24.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cg72-sg2w-t3ft"
                },
                {
                    "vulnerability": "VCID-p41w-msyv-u7bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.24.0"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/927014?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@1.22-1?distro=trixie",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cg72-sg2w-t3ft"
                },
                {
                    "vulnerability": "VCID-k4wn-j55z-b3dk"
                },
                {
                    "vulnerability": "VCID-p41w-msyv-u7bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@1.22-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/994873?format=api",
            "purl": "pkg:deb/debian/libcommons-compress-java@1.22-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cg72-sg2w-t3ft"
                },
                {
                    "vulnerability": "VCID-k4wn-j55z-b3dk"
                },
                {
                    "vulnerability": "VCID-p41w-msyv-u7bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libcommons-compress-java@1.22-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/59951?format=api",
            "purl": "pkg:maven/org.apache.commons/commons-compress@1.22",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cg72-sg2w-t3ft"
                },
                {
                    "vulnerability": "VCID-k4wn-j55z-b3dk"
                },
                {
                    "vulnerability": "VCID-p41w-msyv-u7bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.22"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/621782?format=api",
            "purl": "pkg:maven/org.apache.commons/commons-compress@1.23.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cg72-sg2w-t3ft"
                },
                {
                    "vulnerability": "VCID-k4wn-j55z-b3dk"
                },
                {
                    "vulnerability": "VCID-p41w-msyv-u7bk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.commons/commons-compress@1.23.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-42503.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-42503.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2023-42503",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00011",
                    "scoring_system": "epss",
                    "scoring_elements": "0.01522",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00011",
                    "scoring_system": "epss",
                    "scoring_elements": "0.01514",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00012",
                    "scoring_system": "epss",
                    "scoring_elements": "0.01866",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00012",
                    "scoring_system": "epss",
                    "scoring_elements": "0.01854",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02533",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02426",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02443",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02473",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02452",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.0252",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02432",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00014",
                    "scoring_system": "epss",
                    "scoring_elements": "0.02448",
                    "published_at": "2026-04-07T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2023-42503"
        },
        {
            "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                }
            ],
            "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
        },
        {
            "reference_url": "https://github.com/apache/commons-compress",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/apache/commons-compress"
        },
        {
            "reference_url": "https://github.com/apache/commons-compress/commit/aae38bfb820159ae7a0b792e779571f6a46b3889",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/apache/commons-compress/commit/aae38bfb820159ae7a0b792e779571f6a46b3889"
        },
        {
            "reference_url": "https://lists.apache.org/thread/5xwcyr600mn074vgxq92tjssrchmc93c",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://lists.apache.org/thread/5xwcyr600mn074vgxq92tjssrchmc93c"
        },
        {
            "reference_url": "https://security.netapp.com/advisory/ntap-20231020-0003",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.netapp.com/advisory/ntap-20231020-0003"
        },
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052065",
            "reference_id": "1052065",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052065"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2295031",
            "reference_id": "2295031",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2295031"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42503",
            "reference_id": "CVE-2023-42503",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42503"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-cgwf-w82q-5jrr",
            "reference_id": "GHSA-cgwf-w82q-5jrr",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-cgwf-w82q-5jrr"
        }
    ],
    "weaknesses": [
        {
            "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": 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."
        },
        {
            "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": 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."
        }
    ],
    "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-k4wn-j55z-b3dk"
}