Telegram MessengerApplication · Telegram

CVE-2017-17715

HIGH · 8.8 CVSS v3.0 Published 2017-12-16
Fix available
A fix is available. Upgrade to 2017-12-08 or later.
See remediation →
95/100
Remediation priority · Urgent
Remotely reachable No privileges

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
The saveFile method in MediaController.java in the Telegram Messenger application before 2017-12-08 for Android allows directory traversal via a pathname obtained in a file-transfer request from a remote peer, as demonstrated by writing to tgnet.dat or tgnet.dat.bak.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Directory traversal vulnerability in the saveFile method of MediaController.java in Telegram Android allows remote peers to write to arbitrary files (e.g., tgnet.dat) during file transfers by including path traversal sequences in the filename.

MitigationUpdate Telegram Messenger for Android to version released on or after 2017-12-08 which contains the patched MediaController.java.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Telegram MessengerApplication
Affected:< 2017-12-08

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Verify Telegram Android is installed
    Open device Settings > Apps > find Telegram Messenger in the app list. Alternatively, check the installed apps via ADB: adb shell pm list packages | grep -i telegram
    Affected if Telegram Messenger for Android is present on the device
  2. Check Telegram installation or last update date
    In Settings > Apps > Telegram Messenger > App info, note the 'Installed' date or 'Last updated' date. Via ADB: adb shell dumpsys package org.telegram.messenger | grep -i 'firstInstall|lastUpdate'
    Affected if The installed or last updated date is before December 8, 2017
  3. Confirm the vulnerable component exists
    Decompile the APK and locate MediaController.java. Check the saveFile method for missing path sanitization when handling incoming filenames during file transfers.
    Affected if The saveFile method in MediaController.java lacks input validation for path traversal sequences (e.g., ../) in filenames
  4. Determine exposure to incoming file transfers
    Review Telegram usage patterns - the vulnerability is triggered when receiving files from remote peers via the Android app.
    Affected if The user receives files from other Telegram users on the Android app

A user is affected if Telegram Messenger for Android was installed or last updated before December 8, 2017 and receives files from remote contacts.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to 2017-12-08 or later
Fixed in 2017-12-08
Interim mitigation

Update Telegram Messenger for Android to version released on or after 2017-12-08 which contains the patched MediaController.java.

Fix this in Telegram Messenger Scoped from the published advisory
  • Consultation1.0 h
  • Testing1.0 h
  • Review / QA1.0 h
3.0 hours of engineering $750
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,200.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2017-17715 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2017-17715 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data