-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                              ESB-2021.3119.2
                     USN-5079-2: curl vulnerabilities
                             22 September 2021

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           curl
Publisher:         Ubuntu
Operating System:  Ubuntu
                   UNIX variants (UNIX, Linux, OSX)
Impact/Access:     Execute Arbitrary Code/Commands -- Remote/Unauthenticated      
                   Denial of Service               -- Remote/Unauthenticated      
                   Reduced Security                -- Remote with User Interaction
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-22947 CVE-2021-22946 

Original Bulletin: 
   https://ubuntu.com/security/notices/USN-5079-1
   https://ubuntu.com/security/notices/USN-5079-2
   https://ubuntu.com/security/notices/USN-5079-3
   https://ubuntu.com/security/notices/USN-5079-4

Comment: This advisory references vulnerabilities in products which run on 
         platforms other than Ubuntu. It is recommended that administrators 
         running curl check for an updated version of the software for their
         operating system.
         
         This bulletin contains four (4) Ubuntu security advisories.

Revision History:  September 22 2021: Added USN-5079-3 and USN-5079-4 to advisory
                   September 16 2021: Initial Release

- --------------------------BEGIN INCLUDED TEXT--------------------

USN-5079-2: curl vulnerabilities
15 September 2021

Several security issues were fixed in curl.
Releases

  o Ubuntu 16.04 ESM
  o Ubuntu 14.04 ESM

Packages

  o curl - HTTP, HTTPS, and FTP client and client libraries

Details

USN-5079-1 fixed several vulnerabilities in curl. This update provides
the corresponding update for Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.

Original advisory details:

Patrick Monnerat discovered that curl incorrectly handled upgrades to TLS.
When receiving certain responses from servers, curl would continue without
TLS even when the option to require a successful upgrade to TLS was
specified. ( CVE-2021-22946 )

Patrick Monnerat discovered that curl incorrectly handled responses
received before STARTTLS. A remote attacker could possibly use this issue
to inject responses and intercept communications. ( CVE-2021-22947 )

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 16.04

  o libcurl3-gnutls - 7.47.0-1ubuntu2.19+esm1
    Available with UA Infra or UA Desktop
  o libcurl3-nss - 7.47.0-1ubuntu2.19+esm1
    Available with UA Infra or UA Desktop
  o libcurl3 - 7.47.0-1ubuntu2.19+esm1
    Available with UA Infra or UA Desktop
  o curl - 7.47.0-1ubuntu2.19+esm1
    Available with UA Infra or UA Desktop

Ubuntu 14.04

  o libcurl3-gnutls - 7.35.0-1ubuntu2.20+esm8
    Available with UA Infra or UA Desktop
  o libcurl3-nss - 7.35.0-1ubuntu2.20+esm8
    Available with UA Infra or UA Desktop
  o libcurl3 - 7.35.0-1ubuntu2.20+esm8
    Available with UA Infra or UA Desktop
  o curl - 7.35.0-1ubuntu2.20+esm8
    Available with UA Infra or UA Desktop

In general, a standard system update will make all the necessary changes.

References

  o CVE-2021-22946
  o CVE-2021-22947

Related notices

  o USN-5079-1 : libcurl4-openssl-dev, libcurl4, libcurl4-gnutls-dev,
    libcurl4-doc, curl, libcurl4-nss-dev, libcurl3-gnutls, libcurl3-nss

- -------------------------------------------------------------------------------------------------------------------


USN-5079-1: curl vulnerabilities
15 September 2021

Several security issues were fixed in curl.
Releases

  o Ubuntu 21.04
  o Ubuntu 20.04 LTS
  o Ubuntu 18.04 LTS

Packages

  o curl - HTTP, HTTPS, and FTP client and client libraries

Details

It was discovered that curl incorrect handled memory when sending data to
an MQTT server. A remote attacker could use this issue to cause curl to
crash, resulting in a denial of service, or possibly execute arbitrary
code. ( CVE-2021-22945 )

Patrick Monnerat discovered that curl incorrectly handled upgrades to TLS.
When receiving certain responses from servers, curl would continue without
TLS even when the option to require a successful upgrade to TLS was
specified. ( CVE-2021-22946 )

Patrick Monnerat discovered that curl incorrectly handled responses
received before STARTTLS. A remote attacker could possibly use this issue
to inject responses and intercept communications. ( CVE-2021-22947 )

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 21.04

  o libcurl3-gnutls - 7.74.0-1ubuntu2.3
  o libcurl3-nss - 7.74.0-1ubuntu2.3
  o libcurl4 - 7.74.0-1ubuntu2.3
  o curl - 7.74.0-1ubuntu2.3

Ubuntu 20.04

  o libcurl3-gnutls - 7.68.0-1ubuntu2.7
  o libcurl3-nss - 7.68.0-1ubuntu2.7
  o libcurl4 - 7.68.0-1ubuntu2.7
  o curl - 7.68.0-1ubuntu2.7

Ubuntu 18.04

  o libcurl3-gnutls - 7.58.0-2ubuntu3.15
  o libcurl3-nss - 7.58.0-2ubuntu3.15
  o libcurl4 - 7.58.0-2ubuntu3.15
  o curl - 7.58.0-2ubuntu3.15

In general, a standard system update will make all the necessary changes.

References

  o CVE-2021-22947
  o CVE-2021-22945
  o CVE-2021-22946

