CVE-2025-45582 (GCVE-0-2025-45582)
Vulnerability from cvelistv5
Published
2025-07-11 00:00
Modified
2025-08-18 03:08
Severity ?
VLAI Severity ?
EPSS score ?
CWE
- CWE-24 - Path Traversal: '../filedir'
Summary
GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file's name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of "Member name contains '..'" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain "x -> ../../../../../home/victim/.ssh" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which "tar xf" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each "tar xf" in its Security Rules of Thumb; however, third-party advice leads users to run "tar xf" more than once into the same directory.
References
{ "containers": { "adp": [ { "metrics": [ { "other": { "content": { "id": "CVE-2025-45582", "options": [ { "Exploitation": "poc" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "timestamp": "2025-07-11T18:27:18.891014Z", "version": "2.0.3" }, "type": "ssvc" } } ], "providerMetadata": { "dateUpdated": "2025-07-11T18:27:30.573Z", "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP" }, "title": "CISA ADP Vulnrichment" } ], "cna": { "affected": [ { "defaultStatus": "unknown", "product": "Tar", "vendor": "GNU", "versions": [ { "lessThanOrEqual": "1.35", "status": "affected", "version": "0", "versionType": "custom" } ] } ], "cpeApplicability": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:gnu:tar:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.35", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "descriptions": [ { "lang": "en", "value": "GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file\u0027s name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of \"Member name contains \u0027..\u0027\" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain \"x -\u003e ../../../../../home/victim/.ssh\" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which \"tar xf\" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each \"tar xf\" in its Security Rules of Thumb; however, third-party advice leads users to run \"tar xf\" more than once into the same directory." } ], "metrics": [ { "cvssV3_1": { "baseScore": 4.1, "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L", "version": "3.1" } } ], "problemTypes": [ { "descriptions": [ { "cweId": "CWE-24", "description": "CWE-24 Path Traversal: \u0027../filedir\u0027", "lang": "en", "type": "CWE" } ] } ], "providerMetadata": { "dateUpdated": "2025-08-18T03:08:06.530Z", "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "shortName": "mitre" }, "references": [ { "url": "https://github.com/i900008/vulndb/blob/main/Gnu_tar_vuln.md" }, { "url": "https://www.gnu.org/software/tar/" }, { "url": "https://www.gnu.org/software/tar/manual/html_node/Security-rules-of-thumb.html" }, { "url": "https://www.gnu.org/software/tar/manual/html_node/Integrity.html" }, { "url": "https://lists.gnu.org/archive/html/bug-tar/2025-08/msg00012.html" } ], "x_generator": { "engine": "enrichogram 0.0.1" } } }, "cveMetadata": { "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "assignerShortName": "mitre", "cveId": "CVE-2025-45582", "datePublished": "2025-07-11T00:00:00.000Z", "dateReserved": "2025-04-22T00:00:00.000Z", "dateUpdated": "2025-08-18T03:08:06.530Z", "state": "PUBLISHED" }, "dataType": "CVE_RECORD", "dataVersion": "5.1", "vulnerability-lookup:meta": { "nvd": "{\"cve\":{\"id\":\"CVE-2025-45582\",\"sourceIdentifier\":\"cve@mitre.org\",\"published\":\"2025-07-11T17:15:37.183\",\"lastModified\":\"2025-08-18T04:15:36.743\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file\u0027s name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of \\\"Member name contains \u0027..\u0027\\\" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain \\\"x -\u003e ../../../../../home/victim/.ssh\\\" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which \\\"tar xf\\\" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each \\\"tar xf\\\" in its Security Rules of Thumb; however, third-party advice leads users to run \\\"tar xf\\\" more than once into the same directory.\"},{\"lang\":\"es\",\"value\":\"Las versiones GNU Tar hasta la 1.35 permiten la sobrescritura de archivos mediante el directory traversal en archivos TAR manipulado, con un proceso de dos pasos. Primero, la v\u00edctima debe extraer un archivo que contenga un enlace simb\u00f3lico ../ a un directorio cr\u00edtico. Segundo, la v\u00edctima debe extraer un archivo que contenga un archivo cr\u00edtico, especificado mediante una ruta relativa que comienza con el nombre del enlace simb\u00f3lico y termina con el nombre de dicho archivo cr\u00edtico. En este caso, la extracci\u00f3n sigue el enlace simb\u00f3lico y sobrescribe el archivo cr\u00edtico. Esto evita el mecanismo de protecci\u00f3n \\\"El nombre del miembro contiene \u0027..\u0027\\\" que se aplicar\u00eda a un solo archivo TAR que intentara especificar el archivo cr\u00edtico mediante un enfoque ../. Por ejemplo, el primer archivo puede contener \\\"x -\u0026gt; ../../../../../home/victim/.ssh\\\" y el segundo puede contener x/authorized_keys. Esto puede afectar a las aplicaciones de servidor que extraen autom\u00e1ticamente cualquier n\u00famero de archivos TAR proporcionados por el usuario y que depend\u00edan del bloqueo del recorrido. Esto tambi\u00e9n puede afectar los procesos de instalaci\u00f3n de software en los que \\\"tar xf\\\" se ejecuta m\u00e1s de una vez (por ejemplo, al instalar un paquete, se pueden instalar autom\u00e1ticamente dos dependencias que est\u00e1n configuradas como archivos tar no confiables en lugar de paquetes oficiales).\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"cve@mitre.org\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L\",\"baseScore\":4.1,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"LOW\"},\"exploitabilityScore\":1.0,\"impactScore\":2.7}]},\"weaknesses\":[{\"source\":\"cve@mitre.org\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-24\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:gnu:tar:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"1.35\",\"matchCriteriaId\":\"52C282C2-9389-4DF9-BC8C-4CD7EEFB7229\"}]}]}],\"references\":[{\"url\":\"https://github.com/i900008/vulndb/blob/main/Gnu_tar_vuln.md\",\"source\":\"cve@mitre.org\",\"tags\":[\"Exploit\",\"Third Party Advisory\"]},{\"url\":\"https://lists.gnu.org/archive/html/bug-tar/2025-08/msg00012.html\",\"source\":\"cve@mitre.org\"},{\"url\":\"https://www.gnu.org/software/tar/\",\"source\":\"cve@mitre.org\",\"tags\":[\"Product\",\"Release Notes\"]},{\"url\":\"https://www.gnu.org/software/tar/manual/html_node/Integrity.html\",\"source\":\"cve@mitre.org\"},{\"url\":\"https://www.gnu.org/software/tar/manual/html_node/Security-rules-of-thumb.html\",\"source\":\"cve@mitre.org\"}]}}", "vulnrichment": { "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-45582\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"poc\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-07-11T18:27:18.891014Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-07-11T18:27:23.067Z\"}}], \"cna\": {\"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 4.1, \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:N/I:L/A:L\"}}], \"affected\": [{\"vendor\": \"GNU\", \"product\": \"Tar\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"versionType\": \"custom\", \"lessThanOrEqual\": \"1.35\"}], \"defaultStatus\": \"unknown\"}], \"references\": [{\"url\": \"https://github.com/i900008/vulndb/blob/main/Gnu_tar_vuln.md\"}, {\"url\": \"https://www.gnu.org/software/tar/\"}, {\"url\": \"https://www.gnu.org/software/tar/manual/html_node/Security-rules-of-thumb.html\"}, {\"url\": \"https://www.gnu.org/software/tar/manual/html_node/Integrity.html\"}, {\"url\": \"https://lists.gnu.org/archive/html/bug-tar/2025-08/msg00012.html\"}], \"x_generator\": {\"engine\": \"enrichogram 0.0.1\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"GNU Tar through 1.35 allows file overwrite via directory traversal in crafted TAR archives, with a certain two-step process. First, the victim must extract an archive that contains a ../ symlink to a critical directory. Second, the victim must extract an archive that contains a critical file, specified via a relative pathname that begins with the symlink name and ends with that critical file\u0027s name. Here, the extraction follows the symlink and overwrites the critical file. This bypasses the protection mechanism of \\\"Member name contains \u0027..\u0027\\\" that would occur for a single TAR archive that attempted to specify the critical file via a ../ approach. For example, the first archive can contain \\\"x -\u003e ../../../../../home/victim/.ssh\\\" and the second archive can contain x/authorized_keys. This can affect server applications that automatically extract any number of user-supplied TAR archives, and were relying on the blocking of traversal. This can also affect software installation processes in which \\\"tar xf\\\" is run more than once (e.g., when installing a package can automatically install two dependencies that are set up as untrusted tarballs instead of official packages). NOTE: the official GNU Tar manual has an otherwise-empty directory for each \\\"tar xf\\\" in its Security Rules of Thumb; however, third-party advice leads users to run \\\"tar xf\\\" more than once into the same directory.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-24\", \"description\": \"CWE-24 Path Traversal: \u0027../filedir\u0027\"}]}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:a:gnu:tar:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndIncluding\": \"1.35\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"8254265b-2729-46b6-b9e3-3dfca2d5bfca\", \"shortName\": \"mitre\", \"dateUpdated\": \"2025-08-18T03:08:06.530Z\"}}}", "cveMetadata": "{\"cveId\": \"CVE-2025-45582\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-08-18T03:08:06.530Z\", \"dateReserved\": \"2025-04-22T00:00:00.000Z\", \"assignerOrgId\": \"8254265b-2729-46b6-b9e3-3dfca2d5bfca\", \"datePublished\": \"2025-07-11T00:00:00.000Z\", \"assignerShortName\": \"mitre\"}", "dataType": "CVE_RECORD", "dataVersion": "5.1" } } }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…