{
  "document": {
    "aggregate_severity": {
      "text": "Medium"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "TuxCare License Agreement",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "legal_disclaimer",
        "text": "This content is licensed under the Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/). If you distribute this content, or a modified version of it, you must provide attribution to Cloud Linux Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://tuxcare.com/contact/",
      "name": "TuxCare",
      "namespace": "https://tuxcare.com/"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.tuxcare.com/csaf/v2/els_os/centos7els/vex/2022/cve-2022-40897-els_os-centos7els.json"
      }
    ],
    "tracking": {
      "current_release_date": "2026-07-16T21:46:51Z",
      "generator": {
        "date": "2026-07-16T21:46:50Z",
        "engine": {
          "name": "pyCSAF"
        }
      },
      "id": "CVE-2022-40897-ELS_OS-CENTOS7ELS",
      "initial_release_date": "2022-12-23T00:15:00Z",
      "revision_history": [
        {
          "date": "2022-12-23T00:15:00Z",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2025-11-03T14:18:10Z",
          "number": "2",
          "summary": "Official Publication"
        },
        {
          "date": "2025-12-23T20:55:41Z",
          "number": "3",
          "summary": "Update document"
        },
        {
          "date": "2026-07-16T17:12:01Z",
          "number": "4",
          "summary": "Update document"
        },
        {
          "date": "2026-07-16T21:46:51Z",
          "number": "5",
          "summary": "Update document"
        }
      ],
      "status": "final",
      "version": "5"
    },
    "title": "Security update on CVE-2022-40897"
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Community Enterprise Operating System 7",
                "product": {
                  "name": "Community Enterprise Operating System 7",
                  "product_id": "CentOS-7",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:o:centos:centos:7:*:*:*:*:*:*:*"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Community Enterprise Operating System"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python-setuptools-0:0.9.8-7.el7.noarch",
                "product": {
                  "name": "python-setuptools-0:0.9.8-7.el7.noarch",
                  "product_id": "python-setuptools-0:0.9.8-7.el7.noarch",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/centos/python-setuptools@0.9.8-7.el7?arch=noarch"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "noarch"
          }
        ],
        "category": "vendor",
        "name": "Red Hat, Inc."
      },
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch",
                "product": {
                  "name": "python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch",
                  "product_id": "python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/python3-setuptools@39.2.0-10.0.5.el7.tuxcare.els1?arch=noarch"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
                "product": {
                  "name": "python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
                  "product_id": "python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/python-setuptools@0.9.8-7.el7.tuxcare.els1?arch=noarch"
                  }
                }
              },
              {
                "category": "product_version",
                "name": "python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch",
                "product": {
                  "name": "python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch",
                  "product_id": "python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch",
                  "product_identification_helper": {
                    "purl": "pkg:rpm/tuxcare/python-setuptools@0.9.8-7.el7.tuxcare.els2?arch=noarch"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "noarch"
          }
        ],
        "category": "vendor",
        "name": "TuxCare"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch as a component of Community Enterprise Operating System 7",
          "product_id": "CentOS-7:python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch"
        },
        "product_reference": "python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch",
        "relates_to_product_reference": "CentOS-7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch as a component of Community Enterprise Operating System 7",
          "product_id": "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch"
        },
        "product_reference": "python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
        "relates_to_product_reference": "CentOS-7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch as a component of Community Enterprise Operating System 7",
          "product_id": "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch"
        },
        "product_reference": "python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch",
        "relates_to_product_reference": "CentOS-7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python-setuptools-0:0.9.8-7.el7.noarch as a component of Community Enterprise Operating System 7",
          "product_id": "CentOS-7:python-setuptools-0:0.9.8-7.el7.noarch"
        },
        "product_reference": "python-setuptools-0:0.9.8-7.el7.noarch",
        "relates_to_product_reference": "CentOS-7"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2022-40897",
      "cwe": {
        "id": "CWE-1333",
        "name": "Inefficient Regular Expression Complexity"
      },
      "notes": [
        {
          "category": "description",
          "text": "Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via HTML in a crafted package or custom PackageIndex page. There is a Regular Expression Denial of Service (ReDoS) in package_index.py.",
          "title": "Vulnerability description"
        },
        {
          "category": "general",
          "text": "The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.",
          "title": "CVSS score applicability"
        }
      ],
      "product_status": {
        "fixed": [
          "CentOS-7:python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch"
        ],
        "known_affected": [
          "CentOS-7:python-setuptools-0:0.9.8-7.el7.noarch",
          "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
          "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://cve.tuxcare.com/els/cve/CVE-2022-40897"
        },
        {
          "category": "external",
          "summary": "https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200",
          "url": "https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200"
        },
        {
          "category": "external",
          "summary": "https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be",
          "url": "https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be"
        },
        {
          "category": "external",
          "summary": "https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1",
          "url": "https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1"
        },
        {
          "category": "external",
          "summary": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/",
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/"
        },
        {
          "category": "external",
          "summary": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/",
          "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/"
        },
        {
          "category": "external",
          "summary": "https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/",
          "url": "https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/"
        },
        {
          "category": "external",
          "summary": "https://pyup.io/vulnerabilities/CVE-2022-40897/52495/",
          "url": "https://pyup.io/vulnerabilities/CVE-2022-40897/52495/"
        },
        {
          "category": "external",
          "summary": "https://security.netapp.com/advisory/ntap-20230214-0001/",
          "url": "https://security.netapp.com/advisory/ntap-20230214-0001/"
        },
        {
          "category": "external",
          "summary": "https://security.netapp.com/advisory/ntap-20240621-0006/",
          "url": "https://security.netapp.com/advisory/ntap-20240621-0006/"
        },
        {
          "category": "external",
          "summary": "https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html",
          "url": "https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html"
        }
      ],
      "release_date": "2022-12-23T00:15:00Z",
      "remediations": [
        {
          "category": "no_fix_planned",
          "date": "2026-07-16T20:27:34.134408Z",
          "details": "CVE-2022-40897 is limited to the legacy setuptools PackageIndex/easy_install HTML parsing path used during package discovery/installation when contacting a package index; it is not exercised during normal runtime of installed applications. The flaw is a DoS-only ReDoS with high attack complexity and requires the host to fetch attacker-controlled or compromised index content, yielding no confidentiality or integrity impact. A fix has been available since setuptools 65.5.1 (Nov 4, 2022) and the affected module was later removed entirely in 80.3.0, so environments not invoking this legacy path have negligible practical exposure.",
          "product_ids": [
            "CentOS-7:python-setuptools-0:0.9.8-7.el7.noarch",
            "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
            "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 5.9,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "NONE",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "CentOS-7:python-setuptools-0:0.9.8-7.el7.noarch",
            "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els1.noarch",
            "CentOS-7:python-setuptools-0:0.9.8-7.el7.tuxcare.els2.noarch",
            "CentOS-7:python3-setuptools-0:39.2.0-10.0.5.el7.tuxcare.els1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate"
        }
      ]
    }
  ]
}