Related notices

  o USN-5079-2 : libcurl4-gnutls-dev, libcurl3, libcurl4-doc,
    libcurl4-openssl-dev, libcurl3-gnutls, curl, libcurl3-nss, libcurl4-nss-dev

- --------------------------------------------------------------------------------

USN-5079-3: curl vulnerabilities
21 September 2021

USN-5079-1 introduced a regression in curl.
Releases

  o Ubuntu 18.04 LTS

Packages

  o curl - HTTP, HTTPS, and FTP client and client libraries

Details

USN-5079-1 fixed vulnerabilities in curl. One of the fixes introduced a
regression on Ubuntu 18.04 LTS. This update fixes the problem.

We apologize for the inconvenience.

Original advisory details:

It was discovered that curl incorrect handled memory when sending data to
an MQTT server. A remote attacker could use this issue to cause curl to
crash, resulting in a denial of service, or possibly execute arbitrary
code. ( CVE-2021-22945 )

Patrick Monnerat discovered that curl incorrectly handled upgrades to TLS.
When receiving certain responses from servers, curl would continue without
TLS even when the option to require a successful upgrade to TLS was
specified. ( CVE-2021-22946 )

Patrick Monnerat discovered that curl incorrectly handled responses
received before STARTTLS. A remote attacker could possibly use this issue
to inject responses and intercept communications. ( CVE-2021-22947 )

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 18.04

  o libcurl3-gnutls - 7.58.0-2ubuntu3.16
  o libcurl3-nss - 7.58.0-2ubuntu3.16
  o libcurl4 - 7.58.0-2ubuntu3.16
  o curl - 7.58.0-2ubuntu3.16

In general, a standard system update will make all the necessary changes.

References

  o https://launchpad.net/bugs/1944120

- --------------------------------------------------------------------------------

USN-5079-4: curl regression
21 September 2021

USN-5079-2 introduced a regression in curl.
Releases

  o Ubuntu 16.04 ESM
  o Ubuntu 14.04 ESM

Packages

  o curl - HTTP, HTTPS, and FTP client and client libraries

Details

USN-5079-2 fixed vulnerabilities in curl. One of the fixes introduced a
regression. This update fixes the problem.

Original advisory details:

Patrick Monnerat discovered that curl incorrectly handled upgrades to TLS.
When receiving certain responses from servers, curl would continue without
TLS even when the option to require a successful upgrade to TLS was
specified. ( CVE-2021-22946 )

Patrick Monnerat discovered that curl incorrectly handled responses
received before STARTTLS. A remote attacker could possibly use this issue
to inject responses and intercept communications. ( CVE-2021-22947 )

Update instructions

The problem can be corrected by updating your system to the following package
versions:

Ubuntu 16.04

  o libcurl3-gnutls - 7.47.0-1ubuntu2.19+esm2
    Available with UA Infra or UA Desktop
  o libcurl3-nss - 7.47.0-1ubuntu2.19+esm2
    Available with UA Infra or UA Desktop
  o libcurl3 - 7.47.0-1ubuntu2.19+esm2
    Available with UA Infra or UA Desktop
  o curl - 7.47.0-1ubuntu2.19+esm2
    Available with UA Infra or UA Desktop

Ubuntu 14.04

  o libcurl3-gnutls - 7.35.0-1ubuntu2.20+esm9
    Available with UA Infra or UA Desktop
  o libcurl3-nss - 7.35.0-1ubuntu2.20+esm9
    Available with UA Infra or UA Desktop
  o libcurl3 - 7.35.0-1ubuntu2.20+esm9
    Available with UA Infra or UA Desktop
  o curl - 7.35.0-1ubuntu2.20+esm9
    Available with UA Infra or UA Desktop

In general, a standard system update will make all the necessary changes.

References

  o https://launchpad.net/bugs/1944120

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBYUpoU+NLKJtyKPYoAQhROA//QyJ0+FYnYT1ziB+u8yfdViNQbA8ucxtd
JhpH3pZzuVPowJ7wQ1kdMPWkjjgYH90YYTJ9SmMEKcwXsen1M7IGQ7af84KfULM9
xpsC/ZpG5jfQzJT342AZsBQdOl7yKSgtqzhse25VOXRGVI9GIYKLY1iNRe2Nz73Z
OWIiuc3hN87ZVXq2u9fl4ijfs6KumjZumdNKM06ZdKKSuUOB0Yt1n6wJPrVMUV5l
HG6BL0blHER8+ACz3Xr+XQX8YJPv0PutwkpvoXP/UwsW2qQtY5jqE504uJo4hoLA
VYh6ZKC2u14jj2ZwqOynOFwrbRkmDhmNilmU6MgxQdOMSVv9VmR+dTSANFbL+liN
hGn56MKWgfcDq/oQ4XMc54/5z3PR59RvrapvQ4aNrZloKGaGrZnbzC4zTJPXSSgH
WN5vfCWBuY3wx+b61G+bdURVHDbZAtfW5zUa9VcxIOsTksUQUK4tEBSlahqiX8D1
eyDiNfUKUKGo59xXs526SHt2kEed/jlVqDs4gM22bv9VlprjH03bhk2W0+yLBwF5
RV3y+bj4KcQIOZaO08ec67/PEMIP96+Cr5WMQpDEzOEXdBJAshlej+mqq0GgYfky
oI0196DGDw2DCvSWxkTZ2/JZqDCTldrgoEEjNKBgNVjk/+CvGP/4KTfp14PmTWjX
g3jH/LH8n8g=
=PpX1
-----END PGP SIGNATURE-----