{
  "document": {
    "aggregate_severity": {
      "namespace": "https://access.redhat.com/security/updates/classification/",
      "text": "Moderate"
    },
    "category": "csaf_vex",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright © Red Hat, Inc. All rights reserved.",
      "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 Red Hat Inc. and provide a link to the original.",
        "title": "Terms of Use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://access.redhat.com/security/team/contact/",
      "issuing_authority": "Red Hat Product Security is responsible for vulnerability handling across all Red Hat products and services.",
      "name": "Red Hat Product Security",
      "namespace": "https://www.redhat.com"
    },
    "references": [
      {
        "category": "self",
        "summary": "Canonical URL",
        "url": "https://security.access.redhat.com/data/csaf/v2/vex/2005/cve-2005-2541.json"
      }
    ],
    "title": "tar: does not properly warn the user when extracting setuid or setgid files",
    "tracking": {
      "current_release_date": "2026-11-23T16:22:54+00:00",
      "generator": {
        "date": "2026-11-23T16:22:54+00:00",
        "engine": {
          "name": "Red Hat SDEngine",
          "version": "5.4.8"
        }
      },
      "id": "CVE-2005-2541",
      "initial_release_date": "2005-08-04T00:00:00+00:00",
      "revision_history": [
        {
          "date": "2005-08-04T00:00:00+00:00",
          "number": "1",
          "summary": "Initial version"
        },
        {
          "date": "2026-03-16T08:31:20+00:00",
          "number": "2",
          "summary": "Current version"
        },
        {
          "date": "2026-11-23T16:22:54+00:00",
          "number": "3",
          "summary": "Last generated version"
        }
      ],
      "status": "final",
      "version": "3"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 10",
                "product": {
                  "name": "Red Hat Enterprise Linux 10",
                  "product_id": "red_hat_enterprise_linux_10",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:10"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 10"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 6",
                "product": {
                  "name": "Red Hat Enterprise Linux 6",
                  "product_id": "red_hat_enterprise_linux_6",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:6"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 6"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 7",
                "product": {
                  "name": "Red Hat Enterprise Linux 7",
                  "product_id": "red_hat_enterprise_linux_7",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:rhel_els:7"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 7"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 8",
                "product": {
                  "name": "Red Hat Enterprise Linux 8",
                  "product_id": "red_hat_enterprise_linux_8",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:8"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 8"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "Red Hat Enterprise Linux 9",
                "product": {
                  "name": "Red Hat Enterprise Linux 9",
                  "product_id": "red_hat_enterprise_linux_9",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:redhat:enterprise_linux:9"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "Red Hat Enterprise Linux 9"
          },
          {
            "category": "product_version",
            "name": "tar.src",
            "product": {
              "name": "tar.src",
              "product_id": "tar.src",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/tar?arch=src"
              }
            }
          },
          {
            "category": "product_version",
            "name": "tar",
            "product": {
              "name": "tar",
              "product_id": "tar",
              "product_identification_helper": {
                "purl": "pkg:rpm/redhat/tar"
              }
            }
          }
        ],
        "category": "vendor",
        "name": "Red Hat"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:tar"
        },
        "product_reference": "tar",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar.src as a component of Red Hat Enterprise Linux 10",
          "product_id": "red_hat_enterprise_linux_10:tar.src"
        },
        "product_reference": "tar.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_10"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar.src as a component of Red Hat Enterprise Linux 6",
          "product_id": "red_hat_enterprise_linux_6:tar.src"
        },
        "product_reference": "tar.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_6"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar.src as a component of Red Hat Enterprise Linux 7",
          "product_id": "red_hat_enterprise_linux_7:tar.src"
        },
        "product_reference": "tar.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_7"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:tar"
        },
        "product_reference": "tar",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar.src as a component of Red Hat Enterprise Linux 8",
          "product_id": "red_hat_enterprise_linux_8:tar.src"
        },
        "product_reference": "tar.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_8"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:tar"
        },
        "product_reference": "tar",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "tar.src as a component of Red Hat Enterprise Linux 9",
          "product_id": "red_hat_enterprise_linux_9:tar.src"
        },
        "product_reference": "tar.src",
        "relates_to_product_reference": "red_hat_enterprise_linux_9"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2005-2541",
      "discovery_date": "2021-06-18T00:00:00+00:00",
      "ids": [
        {
          "system_name": "Red Hat Bugzilla ID",
          "text": "1974387"
        }
      ],
      "notes": [
        {
          "category": "description",
          "text": "A flaw was found in tar utility that can allow the root user to extract files with preserved setuid and setgid permissions without any warning. This behavior can lead to the creation of malicious setuid executables owned by root from a crafted tar file, posing significant security risks.",
          "title": "Vulnerability description"
        },
        {
          "category": "summary",
          "text": "tar: does not properly warn the user when extracting setuid or setgid files",
          "title": "Vulnerability summary"
        },
        {
          "category": "other",
          "text": "Currently, there are no plans to change tar behaviour to strip setuid and setgid bits when extracting archives.\n\nThis vulnerability is considered moderate rather than important because the exploitation scenario requires specific conditions: the `tar` extraction must be performed by the root user, and the tarball itself must be crafted maliciously with setuid or setgid bits. In typical use cases, users do not routinely extract untrusted tar files as root, reducing the likelihood of exploitation. Additionally, non-root extractions do not preserve these bits unless explicitly requested with the `-p` option.",
          "title": "Statement"
        },
        {
          "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": {
        "known_affected": [
          "red_hat_enterprise_linux_10:tar",
          "red_hat_enterprise_linux_10:tar.src",
          "red_hat_enterprise_linux_6:tar.src",
          "red_hat_enterprise_linux_7:tar.src",
          "red_hat_enterprise_linux_8:tar",
          "red_hat_enterprise_linux_8:tar.src",
          "red_hat_enterprise_linux_9:tar",
          "red_hat_enterprise_linux_9:tar.src"
        ]
      },
      "references": [
        {
          "category": "self",
          "summary": "Canonical URL",
          "url": "https://access.redhat.com/security/cve/CVE-2005-2541"
        },
        {
          "category": "external",
          "summary": "RHBZ#1974387",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1974387"
        },
        {
          "category": "external",
          "summary": "https://www.cve.org/CVERecord?id=CVE-2005-2541",
          "url": "https://www.cve.org/CVERecord?id=CVE-2005-2541"
        },
        {
          "category": "external",
          "summary": "https://nvd.nist.gov/vuln/detail/CVE-2005-2541",
          "url": "https://nvd.nist.gov/vuln/detail/CVE-2005-2541"
        }
      ],
      "release_date": "2005-08-04T00:00:00+00:00",
      "remediations": [
        {
          "category": "workaround",
          "details": "To mitigate the risks associated with this vulnerability, avoid extracting tar files as the root user, especially when dealing with untrusted sources. Instead, perform extractions as a non-root user or in a restricted environment. Use a dedicated, empty directory for extracting archives to prevent accidental exposure of sensitive files. After extraction, review the file permissions to check for unexpected setuid or setgid bits before granting access. When extraction as root is necessary, use the --no-same-permissions option to prevent preserving the setuid and setgid bits.",
          "product_ids": [
            "red_hat_enterprise_linux_10:tar",
            "red_hat_enterprise_linux_10:tar.src",
            "red_hat_enterprise_linux_6:tar.src",
            "red_hat_enterprise_linux_7:tar.src",
            "red_hat_enterprise_linux_8:tar",
            "red_hat_enterprise_linux_8:tar.src",
            "red_hat_enterprise_linux_9:tar",
            "red_hat_enterprise_linux_9:tar.src"
          ]
        },
        {
          "category": "no_fix_planned",
          "details": "Will not fix",
          "product_ids": [
            "red_hat_enterprise_linux_10:tar",
            "red_hat_enterprise_linux_10:tar.src",
            "red_hat_enterprise_linux_6:tar.src",
            "red_hat_enterprise_linux_7:tar.src",
            "red_hat_enterprise_linux_8:tar",
            "red_hat_enterprise_linux_8:tar.src",
            "red_hat_enterprise_linux_9:tar",
            "red_hat_enterprise_linux_9:tar.src"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "attackComplexity": "HIGH",
            "attackVector": "LOCAL",
            "availabilityImpact": "HIGH",
            "baseScore": 7.0,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "red_hat_enterprise_linux_10:tar",
            "red_hat_enterprise_linux_10:tar.src",
            "red_hat_enterprise_linux_6:tar.src",
            "red_hat_enterprise_linux_7:tar.src",
            "red_hat_enterprise_linux_8:tar",
            "red_hat_enterprise_linux_8:tar.src",
            "red_hat_enterprise_linux_9:tar",
            "red_hat_enterprise_linux_9:tar.src"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "details": "Moderate",
          "product_ids": [
            "red_hat_enterprise_linux_10:tar",
            "red_hat_enterprise_linux_10:tar.src",
            "red_hat_enterprise_linux_6:tar.src",
            "red_hat_enterprise_linux_7:tar.src",
            "red_hat_enterprise_linux_8:tar",
            "red_hat_enterprise_linux_8:tar.src",
            "red_hat_enterprise_linux_9:tar",
            "red_hat_enterprise_linux_9:tar.src"
          ]
        }
      ],
      "title": "tar: does not properly warn the user when extracting setuid or setgid files"
    }
  ]
}