{"schemaVersion":3,"id":"CVE-2026-18477","aliases":["RHSA-2026:49361","UBUNTU-CVE-2026-18477","DEBIAN-CVE-2026-18477","CGA-62p8-p55w-8hv7","CGA-6mcc-f9mp-cxj9","CGA-hgrg-pr2j-rw66","CGA-hw3x-x556-3rqr","CGA-mj3q-7hxc-pp4g","CGA-vqm8-jx54-c2cp"],"status":"published","duplicateOf":null,"title":null,"description":"A TOCTOU (Time-of-Check Time-of-Use) vulnerability in GNU tar's incremental dumpdir 'X' rename handling allows a local attacker with write access to a directory being backed up to influence the restore process if the attacker has access to the system where the restore is being performed. During restoration, files or directories may be created, renamed or overwritten outside the intended extraction directory. This could lead to unauthorized file modification or, in some cases, privilege escalation. Exploitation does not require the attacker to modify or craft the archive, and standard backup and restore workflows—including extracting into a newly created directory without using the -P option do not mitigate the issue.","dates":{"published":"2026-08-03T15:34:36.627Z","modified":"2026-09-22T21:29:33.554Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":2.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":2.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":2.1,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0008,"percentile":0.00148,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0008},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0008,"percentile":0.00148}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0008,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0008,"percentile":0.00148}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.html"}],"affected":[{"vendor":"chainguard","product":"gnutar","name":"gnutar","label":"gnutar","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gnutar","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"gnutar-doc","name":"gnutar-doc","label":"gnutar-doc","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gnutar-doc","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"gnutar-rmt","name":"gnutar-rmt","label":"gnutar-rmt","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gnutar-rmt","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gnutar","name":"gnutar","label":"gnutar","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gnutar","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gnutar-doc","name":"gnutar-doc","label":"gnutar-doc","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gnutar-doc","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gnutar-rmt","name":"gnutar-rmt","label":"gnutar-rmt","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gnutar-rmt","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"tar","name":"tar","label":"tar","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/tar","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"tar","name":"tar","label":"tar","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/tar","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnu","product":"tar","name":"tar","label":"tar","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.35","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.35","eol":null,"hubHref":"/vendor/gnu/tar"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null},{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0 | 10.0","eol":{"isEol":false,"eolDate":"2029-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Upcoming ELS)","eolFrom":"2029-05-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"8.10"},"product":{"name":"rhel","label":"Red Hat Enterprise Linux","category":"os"}},"hubHref":"/vendor/redhat/enterprise_linux"},{"vendor":"redhat","product":"openshift_container_platform","name":"openshift container platform","label":"openshift_container_platform","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.0","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"},{"vendor":"redhat","product":"tar","name":"tar","label":"tar","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/tar","purlType":"rpm","versions":[{"text":"< 0:1.35-9.1.hum1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:1.35-9.1.hum1","eol":null,"hubHref":null}],"affectedCount":12,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:49361","label":"access.redhat.com/errata/RHSA-2026:49361","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:61581","label":"access.redhat.com/errata/RHSA-2026:61581","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:61586","label":"access.redhat.com/errata/RHSA-2026:61586","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:61783","label":"access.redhat.com/errata/RHSA-2026:61783","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:66018","label":"access.redhat.com/errata/RHSA-2026:66018","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:70390","label":"access.redhat.com/errata/RHSA-2026:70390","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-18477","label":"access.redhat.com/security/cve/CVE-2026-18477","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","REPORT","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2509735","label":"bugzilla.redhat.com/show_bug.cgi?id=2509735","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT","Vendor Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://images.redhat.com/","label":"images.redhat.com","hostname":"images.redhat.com","tags":["ARTICLE"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_49361.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_49361.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-18477","label":"www.cve.org/CVERecord?id=CVE-2026-18477","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-18477","label":"nvd.nist.gov/vuln/detail/CVE-2026-18477","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-18477","label":"ubuntu.com/security/CVE-2026-18477","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-18477","label":"security-tracker.debian.org/tracker/CVE-2026-18477","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0401","RHSA-2026:61581","RHSA-2026:61586","RHSA-2026:70390"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-08-03T15:34:36.627Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-22T21:29:33.554Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T05:01:28.033Z","stale":false,"partial":false}}