p PatchFirst

CVE-2024-34702

CVE-2024-34702 · Botan has a Denial of Service Due to Excessive Name Constraints

CVSS 5.3 · Medium · EPSS 0.8% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • botanNo fix published
  • botan Alpine 3.17Update to 2.19.5-r0
  • botan Alpine 3.18Update to 2.19.5-r0
  • botan Alpine 3.19Update to 2.19.5-r0
  • and 12 more

Check the installed version:

apk list -I -o botan

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Botan is a C++ cryptography library. X.509 certificates can identify elliptic curves using either an object identifier or using explicit encoding of the parameters. Prior to 3.5.0 and 2.19.5, checking name constraints in X.509 certificates is quadratic in the number of names and name constraints. An attacker who presented a certificate chain which contained a very large number of names in the SubjectAlternativeName, signed by a CA certificate which contained a large number of name constraints, could cause a denial of service. The problem has been addressed in Botan 3.5.0 and a partial backport has also been applied and is included in Botan 2.19.5.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • botan

    Versions
    • < 2.19.5: Affected
    • >= 3.0.0, < 3.5.0: Affected

    No fix published

  • botan Alpine 3.17

    Affected ranges
    • ECOSYSTEM: < 2.19.5-r0

    Update to 2.19.5-r0

  • botan Alpine 3.18

    Affected ranges
    • ECOSYSTEM: < 2.19.5-r0

    Update to 2.19.5-r0

  • botan Alpine 3.19

    Affected ranges
    • ECOSYSTEM: < 2.19.5-r0

    Update to 2.19.5-r0

  • botan Alpine 3.20

    Affected ranges
    • ECOSYSTEM: < 2.19.5-r0

    Update to 2.19.5-r0

  • botan Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 2.19.5-r0

    Update to 2.19.5-r0

  • botan3 Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 3.5.0-r0

    Update to 3.5.0-r0

  • botan3 Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 3.5.0-r0

    Update to 3.5.0-r0

  • botan3 Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 3.5.0-r0

    Update to 3.5.0-r0

  • botan3 Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 3.5.0-r0

    Update to 3.5.0-r0

  • botan Debian 12

    Versions
    • 2.19.3+dfsg-1
    Affected ranges
    • ECOSYSTEM: < 2.19.3+dfsg-1+deb12u1

    Update to 2.19.3+dfsg-1+deb12u1

  • botan Debian 13

    Affected ranges
    • ECOSYSTEM: < 2.19.5+dfsg-1

    Update to 2.19.5+dfsg-1

  • botan Ubuntu 18.04 LTS

    Versions
    • 2.4.0-3
    • 2.4.0-4
    • 2.4.0-5ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan Ubuntu 20.04 LTS

    Versions
    • 2.9.0-2
    • 2.9.0-2build1
    • 2.12.1-2
    • 2.12.1-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan Ubuntu Pro 22.04 LTS

    Versions
    • 2.17.3+dfsg-3
    • 2.19.1+dfsg-2ubuntu1
    Affected ranges
    • ECOSYSTEM: < 2.19.1+dfsg-2ubuntu1+esm1

    Update to 2.19.1+dfsg-2ubuntu1+esm1

  • botan Ubuntu Pro 24.04 LTS

    Versions
    • 2.19.3+dfsg-1ubuntu1
    • 2.19.3+dfsg-1ubuntu2
    Affected ranges
    • ECOSYSTEM: < 2.19.3+dfsg-1ubuntu2+esm1

    Update to 2.19.3+dfsg-1ubuntu2+esm1

Original sources

Check your server →