CVE-2026-47078
Relative path traversal in zip:unzip/zip:extract via check_dir_level depth-counter bypass
Relative Path Traversal vulnerability in Erlang OTP (stdlib zip module) allows writing files outside the intended extraction directory via a crafted zip archive. zip:unzip/1,2 and zip:extract/1,2 validate entry paths using zip:check_dir_level/2, which tracks directory depth as a running integer counter: .. decrements it, normal path components increment it. The caller rejects only paths where the final counter value is less than zero. A path such as ../x/y causes the counter to go negative mid-traversal then recover to zero, passing validation while resolving to a location outside the extraction directory when joined with the current working directory via add_cwd. This vulnerability is associated with program file lib/stdlib/src/zip.erl. This issue affects OTP from OTP 27.1 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to stdlib from 6.1 before 6.2.2.4, 7.3.0.1, and 8.0.3.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.149% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 4.8 · published by EEFCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L
Assessment source · checked 2026-11-19T12:58:40.922Z
CVSS 4.0 · 4.8 · published by Ubuntu SecurityCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L
Assessment source · checked 2026-11-19T16:52:52.101Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:40.922Z | CVE Program |
| epss | verified | 2026-11-19T16:04:51.377Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:52:52.101Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:58:40.922Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:40.922Z | CVE Program |
Affected versions and configuration
Erlang OTP; modules: zip; default status: unaffected: 27.1 to < * [affected; scheme: otp]; changes: [{"at":"27.3.4.15","status":"unaffected"},{"at":"28.5.0.4","status":"unaffected"},{"at":"29.0.4","status":"unaffected"}] Erlang OTP; modules: zip; default status: unaffected: 6.1 to < * [affected; scheme: otp]; changes: [{"at":"6.2.2.4","status":"unaffected"},{"at":"7.3.0.1","status":"unaffected"},{"at":"8.0.3","status":"unaffected"}] Erlang OTP; modules: zip; default status: unaffected: 8d537f51a4262d24f3395c4148323eaca9facbbd to < 8a933c9c7835b06776d31d17b79b7336627d887a [affected; scheme: git]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "erlang",
"debian": "https://tracker.debian.org/pkg/erlang",
"source": "https://ubuntu.com/security/cve?package=erlang",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=erlang",
"statuses": [
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:20.2.2+dfsg-1ubuntu2+esm4",
"release_codename": "bionic"
},
{
"pocket": "esm-infra",
"status": "released",
"component": null,
"description": "1:22.2.7+dfsg-1ubuntu0.5+esm3",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:24.2.1+dfsg-1ubuntu0.8",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:25.3.2.8+dfsg-1ubuntu4.8",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:27.3.4.6+dfsg-1ubuntu0.2",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "1:29.0.4+dfsg-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "changes too intrusive",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "changes too intrusive",
"release_codename": "xenial"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"vendor": "Erlang",
"modules": [
"zip"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"changes": [
{
"at": "27.3.4.15",
"status": "unaffected"
},
{
"at": "28.5.0.4",
"status": "unaffected"
},
{
"at": "29.0.4",
"status": "unaffected"
}
],
"version": "27.1",
"lessThan": "*",
"versionType": "otp"
}
],
"packageURL": "pkg:software-id/erlang.org/otp",
"packageName": "otp",
"programFiles": [
"lib/stdlib/src/zip.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "zip:unzip/1"
},
{
"name": "zip:unzip/2"
},
{
"name": "zip:extract/1"
},
{
"name": "zip:extract/2"
},
{
"name": "zip:check_dir_level/2"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"modules": [
"zip"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"changes": [
{
"at": "6.2.2.4",
"status": "unaffected"
},
{
"at": "7.3.0.1",
"status": "unaffected"
},
{
"at": "8.0.3",
"status": "unaffected"
}
],
"version": "6.1",
"lessThan": "*",
"versionType": "otp"
}
],
"packageURL": "pkg:otp/stdlib?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"packageName": "stdlib",
"programFiles": [
"src/zip.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "zip:unzip/1"
},
{
"name": "zip:unzip/2"
},
{
"name": "zip:extract/1"
},
{
"name": "zip:extract/2"
},
{
"name": "zip:check_dir_level/2"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"modules": [
"zip"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"version": "8d537f51a4262d24f3395c4148323eaca9facbbd",
"lessThan": "8a933c9c7835b06776d31d17b79b7336627d887a",
"versionType": "git"
}
],
"packageURL": "pkg:github/erlang/otp",
"packageName": "erlang/otp",
"programFiles": [
"lib/stdlib/src/zip.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "zip:unzip/1"
},
{
"name": "zip:unzip/2"
},
{
"name": "zip:extract/1"
},
{
"name": "zip:extract/2"
},
{
"name": "zip:check_dir_level/2"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-47078",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-27T18:38:46.508080Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-07-27T18:38:54.420Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / bionic | erlang | esm-infra | 1:20.2.2+dfsg-1ubuntu2+esm4 | Official record |
| distribution-package | Ubuntu / focal | erlang | esm-infra | 1:22.2.7+dfsg-1ubuntu0.5+esm3 | Official record |
| distribution-package | Ubuntu / jammy | erlang | security | 1:24.2.1+dfsg-1ubuntu0.8 | Official record |
| distribution-package | Ubuntu / noble | erlang | security | 1:25.3.2.8+dfsg-1ubuntu4.8 | Official record |
| distribution-package | Ubuntu / resolute | erlang | security | 1:27.3.4.6+dfsg-1ubuntu0.2 | Official record |
| upstream-note | upstream / upstream | erlang | Not a distribution channel | 1:29.0.4+dfsg-1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:52:52.101ZArchived source JSON
Source publication: 2026-07-27T16:17:00.000Z
Source modification: 2026-10-08T19:47:23.129ZDocument fingerprint
3bea82ddb82a2efaff19068319f9c582502c8ffb637adc5eea36f47c2794f260 - CVE ProgramConsulted: 2026-11-19T12:58:40.922ZArchived source JSON
Source publication: 2026-07-27T15:03:50.929Z
Source modification: 2026-09-24T20:48:37.203ZDocument fingerprint
ff5b99855f55f34b08eb361dd79a2b8597689f54b20047b4045f4707e7f0b951 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:51.377ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
314533c6cad7257b55626d2ae0cd98a6c49376abfa725a18eb65ebef4059364a
Official status history
- UNKNOWN → PUBLISHED · · evidence