Code injection in Unbound - CVE-2019-25031

 

Code injection in Unbound - CVE-2019-25031

Published: May 10, 2021


Vulnerability identifier: #VU53023
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-25031
CWE-ID: CWE-74
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to improper input validation within the contrib/create_unbound_ad_servers.sh script, when retrieving data before writing them into a configuration file. A remote non-authenticated attacker with ability to perform MitM attack can intercept and change Unbound configuration, as the input is retrieved via unencrypted HTTP channel.


Affected software

Unbound
cflinuxfs3
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Basesystem
Ubuntu
unbound (Ubuntu package)
libunbound2 (Ubuntu package)
unbound-debuginfo
unbound-anchor-debuginfo
unbound-anchor
libunbound2-debuginfo
libunbound2
unbound-debugsource
unbound-devel
libunbound8 (Ubuntu package)

How to mitigate CVE-2019-25031

Install updates from vendor's website.

Unbound - update to 1.9.5
cflinuxfs3 - update to 0.237.0
unbound (Ubuntu package) - addressed in versions 1.6.7-1ubuntu2.4, 1.9.4-2ubuntu1.2
libunbound2 (Ubuntu package) - update to 1.6.7-1ubuntu2.4
unbound-debuginfo - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-anchor-debuginfo - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-anchor - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
libunbound2-debuginfo - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
libunbound2 - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-debugsource - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
unbound-devel - addressed in versions 1.6.8-3.9.1, 1.6.8-10.6.1
libunbound8 (Ubuntu package) - update to 1.9.4-2ubuntu1.2

External References

Related Security Bulletins