CVE catalog

CVE-2019-18840

wolfssl affected and fixed versions

[CVE catalog]

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data while handshaking. Specifically, there is a one-byte heap-based buffer overflow inside the DecodedCert structure in GetName in wolfcrypt/src/asn.c because the domain name location index is mishandled. Because a pointer is overwritten, there is an invalid free.

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
1.97% · 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
Debiantrixiewolfssl4.2.0+dfsg-3FixedDistribution-reported fixed boundary[CVE-2019-18840]
Debiantrixiewolfssl5.7.2-0.1+deb13u2Fixed[CVE-2019-18840]
Debiansidwolfssl4.2.0+dfsg-3FixedDistribution-reported fixed boundary[CVE-2019-18840]
Debiansidwolfssl5.9.2-1.2Fixed[CVE-2019-18840]
Debianbookworm-securitywolfssl5.5.4-2+deb12u3Fixed[CVE-2019-18840]
Debianbookwormwolfssl4.2.0+dfsg-3FixedDistribution-reported fixed boundary[CVE-2019-18840]
Debianbookwormwolfssl5.5.4-2+deb12u2Fixed[CVE-2019-18840]
Ubuntu20.04wolfssl4.2.0+dfsg-3Fixed[UBUNTU-CVE-2019-18840]

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

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Debianbookwormwolfssl4.2.0+dfsg-3FixedDistribution-reported fixed boundary[CVE-2019-18840]
Debianbookwormwolfssl5.5.4-2+deb12u2Fixed[CVE-2019-18840]
Debianbookworm-securitywolfssl5.5.4-2+deb12u3Fixed[CVE-2019-18840]
Debiansidwolfssl4.2.0+dfsg-3FixedDistribution-reported fixed boundary[CVE-2019-18840]
Debiansidwolfssl5.9.2-1.2Fixed[CVE-2019-18840]
Debiantrixiewolfssl4.2.0+dfsg-3FixedDistribution-reported fixed boundary[CVE-2019-18840]
Debiantrixiewolfssl5.7.2-0.1+deb13u2Fixed[CVE-2019-18840]
Ubuntu20.04wolfssl4.1.0+dfsg-2Affected[UBUNTU-CVE-2019-18840]
Ubuntu20.04wolfssl4.2.0+dfsg-1Affected[UBUNTU-CVE-2019-18840]
Ubuntu20.04wolfssl4.2.0+dfsg-2Affected[UBUNTU-CVE-2019-18840]
Ubuntu20.04wolfssl4.2.0+dfsg-3Fixed[UBUNTU-CVE-2019-18840]
Original provider fields
{
  "package_releases": [
    {
      "name": "wolfssl",
      "status": "fixed",
      "release": "sid",
      "version": "5.9.2-1.2"
    },
    {
      "name": "wolfssl",
      "status": "fixed",
      "release": "trixie",
      "version": "5.7.2-0.1+deb13u2"
    },
    {
      "name": "wolfssl",
      "status": "fixed",
      "release": "bookworm",
      "version": "5.5.4-2+deb12u2"
    },
    {
      "name": "wolfssl",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "5.5.4-2+deb12u3"
    }
  ],
  "fixed_versions": [
    {
      "bug": null,
      "name": "wolfssl",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "not yet assigned",
      "fixed_version": "4.2.0+dfsg-3"
    },
    {
      "bug": null,
      "name": "wolfssl",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "not yet assigned",
      "fixed_version": "4.2.0+dfsg-3"
    },
    {
      "bug": null,
      "name": "wolfssl",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "4.2.0+dfsg-3"
    }
  ],
  "distribution_packages": [
    {
      "name": "wolfssl",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.2.0+dfsg-3"
            }
          ]
        }
      ],
      "release": "20.04",
      "versions": [
        "4.1.0+dfsg-2",
        "4.2.0+dfsg-1",
        "4.2.0+dfsg-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2019-18840",
      "fixed_version": "4.2.0+dfsg-3",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2019-18840",
      "provider_updated_at": "2026-04-22T12:14:39.369581Z"
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libwolfssl35]Unknown

    Source package: [wolfssl]

    Details (4)
    • 5.5.4-2+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

    • 5.5.4-2+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

    • 5.5.4-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

    • 5.5.4-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

  • Source package: [wolfssl]

    Details (4)
    • 5.5.4-2+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

    • 5.5.4-2+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

    • 5.5.4-2+deb12u3 · amd64 · bookworm-security

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

    • 5.5.4-2+deb12u3 · arm64 · bookworm-security

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · bookworm; dsa · wolfssl · debian · 12

[Debian 13 (Trixie)]

  • Source package: [wolfssl]

    Details (2)
    • 5.7.2-0.1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · 13

    • 5.7.2-0.1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · 13

  • Source package: [wolfssl]

    Details (2)
    • 5.7.2-0.1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · 13

    • 5.7.2-0.1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 4.2.0+dfsg-3

      dsa · wolfssl · debian · 13

Observed:

References