CVE-2013-1866

Arbitrary root file overwrite via card labels

Published Jan 30, 2020 · Updated Aug 6, 2024

Path traversal in OpenSC.tokend before 0.13.0 allows physically proximate attackers to overwrite files as root via a smart card. The token cache code concatenates untrusted card and token labels into paths beneath /var/db/TokenCache and follows symbolic links instead of hashing those values. Insertion of a crafted or relabeled card into a macOS reader is required; the root process can corrupt directories or files even while the screen is locked.

CVSS severity6.1
Medium
EPSS probability0.42%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Path traversal in OpenSC.tokend before 0.13.0 allows physically proximate attackers to overwrite files as root via a smart card. The token cache code concatenates untrusted card and token labels into paths beneath /var/db/TokenCache and follows symbolic links instead of hashing those values. Insertion of a crafted or relabeled card into a macOS reader is required; the root process can corrupt directories or files even while the screen is locked.

The record

CVE
CVE-2013-1866
Published
Jan 30, 2020
Updated
Aug 6, 2024
Vendor
OpenSC Project
Product
OpenSC.tokend
Classifications
CWE-59, T1200
Attack vector
physical
Privileges
unauthenticated

Timeline

How it unfolded

  1. Jan 30, 2020CVE publishedPublication date reported by the CVE source.
  2. Aug 6, 2024Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=2013

What conditions does exploitation require?

Attack vectorphysical
Required privilegesunauthenticated

What is affected?

OpenSC Project · OpenSC.tokendversion=2013

Published CVSS scores

6.3NIST NVDAV:L/AC:M/Au:N/C:N/I:C/A:C
6.1NIST NVDCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorphysical
Privilegesunauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-59Improper Link Resolution Before File Access ('Link Following')
T1200Hardware Additions

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo