Gentoo Logo

NUT: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201209-19 / nut
Release Date September 27, 2012
Latest Revision September 27, 2012: 1
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
sys-power/nut < 2.6.3 >= 2.6.3 All supported architectures

Related bugreports: #419377


A buffer overflow in NUT might allow remote attackers to execute arbitrary code.

2.  Impact Information


The Network UPS Tools (NUT) provide support for power devices.


An error in the addchar() function in parseconf.c may cause a buffer overflow.


A remote attacker could send a specially crafted string to upsd, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.

3.  Resolution Information


There is no known workaround at this time.


All NUT users should upgrade to the latest version:

Code Listing 3.1: Resolution

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=sys-power/nut-2.6.3"

4.  References


Page updated September 27, 2012

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.