Skip to content
Heist/ feed
Low

SFTP READLINK Leaks Absolute Backend Filesystem Path When Root Is Configured

Type: advisorySource: Official CVE List1 source record

Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Erlang OTP ssh (ssh_sftpd module) allows File Discovery. The SSH_FXP_READLINK handler in ssh_sftpd sends the raw result of file:read_link/2 to the client without calling chroot_filename/2 to strip the backend root prefix. An authenticated SFTP client can create a symlink inside the chroot pointing to /; ssh_sftpd resolves the target to the absolute backend root and stores it on disk. Reading the symlink back via SSH_FXP_READLINK returns that absolute path, for example /data/sftp, instead of the chrooted value /. The information disclosed is the absolute filesystem path of the SFTP root directory and of any symlink targets within it. No file contents, credentials, or access to paths outside the root directory are obtainable through this issue alone. This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl. This issue affects OTP from OTP 17.0 before OTP 27.3.4.13, OTP 28.5.0.2, and OTP 29.0.2, corresponding to ssh from 3.0.1 before 5.2.11.8, 5.5.2.1, and 6.0.1. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.

Announced Source revision 1
Original source ↗

CVE-2026-48855

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-48855

OTP

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

OTP

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

OTP

Source reference: /containers/cna/affected/2/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "vendor": "Erlang",
    "modules": [
      "ssh_sftpd"
    ],
    "product": "OTP",
    "versions": [
      {
        "status": "affected",
        "changes": [
          {
            "at": "27.3.4.13",
            "status": "unaffected"
          },
          {
            "at": "28.5.0.2",
            "status": "unaffected"
          },
          {
            "at": "29.0.2",
            "status": "unaffected"
          }
        ],
        "version": "17.0",
        "lessThan": "*",
        "versionType": "otp"
      }
    ],
    "packageURL": "pkg:software-id/erlang.org/otp",
    "packageName": "otp",
    "programFiles": [
      "lib/ssh/src/ssh_sftpd.erl"
    ],
    "defaultStatus": "unknown",
    "programRoutines": [
      {
        "name": "ssh_sftpd:handle_op/4"
      }
    ]
  },
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "repo": "https://github.com/erlang/otp",
    "vendor": "Erlang",
    "modules": [
      "ssh_sftpd"
    ],
    "product": "OTP",
    "versions": [
      {
        "status": "affected",
        "changes": [
          {
            "at": "5.2.11.8",
            "status": "unaffected"
          },
          {
            "at": "5.5.2.1",
            "status": "unaffected"
          },
          {
            "at": "6.0.1",
            "status": "unaffected"
          }
        ],
        "version": "3.0.1",
        "lessThan": "*",
        "versionType": "otp"
      }
    ],
    "packageURL": "pkg:otp/ssh?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
    "packageName": "ssh",
    "programFiles": [
      "src/ssh_sftpd.erl"
    ],
    "defaultStatus": "unknown",
    "programRoutines": [
      {
        "name": "ssh_sftpd:handle_op/4"
      }
    ]
  },
  {
    "cpes": [
      "cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
    ],
    "repo": "https://github.com/erlang/otp",
    "vendor": "Erlang",
    "modules": [
      "ssh_sftpd"
    ],
    "product": "OTP",
    "versions": [
      {
        "status": "affected",
        "version": "08225797f7ef943d0c82a1d9dd6650d94ca2580d",
        "lessThan": "8f4224a0d2676b0653d2c71a889a956e8c2c62d6",
        "versionType": "git"
      },
      {
        "status": "unaffected",
        "version": "8f4224a0d2676b0653d2c71a889a956e8c2c62d6",
        "lessThan": "*",
        "versionType": "git"
      }
    ],
    "packageURL": "pkg:github/erlang/otp",
    "packageName": "erlang/otp",
    "programFiles": [
      "lib/ssh/src/ssh_sftpd.erl"
    ],
    "collectionURL": "https://github.com",
    "defaultStatus": "unknown",
    "programRoutines": [
      {
        "name": "ssh_sftpd:handle_op/4"
      }
    ]
  }
]
Related CVEs
CVE-2026-48855

Source reference: /cveMetadata/cveId

Publisher severity

low

Source reference: /containers/cna/metrics

Event
#1890 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement