CVE-2011-0997: Input Validation

Published Mar 22, 2011
·
Updated

dhclient in ISC DHCP 3.0.x through 4.2.x before 4.2.1-P1, 3.1-ESV before 3.1-ESV-R1, and 4.1-ESV before 4.1-ESV-R2 allows remote attackers to execute arbitrary commands via shell metacharacters in a hostname obtained from a DHCP message, as demonstrated by a hostname that is provided to dhclient-script.

Other sources

Sebastian Krahmer of the SUSE security team noticed that DHCP clients fail to sanitize certain values supplied by DHCP servers during the DHCP communication. The example of such value is hostname configured on the DHCP client. Various scripts assume hostname is trusted and do not sufficiently escape or quote it. Malicious DHCP server can use this to execute arbitrary code on the DHCP client by supplying a specially-crafted hostname.

Acknowledgement:

Red Hat would like to thank Sebastian Krahmer of the SuSE Security Team for reporting this issue.

Red Hat

Affected Software

67 affected components
ISC DHCP=3.0.4-b2
ISC DHCP=3.1.0-b1
ISC DHCP=3.1.0-a3
ISC DHCP=3.0.6-rc1
ISC DHCP=3.1.2-rc1
ISC DHCP=3.1.0-rc1
ISC DHCP=3.0.4-b1
ISC DHCP=3.1.0-a1
ISC DHCP=3.0.1-rc12
ISC DHCP=3.0
ISC DHCP=3.0.2-b1
ISC DHCP=3.0.3-b1
ISC DHCP=3.0.1-rc1
ISC DHCP=3.0.4-b3
ISC DHCP=3.0.2-rc1
ISC DHCP=3.0.1-rc7
ISC DHCP=3.1-esv
ISC DHCP=3.0.2-rc3
ISC DHCP=3.0.1-rc2
ISC DHCP=3.1.3-b1
ISC DHCP=3.0.1-rc14
ISC DHCP=3.0.1-rc6
ISC DHCP=3.0.2-rc2
ISC DHCP=3.0.1-rc13
ISC DHCP=3.0.1-rc9
ISC DHCP=3.0.3-b3
ISC DHCP=3.1.1-rc1
ISC DHCP=3.1.0-a2
ISC DHCP=3.0.1-rc8
ISC DHCP=3.0.3-b2
ISC DHCP=3.1.2-b1
ISC DHCP=3.1.3-rc1
ISC DHCP=3.0.1-rc10
ISC DHCP=3.0.5-rc1
ISC DHCP=3.0.1-rc11
ISC DHCP=3.1.1-rc2
ISC DHCP=3.0.4-rc1
ISC DHCP=3.1.0-b2
ISC DHCP=3.0.1-rc5
ISC DHCP=3.0.1
ISC DHCP=3.0.2
ISC DHCP=3.0.4
ISC DHCP=3.0.5
ISC DHCP=3.1.0
ISC DHCP=3.1.2
ISC DHCP=3.1.3
ISC DHCP=3.0.3
ISC DHCP=4.2.0-b2
ISC DHCP=4.2.0-a2
ISC DHCP=4.2.0-b1
ISC DHCP=4.2.1-rc1
ISC DHCP=4.2.0-a1
ISC DHCP=4.1-esv-rc1
ISC DHCP=4.2.1-b1
ISC DHCP=4.2.0-rc1
ISC DHCP=4.2.0-p1
ISC DHCP=4.1-esv
ISC DHCP=4.2.0
ISC DHCP=4.2.1
Debian Debian Linux=5.0
Debian Debian Linux=7.0
Debian Debian Linux=6.0
Canonical Ubuntu Linux=10.10
Canonical Ubuntu Linux=6.06
Canonical Ubuntu Linux=8.04
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=9.10

Event History

Mar 22, 2011
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Apr 8, 2011
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-0997?

CVE-2011-0997 has a severity rating of high due to its potential to allow remote code execution.

2

How do I fix CVE-2011-0997?

To fix CVE-2011-0997, upgrade to ISC DHCP version 4.2.1-P1 or later, or to versions 3.1-ESV-R1 and 4.1-ESV-R2.

3

Which versions of ISC DHCP are affected by CVE-2011-0997?

CVE-2011-0997 affects ISC DHCP versions 3.0.x through 4.2.x before 4.2.1-P1, as well as 3.1-ESV before 3.1-ESV-R1.

4

What are the potential risks associated with CVE-2011-0997?

The risk associated with CVE-2011-0997 includes the possibility of remote attackers executing arbitrary commands on the affected system.

5

Is there a workaround for CVE-2011-0997?

While upgrading is the best option, disabling DHCP or filtering DHCP requests can serve as a temporary workaround for CVE-2011-0997.

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