CVE catalog

CVE-2018-16421

opensc affected and fixed versions

[CVE catalog]

Several buffer overflows when handling responses from a CAC Card in cac_get_serial_nr_from_CUID in libopensc/card-cac.c in OpenSC before 0.19.0-rc1 could be used by attackers able to supply crafted smartcards to cause a denial of service (application crash) or possibly have unspecified other impact.

Severity
Medium · CVSS 4.3CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.72% · Oct 27, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Debiantrixieopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debiantrixieopensc0.26.1-2Fixed[CVE-2018-16421]
Debiansidopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debiansidopensc0.27.1-3Fixed[CVE-2018-16421]
Debianforkyopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debianforkyopensc0.27.1-3Fixed[CVE-2018-16421]
Debianbookwormopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debianbookwormopensc0.23.0-0.3+deb12u2Fixed[CVE-2018-16421]

Showing 8 fix observations. All 16 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
UnknownRelease not reportedopensc0.19.0~rc1-1UnknownSource applicability is not establishedProvider not reported
Debianbookwormopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debianbookwormopensc0.23.0-0.3+deb12u2Fixed[CVE-2018-16421]
Debianforkyopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debianforkyopensc0.27.1-3Fixed[CVE-2018-16421]
Debiansidopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debiansidopensc0.27.1-3Fixed[CVE-2018-16421]
Debiantrixieopensc0.19.0~rc1-1FixedDistribution-reported fixed boundary[CVE-2018-16421]
Debiantrixieopensc0.26.1-2Fixed[CVE-2018-16421]
Ubuntuproopensc0.17.0-1UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Ubuntuproopensc0.17.0-2UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Ubuntuproopensc0.17.0-2build1UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Ubuntuproopensc0.17.0-3UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Ubuntuproopensc0.17.0-3ubuntu0.1~esm1UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Ubuntuproopensc0.17.0-3ubuntu0.1~esm2UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Ubuntuproopensc0.17.0-3ubuntu0.1~esm3UnknownSource applicability is not established[UBUNTU-CVE-2018-16421]
Original provider fields
{
  "package_releases": [
    {
      "name": "opensc",
      "status": "fixed",
      "release": "sid",
      "version": "0.27.1-3"
    },
    {
      "name": "opensc",
      "status": "fixed",
      "release": "forky",
      "version": "0.27.1-3"
    },
    {
      "name": "opensc",
      "status": "fixed",
      "release": "trixie",
      "version": "0.26.1-2"
    },
    {
      "name": "opensc",
      "status": "fixed",
      "release": "bookworm",
      "version": "0.23.0-0.3+deb12u2"
    }
  ],
  "fixed_versions": [
    {
      "bug": 909444,
      "name": "opensc",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "low",
      "fixed_version": "0.19.0~rc1-1"
    },
    {
      "bug": 909444,
      "name": "opensc",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "low",
      "fixed_version": "0.19.0~rc1-1"
    },
    {
      "bug": 909444,
      "name": "opensc",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "low",
      "fixed_version": "0.19.0~rc1-1"
    },
    {
      "bug": 909444,
      "name": "opensc",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "low",
      "fixed_version": "0.19.0~rc1-1"
    }
  ],
  "distribution_packages": [
    {
      "name": "opensc",
      "fixed_version": "0.19.0~rc1-1",
      "applicability_unknown": true
    },
    {
      "name": "opensc",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "0.17.0-1",
        "0.17.0-2",
        "0.17.0-2build1",
        "0.17.0-3",
        "0.17.0-3ubuntu0.1~esm1",
        "0.17.0-3ubuntu0.1~esm2",
        "0.17.0-3ubuntu0.1~esm3"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2018-16421",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2018-16421",
      "provider_updated_at": "2025-09-08T16:45:00Z",
      "applicability_unknown": true
    }
  ]
}

[Debian bug #909444]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [opensc]Unknown
    Details (2)
    • 0.23.0-0.3+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · bookworm; dsa · opensc · debian · 12

    • 0.23.0-0.3+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · bookworm; dsa · opensc · debian · 12

  • [opensc-pkcs11]Unknown

    Source package: [opensc]

    Details (2)
    • 0.23.0-0.3+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · bookworm; dsa · opensc · debian · 12

    • 0.23.0-0.3+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · bookworm; dsa · opensc · debian · 12

[Debian 13 (Trixie)]

  • [opensc]Unknown
    Details (2)
    • 0.26.1-2 · amd64 · trixie

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · 13

    • 0.26.1-2 · arm64 · trixie

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · 13

  • [opensc-pkcs11]Unknown

    Source package: [opensc]

    Details (2)
    • 0.26.1-2 · amd64 · trixie

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · 13

    • 0.26.1-2 · arm64 · trixie

      Fixed · Fixed: 0.19.0~rc1-1

      dsa · opensc · debian · 13

Observed:

References