Public mode

No access to your tenant or devices. Every item links to its source. What this means

Sources need attention Customize Public modeDiscuss ChangeIntel on Discord

Relative path traversal in zip:unzip/zip:extract via check_dir_level depth-counter bypass

CVSS 4.0 4.8 MEDIUMCheck source for fixed versionsKEV status unknown

Historical advisory recorded 23 Oct 2026 15:48:27 UTC. Read the latest advisory.

cve-program · CVE-2026-47078

Published

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.

Read the publisher's advisory

Affected versions, risk and source history

cve-program · CVE-2026-47078

Published

otp

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "cpes": [
                        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "zip"
                    ],
                    "packageName": "otp",
                    "packageURL": "pkg:software-id/erlang.org/otp",
                    "product": "OTP",
                    "programFiles": [
                        "lib/stdlib/src/zip.erl"
                    ],
                    "programRoutines": [
                        {
                            "name": "zip:unzip/1"
                        },
                        {
                            "name": "zip:unzip/2"
                        },
                        {
                            "name": "zip:extract/1"
                        },
                        {
                            "name": "zip:extract/2"
                        },
                        {
                            "name": "zip:check_dir_level/2"
                        }
                    ],
                    "vendor": "Erlang",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "27.3.4.15",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "28.5.0.4",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "29.0.4",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "*",
                            "status": "affected",
                            "version": "27.1",
                            "versionType": "otp"
                        }
                    ]
                }

stdlib

Vendor product

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "cpes": [
                        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "zip"
                    ],
                    "packageName": "stdlib",
                    "packageURL": "pkg:otp/stdlib?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
                    "product": "OTP",
                    "programFiles": [
                        "src/zip.erl"
                    ],
                    "programRoutines": [
                        {
                            "name": "zip:unzip/1"
                        },
                        {
                            "name": "zip:unzip/2"
                        },
                        {
                            "name": "zip:extract/1"
                        },
                        {
                            "name": "zip:extract/2"
                        },
                        {
                            "name": "zip:check_dir_level/2"
                        }
                    ],
                    "repo": "https://github.com/erlang/otp",
                    "vendor": "Erlang",
                    "versions": [
                        {
                            "changes": [
                                {
                                    "at": "6.2.2.4",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "7.3.0.1",
                                    "status": "unaffected"
                                },
                                {
                                    "at": "8.0.3",
                                    "status": "unaffected"
                                }
                            ],
                            "lessThan": "*",
                            "status": "affected",
                            "version": "6.1",
                            "versionType": "otp"
                        }
                    ]
                }

erlang/otp

https://github.com

Publisher's version information

Shown as published. These rules are not interpreted as NuGet package version ranges.

{
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "zip"
                    ],
                    "packageName": "erlang/otp",
                    "packageURL": "pkg:github/erlang/otp",
                    "product": "OTP",
                    "programFiles": [
                        "lib/stdlib/src/zip.erl"
                    ],
                    "programRoutines": [
                        {
                            "name": "zip:unzip/1"
                        },
                        {
                            "name": "zip:unzip/2"
                        },
                        {
                            "name": "zip:extract/1"
                        },
                        {
                            "name": "zip:extract/2"
                        },
                        {
                            "name": "zip:check_dir_level/2"
                        }
                    ],
                    "repo": "https://github.com/erlang/otp",
                    "vendor": "Erlang",
                    "versions": [
                        {
                            "lessThan": "8a933c9c7835b06776d31d17b79b7336627d887a",
                            "status": "affected",
                            "version": "8d537f51a4262d24f3395c4148323eaca9facbbd",
                            "versionType": "git"
                        }
                    ]
                }

Original source record · Cite this exact observation · Complete original publisher JSON

ChangeIntel

An IT change radar: releases, security, known issues, retirements, documentation changes, and service status from public sources. Every item links to supporting evidence; dates and statuses can change after they are read.

Sources read 17 Nov 02:47 UTC · 274 of 275 readable · 250 fully read · 20 waiting for GitHub's hourly limit · documentation 469/469 current