CVE-2019-1543: ChaCha20-Poly1305 with long nonces

Published Mar 6, 2019
·
Updated

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).

Other sources

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-dev (Affected 1.1.1-1.1.1b). Fixed in OpenSSL 1.1.0k-dev (Affected 1.1.0-1.1.0j).

Upstream patch:

https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=ee22257b1418438ebaf54df98af4e24f494d1809 https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=f426625b6ae9a7831010750490a5f0ad689c5ba3

References:

https://www.openssl.org/news/secadv/20190306.txt

Red Hat

Affected Software

5 affected componentsFixes available
debian/openssl
1.1.1n-0+deb10u31.1.1n-0+deb10u61.1.1w-0+deb11u11.1.1n-0+deb11u53.0.11-1~deb12u13.0.11-1
redhat/openssl<1.1.1
1.1.1
redhat/openssl<1.1.0
1.1.0
OpenSSL OpenSSL>=1.1.0<=1.1.0j
OpenSSL OpenSSL>=1.1.1<=1.1.1b

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1n-0+deb10u3Fixed in 1.1.1n-0+deb10u6Fixed in 1.1.1w-0+deb11u1Fixed in 1.1.1n-0+deb11u5Fixed in 3.0.11-1~deb12u1Fixed in 3.0.11-1
  2. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.1
  3. Upgrade

    Upgrade redhat/openssl to a version that resolves this vulnerability.

    Fixed in 1.1.0
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.1.0k
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.1.1c
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.1.0k-dev
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.1.1c-dev
  8. Configuration

    Ensure that applications using OpenSSL directly configure ChaCha20-Poly1305 to use the RFC 7539 nonce length of 96 bits (12 bytes) and avoid setting a nonce length longer than 12 bytes (which can lead to ignored leading bytes and inadvertent nonce reuse).

    OpenSSL ChaCha20-Poly1305 nonce length = set to 12 bytes (96 bits) / do not use a non-default nonce length longer than 12 bytes
  9. Compensating control

    If you must use ChaCha20-Poly1305 with a nonce length longer than 12 bytes, treat only the last 12 bytes as significant (front-padded 0 bytes/ignored leading bytes) and ensure uniqueness of those last 12 bytes for every encryption operation.

Event History

Mar 6, 2019
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionWeakness
Apr 3, 2019
Data Sourced
via Red Hat·11:39 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2019-1543?

CVE-2019-1543 is a vulnerability in OpenSSL that allows a variable nonce length and front pads the nonce with 0 bytes if it is less than 12 bytes.

2

How does CVE-2019-1543 affect OpenSSL?

CVE-2019-1543 affects OpenSSL versions up to and excluding 1.1.1.

3

What is the severity of CVE-2019-1543?

CVE-2019-1543 has a severity score of 7.4 (high).

4

How can I fix CVE-2019-1543?

To fix CVE-2019-1543, update OpenSSL to version 1.1.1 or later.

5

Where can I find more information about CVE-2019-1543?

You can find more information about CVE-2019-1543 in the references provided: [Link 1](https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=ee22257b1418438ebaf54df98af4e24f494d1809), [Link 2](https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=f426625b6ae9a7831010750490a5f0ad689c5ba3), [Link 3](https://www.openssl.org/news/secadv/20190306.txt).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203