Skip to content
Heist/ feed
Back to feed
UnratedFix available

tar — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2007-4131

Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwrite arbitrary files via certain //.. (slash slash dot dot) sequences in directory symlinks in a TAR archive.

Products
tar
Affected versions
Not specified
Fixed versions
1.18-2
CVEs
CVE-2007-4131
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 15:54 UTC · Revision 1

Source evidence

DEBIAN-CVE-2007-4131

core-osv · Original source

Published 25 Aug 2007, 00:17 UTC

Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwrite arbitrary files via certain //.. (slash slash dot dot) sequences in directory symlinks in a TAR archive.

osv:DEBIAN-CVE-2007-4131

tar

Fixed versions: 1.18-2

tar

Fixed versions: 1.18-2

tar

Fixed versions: 1.18-2

Complete source record
{
  "id": "a2d4eefd33690320f70d801b4ead8ff4cd3de0d3498163a37485f88f7e173f05",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2007-4131",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2007-4131",
    "summary": "Directory traversal vulnerability in the contains_dot_dot function in src/names.c in GNU tar allows user-assisted remote attackers to overwrite arbitrary files via certain //.. (slash slash dot dot) sequences in directory symlinks in a TAR archive.",
    "evidence": "osv:DEBIAN-CVE-2007-4131",
    "products": [
      {
        "name": {
          "value": "tar",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18-2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "tar",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18-2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "tar",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.18-2",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "DEBIAN-CVE-2007-4131",
      "aliases": [
        "DEBIAN-CVE-2007-4131"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.18-2"
                }
              ]
            }
          ],
          "package": {
            "name": "tar",
            "purl": "pkg:deb/debian/tar?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2007-4131.json"
          },
          "ecosystem_specific": {
            "urgency": "medium"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.18-2"
                }
              ]
            }
          ],
          "package": {
            "name": "tar",
            "purl": "pkg:deb/debian/tar?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2007-4131.json"
          },
          "ecosystem_specific": {
            "urgency": "medium"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.18-2"
                }
              ]
            }
          ],
          "package": {
            "name": "tar",
            "purl": "pkg:deb/debian/tar?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2007-4131.json"
          },
          "ecosystem_specific": {
            "urgency": "medium"
          }
        }
      ],
      "modified": "2026-10-21T17:47:42.982438655Z",
      "provider": "osv",
      "upstream": [
        "CVE-2007-4131"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2007-4131"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2007-4131",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 398519,
  "published_at": "2007-08-25T00:17:00+00:00"
}