{"schemaVersion":4,"id":"CVE-2025-5918","aliases":["UBUNTU-CVE-2025-5918","DEBIAN-CVE-2025-5918"],"status":"published","duplicateOf":null,"title":"Libarchive: reading past eof may be triggered for piped file streams","description":"A vulnerability has been identified in the libarchive library. This flaw can be triggered when file streams are piped into bsdtar, potentially allowing for reading past the end of the file. This out-of-bounds read can lead to unintended consequences, including unpredictable program behavior, memory corruption, or a denial-of-service condition.","dates":{"published":"2025-06-09T19:49:13.544Z","modified":"2026-11-25T16:51:11.496Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.6,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.9,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.6,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","exploitability":3.3,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.6,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","exploitability":3.3,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.6,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00489,"percentile":0.43671,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.11200000000000003,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00377},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00368,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00489,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00489,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00489,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00489,"percentile":0.43671}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00377,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00393,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00305,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00489,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00489,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00489,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00489,"percentile":0.43671}]},"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-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"}],"affected":[{"vendor":"debian","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libarchive","purlType":"deb","versions":[{"text":"< 3.6.2-1+deb12u4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.6.2-1+deb12u4","endInclusive":false}},{"text":"< 3.7.4-4+deb13u1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.7.4-4+deb13u1","endInclusive":false}},{"text":"< 3.8.4-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.8.4-1","endInclusive":false}}],"versionsText":"< 3.6.2-1+deb12u4 | < 3.7.4-4+deb13u1 | < 3.8.4-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libarchive","purlType":"deb","versions":[{"text":"< 3.1.2-7ubuntu2.8+esm4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.2-7ubuntu2.8+esm4","endInclusive":false}},{"text":"< 3.1.2-11ubuntu0.16.04.8+esm2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.2-11ubuntu0.16.04.8+esm2","endInclusive":false}},{"text":"< 3.2.2-3.1ubuntu0.7+esm2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.2.2-3.1ubuntu0.7+esm2","endInclusive":false}},{"text":"< 3.4.0-2ubuntu1.5+esm1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.4.0-2ubuntu1.5+esm1","endInclusive":false}},{"text":"< 3.6.0-1ubuntu1.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.6.0-1ubuntu1.6","endInclusive":false}},{"text":"< 3.7.2-2ubuntu0.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.7.2-2ubuntu0.6","endInclusive":false}},{"text":"< 3.7.7-0ubuntu3.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.7.7-0ubuntu3.1","endInclusive":false}}],"versionsText":"< 3.1.2-7ubuntu2.8+esm4 | < 3.1.2-11ubuntu0.16.04.8+esm2 | < 3.2.2-3.1ubuntu0.7+esm2 | < 3.4.0-2ubuntu1.5+esm1 | < 3.6.0-1ubuntu1.6 | < 3.7.2-2ubuntu0.6 | < 3.7.7-0ubuntu3.1","eol":null,"hubHref":null},{"vendor":"libarchive","product":"libarchive","name":"libarchive","label":"libarchive","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.8.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.8.0","endInclusive":false}}],"versionsText":"< 3.8.0","eol":null,"hubHref":"/vendor/libarchive/libarchive"},{"vendor":"redhat","product":"enterprise_linux","name":"enterprise linux","label":"enterprise_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"6.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"6.0"}},{"text":"7.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"7.0"}},{"text":"8.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"8.0"}},{"text":"9.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"exact","version":"9.0"}}],"versionsText":"6.0 | 7.0 | 8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-11-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"6","label":"6 (ELS)","eolFrom":"2020-11-30T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"6.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,"bounds":{"kind":"exact","version":"4.0"}}],"versionsText":"4.0","eol":null,"hubHref":"/vendor/redhat/openshift_container_platform"}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-5918","label":"access.redhat.com/security/cve/CVE-2025-5918","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","REPORT","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2370877","label":"bugzilla.redhat.com/show_bug.cgi?id=2370877","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://github.com/libarchive/libarchive/pull/2584","label":"github.com/libarchive/libarchive/pull/2584","hostname":"github.com","tags":["REPORT","Patch"]},{"url":"https://github.com/libarchive/libarchive/releases/tag/v3.8.0","label":"github.com/libarchive/libarchive/releases/tag/v3.8.0","hostname":"github.com","tags":["REPORT","Release Notes"]},{"url":"https://ubuntu.com/security/CVE-2025-5918","label":"ubuntu.com/security/CVE-2025-5918","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-5918","label":"www.cve.org/CVERecord?id=CVE-2025-5918","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8147-1","label":"ubuntu.com/security/notices/USN-8147-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-5918","label":"security-tracker.debian.org/tracker/CVE-2025-5918","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-5918","label":"nvd.nist.gov/vuln/detail/CVE-2025-5918","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4368-1","MGASA-2026-0366","SUSE-SU-2025:02566-1","SUSE-SU-2025:02718-1","SUSE-SU-2025:02718-2","SUSE-SU-2025:20560-1","SUSE-SU-2025:20594-1","USN-8147-1"],"duplicates":[],"related":["SUSE-SU-2025:02566-1","SUSE-SU-2025:02718-1","SUSE-SU-2025:02718-2","SUSE-SU-2025:20560-1","SUSE-SU-2025:20594-1","USN-8147-1"]},"timeline":[{"kind":"published","date":"2025-06-09T19:49:13.544Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-25T16:51:11.496Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,39],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00489,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-25T16:51:11.496Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":3.9,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-11-25T16:51:11.496Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-11-25T16:51:11.496Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-11-25T16:51:11.496Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-06-10T13:44:05.687Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00489,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T05:02:50.511Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T05:02:51.052Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T05:02:51.313Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T05:00:54.010Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T05:02:48.843Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T05:02:47.884Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:06:05.814Z","stale":false,"partial":false}}