CVE-2019-17362
libtomcrypt: out-of-bounds read in the der_decode_utf8_string function in der_decode_utf8_string.c
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Azure Linux, CBL-Mariner. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
In LibTomCrypt through 1.18.2, the der_decode_utf8_string function (in der_decode_utf8_string.c) does not properly detect certain invalid UTF-8 sequences. This allows context-dependent attackers to cause a denial of service (out-of-bounds read and crash) or read information from other memory locations via carefully crafted DER-encoded data.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | libtomcrypt | 0:1.18.2-9.azl3 |
| CBL-Mariner 2.0 | libtomcrypt | 0:1.18.2-9.cm2 |
| alpine 3.18 | perl-cryptx | 0.079-r0 |
| alpine 3.19 | perl-cryptx | 0.079-r0 |
| alpine 3.20 | perl-cryptx | 0.079-r0 |
| alpine 3.21 | perl-cryptx | 0.079-r0 |
| alpine 3.22 | perl-cryptx | 0.079-r0 |
| alpine 3.23 | perl-cryptx | 0.079-r0 |
| alpine 3.24 | perl-cryptx | 0.079-r0 |
| alpine edge | perl-cryptx | 0.079-r0 |
| debian 10 | libtomcrypt | no fix listed |
| debian 11 | libtomcrypt | 1.18.2-3 |
Show all 21 entries from 21 sources
| Source | Package | Fixed in |
|---|---|---|
| Azure Linux 3.0 | libtomcrypt | 0:1.18.2-9.azl3 |
| CBL-Mariner 2.0 | libtomcrypt | 0:1.18.2-9.cm2 |
| alpine 3.18 | perl-cryptx | 0.079-r0 |
| alpine 3.19 | perl-cryptx | 0.079-r0 |
| alpine 3.20 | perl-cryptx | 0.079-r0 |
| alpine 3.21 | perl-cryptx | 0.079-r0 |
| alpine 3.22 | perl-cryptx | 0.079-r0 |
| alpine 3.23 | perl-cryptx | 0.079-r0 |
| alpine 3.24 | perl-cryptx | 0.079-r0 |
| alpine edge | perl-cryptx | 0.079-r0 |
| debian 10 | libtomcrypt | no fix listed |
| debian 11 | libtomcrypt | 1.18.2-3 |
| debian 12 | libtomcrypt | 1.18.2-3 |
| debian 13 | libtomcrypt | 1.18.2-3 |
| debian 14 | libtomcrypt | 1.18.2-3 |
| debian 8 | libtomcrypt | 1.17-6+deb8u1 |
| debian 9 | libtomcrypt | no fix listed |
| echo | libtomcrypt | 1.18.2-3 |
| ubuntu 14.04-ESM | libtomcrypt | 1.17-5ubuntu0.1+esm1 |
| ubuntu 16.04-ESM | libtomcrypt | 1.17-7ubuntu0.1+esm1 |
| ubuntu 18.04-ESM | libtomcrypt | 1.18.1-1ubuntu0.1+esm1 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00020.html
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00041.html
- https://access.redhat.com/security/cve/CVE-2019-17362
- https://github.com/libtom/libtomcrypt/issues/507
- https://github.com/libtom/libtomcrypt/pull/508
- https://lists.debian.org/debian-lts-announce/2019/10/msg00010.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/47YP5SXQ4RY6KMTK2HI5ZZR244XKRMCZ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YU5OMCY3PX54YVI4FMNDEENHDJZJ3RJW/