CVE-2019-1543 ChaCha20-Poly1305 with long nonces
- Published
- Updated
- Exploit status
- No public exploit known
Description
ChaCha20-Poly1305 is an AEAD cipher, and requires a unique nonce input for every encryption operation. RFC 7539 specifies that the nonce value (IV) should be 96 bits (12 bytes). OpenSSL allows a variable nonce length and front pads the nonce with 0 bytes if it is less than 12 bytes. However it also incorrectly allows a nonce to be set of up to 16 bytes. In this case only the last 12 bytes are significant and any additional leading bytes are ignored. It is a requirement of using this cipher that nonce values are unique. Messages encrypted using a reused nonce value are susceptible to serious confidentiality and integrity attacks. If an application changes the default nonce length to be longer than 12 bytes and then makes a change to the leading bytes of the nonce expecting the new value to be a new unique nonce then such an application could inadvertently encrypt messages with a reused nonce. Additionally the ignored bytes in a long nonce are not covered by the integrity guarantee of this cipher. Any application that relies on the integrity of these ignored leading bytes of a long nonce may be further affected. Any OpenSSL internal use of this cipher, including in SSL/TLS, is safe because no such use sets such a long nonce value. However user applications that use this cipher directly and set a non-default nonce length to be longer than 12 bytes may be vulnerable. OpenSSL versions 1.1.1 and 1.1.0 are affected by this issue. Due to the limited scope of affected deployments this has been assessed as low severity and therefore we are not creating new releases at this time. Fixed in OpenSSL 1.1.1c (Affected 1.1.1-1.1.1b). Fixed in OpenSSL 1.1.0k (Affected 1.1.0-1.1.0j).
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/openssl(Debian:12) | < 1.1.1c-1 | 1.1.1c-1 |
| debian/openssl(Debian:13) | < 1.1.1c-1 | 1.1.1c-1 |
| debian/openssl(Debian:14) | < 1.1.1c-1 | 1.1.1c-1 |
| OpenSSL | = Fixed in OpenSSL 1.1.1c (Affected 1.1.1-1.1.1b) | No fix listed |
| OpenSSL | = Fixed in OpenSSL 1.1.0k (Affected 1.1.0-1.1.0j) | No fix listed |
| OpenSSL | >= 1.1.0, <= 1.1.0j | No fix listed |
| OpenSSL | >= 1.1.1, <= 1.1.1b | No fix listed |
| alpine/file(Alpine:v3.10) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.11) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.12) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.13) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.14) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.15) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.16) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.17) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.18) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.19) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.20) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.21) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.22) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.23) | < 5.36-r0 | 5.36-r0 |
| alpine/file(Alpine:v3.24) | < 5.36-r0 | 5.36-r0 |
| alpine/openssl(Alpine:v3.10) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.11) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.12) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
Show 28 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/openssl(Alpine:v3.13) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.14) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.15) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.16) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.17) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.18) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.19) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.20) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.21) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.22) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.23) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.24) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl(Alpine:v3.9) | >= 1.1.1, < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl1.1-compat(Alpine:v3.17) | < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl1.1-compat(Alpine:v3.18) | < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl3(Alpine:v3.15) | < 1.1.1b-r1 | 1.1.1b-r1 |
| alpine/openssl3(Alpine:v3.16) | < 1.1.1b-r1 | 1.1.1b-r1 |
| ubuntu/openssl(Ubuntu:18.04) | < 1.1.1-1ubuntu2.1~18.04.2 | 1.1.1-1ubuntu2.1~18.04.2 |
| ubuntu/openssl(Ubuntu:18.04) | = 1.0.2g-1ubuntu13 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.0.2g-1ubuntu14 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.0.2n-1ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu2 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu3 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu4 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu4.1 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.0g-2ubuntu4.3 | No fix listed |
| ubuntu/openssl(Ubuntu:18.04) | = 1.1.1-1ubuntu2.1~18.04.1 | No fix listed |
References
- Debian Security Tracker CVE-2019-1543 vendor-advisory
- security.alpinelinux.org vendor-advisory
- git.openssl.org
- www.openssl.org issue-tracking vendor-advisory
- git.openssl.org
- 20190701 [SECURITY] [DSA 4475-1] openssl security update mailing-list
- DSA-4475 vendor-advisory
- www.oracle.com
- openSUSE-SU-2019:1814 vendor-advisory
- FEDORA-2019-00c25b9379 vendor-advisory
- FEDORA-2019-9a0a7c0986 vendor-advisory
- www.oracle.com
- RHSA-2019:3700 vendor-advisory
- www.oracle.com
- kc.mcafee.com
- OpenSSL 1.1.1 Series Release Notes vendor-advisory
- Release and Advisory Timeline vendor-advisory
- Security advisory list (json) vendor-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking