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

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

                               ESB-2019.4438
            Unbound: RCE vulnerability patched in IPSEC module
                             25 November 2019

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

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

Product:           Unbound
Publisher:         NLNet Labs
Operating System:  UNIX variants (UNIX, Linux, OSX)
                   Windows
Impact/Access:     Execute Arbitrary Code/Commands -- Remote with User Interaction
Resolution:        Patch/Upgrade
CVE Names:         CVE-2019-18934  

Original Bulletin: 
   https://nlnetlabs.nl/projects/unbound/security-advisories/#vulnerability-in-ipsec-module

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

Vulnerability in IPSEC module

    Date:     2019-11-19
    CVE:      CVE-2019-18934
   Credit:    X41 D-Sec
  Affects:    Unbound 1.6.4 up to and including version 1.9.4
Not affected: Other versions
  Severity:   Critical
   Impact:    Shell code execution after a specially crafted answer
  Solution:   Download patched version of Unbound, or apply the patch manually

Due to unsanitized characters passed to the ipsecmod-hook shell command, it is
possible for Unbound to allow shell code execution from a specially crafted
IPSECKEY answer.

This issue can only be triggered when all of the below conditions are met:

  * unbound was compiled with --enable-ipsecmod support, and
  * ipsecmod is enabled and used in the configuration (either in the
    configuration file or using unbound-control), and
  * a domain is part of the ipsecmod-whitelist (if ipsecmod-whitelist is used),
    and
  * unbound receives an A/AAAA query for a domain that has an A/AAAA record(s)
    and an IPSECKEY record(s) available.

The shell code execution can then happen if either the qname or the gateway
field of the IPSECKEY (when gateway type == 3) contain a specially crafted
domain name.

Unbound 1.9.5 contains a patch. If you cannot upgrade you can also apply the
patch manually. To do this, apply the patch on Unbound source directory with
patch -p1 < filename, then run make install to install Unbound.

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

iQIVAwUBXdspVWaOgq3Tt24GAQjpAA//bXVZFYU3U+8LH+kaziJIGnr3TIqTuQSZ
RPjVT/nhzreGPCOtfSjwoqOn64t2xEnHJgGv9E9wQUQlK9f133QCfvbulkgSnDxO
pbLsBULiJUG5XjLj/eIfUwkhaM/02j2gVeSr/A9jIXMS6Fx7eLdMQGPasm9Wt2WO
q437gJsBvFka8XbPMvycrDoNXfBiBV7RPRoR1L4iPf7Q0F5SnWkn//JJ9Qc8Sy8q
VZQ68B+9yAgCwBWzKjuY+1PLIpFs+XcPKfDokF73/1Kv51CvtH5/yElyxxF8Hu7A
ZQooJ2iD/A0OfNszv+V2m6zqdz/GULII9Zoq8Gggpm301NrAULOGq/5EsaaTnMB9
ocBRSPaz/gUc9SoIQrd7O4wPiKLGbpxUvEA/usdk6gA3hwYyiNMexSsGp6yBIt2/
sNry2Vrj/fIhS90oedq/wMS1VawTXD9RwMy23S/Fn7LCPq4N1IApF2Jy3j3uRn6x
Lz1ClDy4+HF1y8vCsJnu2aQmwfOIe8hT0FoAN1BcwrLKde9osT4prGvy1LTgfJ63
9hmSMvh+wowuUbHi3/ZHVIiudcFgj7nPacXfjvP4VVEc7h3TO0xRy2VOGTmc+w1y
I45iJ1KBaOYXZnJ7CswWr5yRBRw6cSsXhg7eZjLLiSMXCm4D3CS7nyYNmHpSg/9o
+lzf514Xoyk=
=vpjl
-----END PGP SIGNATURE-----