Every CVE Search/ Get API key

CVE-2015-5726

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers...

7.5 HighFix available

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

1.35%Up 0.3 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data.

Record
CVE-2015-5726
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.0
5.0 MediumAV:N/AC:L/Au:N/C:N/I:N/A:P
Weakness
CWE-20
Updated
2026-11-02
CVE List No score

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data.

Record
CVE-2015-5726
Updated
2026-11-02
EUVDEUVD-2015-5672 No score

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data.

Record
EUVD-2015-5672
Updated
2026-11-03
GitHub AdvisoriesGHSA-jcv7-v2cp-24v2 7.5

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers...

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data.

Record
GHSA-jcv7-v2cp-24v2
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-20
Updated
2026-11-02
OSVUBUNTU-CVE-2015-5726 7.5

The BER decoder in Botan 0.10.x before 1.10.10 and 1.11.x before 1.11.19 allows remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data.

Record
UBUNTU-CVE-2015-5726
CVSS 3.0
7.5 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2016-0102 No score

Updated botan packages fix security vulnerability

The BER decoder would crash due to reading from offset 0 of an empty vector if it encountered a BIT STRING which did not contain any data at all. This can be used to easily crash applicatons reading untrusted ASN.1 data, but does not seem exploitable for code execution (CVE-2015-5726).

The BER decoder would allocate a fairly arbitrary amount of memory in a length field, even if there was no chance the read request would succeed. This might cause the process to run out of memory or invoke the OOM killer (CVE-2015-5727).

The ressol function implements the Tonelli-Shanks algorithm for finding square roots could be sent into a nearly infinite loop due to a misplaced conditional check. This could occur if a composite modulus is provided, as this algorithm is only defined for primes. This function is exposed to attacker controlled input via the OS2ECP function during ECC point decompression (CVE-2016-2194).

The PointGFp constructor did not check that the affine coordinate arguments were less than the prime, but then in curve multiplication assumed that both arguments if multiplied would fit into an integer twice the size of the prime. The bigint_mul and bigint_sqr functions received the size of the output buffer, but only used it to dispatch to a faster algorithm in cases where there was sufficient output space to call an unrolled multiplication function. The result is a heap overflow accessible via ECC point decoding, which accepted untrusted inputs. This is likely exploitable for remote code execution. On systems which use the mlock pool allocator, it would allow an attacker to overwrite memory held in secure_vector objects. After this point the write will hit the guard page at the end of the mmap'ed region so it probably could not be used for code execution directly, but would allow overwriting adjacent key material (CVE-2016-2195).

Record
MGASA-2016-0102
Updated
2026-11-02
OSVopenSUSE-SU-2024:10477-1 No score

libbotan-1_10-1-1.10.13-1.1 on GA media

These are all security issues fixed in the libbotan-1_10-1-1.10.13-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10477-1
Updated
2026-11-02
OSVSUSE-SU-2017:1222-1 No score

Security update for Botan

This update for Botan to version 1.10.9 fixes the following issues:

These security issues were fixed:

  • CVE-2015-5726: The BER decoder in Botan 0.10.x allowed remote attackers to cause a denial of service (application crash) via an empty BIT STRING in ASN.1 data (bsc#968025).
  • CVE-2015-5727: The BER decoder in Botan 1.10.x allowed remote attackers to cause a denial of service (memory consumption) via unspecified vectors, related to a length field (bsc#968026).
  • CVE-2015-7827: Botan make it easier for remote attackers to conduct million-message attacks by measuring time differences, related to decoding of PKCS#1 padding (bsc#968030).
  • CVE-2016-2849: Botan do not use a constant-time algorithm to perform a modular inverse on the signature nonce k, which might allowed remote attackers to obtain ECDSA secret keys via a timing side-channel attack (bsc#977420).
  • CVE-2016-9132: In Botan 1.8.0 when decoding BER data an integer overflow could occur, which would cause an incorrect length field to be computed. Some API callers may use the returned (incorrect and attacker controlled) length field in a way which later caused memory corruption or other failure (bsc#1013209).
  • CVE-2016-2194: The ressol function in Botan allowed remote attackers to cause a denial of service (infinite loop) via unspecified input to the OS2ECP function, related to a composite modulus (bsc#965621).
  • CVE-2016-2195: Integer overflow in the PointGFp constructor in Botan allowed remote attackers to overwrite memory and possibly execute arbitrary code via a crafted ECC point, which triggers a heap-based buffer overflow (bsc#965620).
  • CVE-2017-2801: Incorrect comparison in X.509 DN strings (bsc#1033605).
  • CVE-2014-9742: The Miller-Rabin primality check in Botan improperly used a single random base, which made it easier for remote attackers to defeat cryptographic protection mechanisms via a DH group (bsc#974521).

These non-security issues were fixed:

  • Fixed EAX tag verification to run in constant time
  • The default TLS policy now disables SSLv3.
  • A crash could have occured when reading from a blocking random device if the device initially indicated that entropy was available but a concurrent process drained the entropy pool before the read was initiated.
  • Fixed decoding indefinite length BER constructs that contain a context sensitive tag of zero.
  • The key length limit on HMAC has been raised to 512 bytes, allowing the use of very long passphrases with PBKDF2.
  • OAEP had two bugs, one of which allowed it to be used even if the key was too small, and the other of which would cause a crash during decryption if the EME data was too large for the associated key.
Record
SUSE-SU-2017:1222-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
botan1.10
Debian:7
before 1.10.5-1+deb7u1, plus listed versions
1.10.5-1
1.10.5-1+deb7u1
botan1.10
Debian:8
before 1.10.8-2+deb8u1, plus listed versions
1.10.8-2
1.10.8-2+deb8u1
botan
Mageia:5
before 1.10.12-1.mga5
1.10.12-1.mga5
monotone
Mageia:5
before 1.1-4.1.mga5
1.1-4.1.mga5
softhsm
Mageia:5
before 1.3.4-5.1.mga5
1.3.4-5.1.mga5
Botan
SUSE:Linux Enterprise Software Development Kit 12 SP1
before 1.10.9-3.1
1.10.9-3.1
Botan
SUSE:Linux Enterprise Software Development Kit 12 SP2
before 1.10.9-3.1
1.10.9-3.1
botan1.10
Ubuntu:14.04:LTS
before 1.10.5-1+deb7u1ubuntu0.14.04.1, plus listed versions
1.10.5-11.10.5-1ubuntu1
1.10.5-1+deb7u1ubuntu0.14.04.1
Botan
openSUSE:Tumbleweed
before 1.10.13-1.1
1.10.13-1.1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2015-5726 is a high vulnerability (CVSS 7.5) in Botan Project Botan, published March 7, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.35%, the 71st percentile. Fixed in botan1.10 1.10.5-1+deb7u1.

References

Show 22 moreShow less
MoveEnter Open