CVE-2011-2899 Command injection in n/a

Medium 5.1 Published Updated

Remote SMB servers can execute arbitrary commands on systems using system-config-printer via shell metacharacters in NetBIOS or workgroup names.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2011-2899?

CVE-2011-2899 is a medium-severity command injection vulnerability in n/a, published on 31 Aug 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

pysmb.py in system-config-printer 0.6.x and 0.7.x, as used in foomatic-gui and possibly other products, allows remote SMB servers to execute arbitrary commands via shell metacharacters in the (1) NetBIOS or (2) workgroup name, which are not properly handled when searching for network printers.

Weakness: CWE-20

Which versions are affected by CVE-2011-2899?

It affects 1 product.

Linux distribution packages (18)
system-config-printer Red Hat:enterprise_linux:4::asAll versions0:0.6.116.10-1.6.el4
system-config-printer-debuginfo Red Hat:enterprise_linux:4::asAll versions0:0.6.116.10-1.6.el4
system-config-printer-gui Red Hat:enterprise_linux:4::asAll versions0:0.6.116.10-1.6.el4
system-config-printer Red Hat:enterprise_linux:4::desktopAll versions0:0.6.116.10-1.6.el4
system-config-printer-debuginfo Red Hat:enterprise_linux:4::desktopAll versions0:0.6.116.10-1.6.el4
system-config-printer-gui Red Hat:enterprise_linux:4::desktopAll versions0:0.6.116.10-1.6.el4
system-config-printer Red Hat:enterprise_linux:4::esAll versions0:0.6.116.10-1.6.el4
system-config-printer-debuginfo Red Hat:enterprise_linux:4::esAll versions0:0.6.116.10-1.6.el4
system-config-printer-gui Red Hat:enterprise_linux:4::esAll versions0:0.6.116.10-1.6.el4
system-config-printer Red Hat:enterprise_linux:4::wsAll versions0:0.6.116.10-1.6.el4
system-config-printer-debuginfo Red Hat:enterprise_linux:4::wsAll versions0:0.6.116.10-1.6.el4
system-config-printer-gui Red Hat:enterprise_linux:4::wsAll versions0:0.6.116.10-1.6.el4
system-config-printer Red Hat:enterprise_linux:5::clientAll versions0:0.7.32.10-1.el5_7.1
system-config-printer-debuginfo Red Hat:enterprise_linux:5::clientAll versions0:0.7.32.10-1.el5_7.1
system-config-printer-libs Red Hat:enterprise_linux:5::clientAll versions0:0.7.32.10-1.el5_7.1
system-config-printer Red Hat:enterprise_linux:5::serverAll versions0:0.7.32.10-1.el5_7.1
system-config-printer-debuginfo Red Hat:enterprise_linux:5::serverAll versions0:0.7.32.10-1.el5_7.1
system-config-printer-libs Red Hat:enterprise_linux:5::serverAll versions0:0.7.32.10-1.el5_7.1

Products include Redhat System-Config-Printer.

How do I fix CVE-2011-2899?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2011-2899 being exploited?

There is no known exploitation of CVE-2011-2899 in the wild and no public exploit code.

Sources

Also known as GHSA-hrxj-q3gx-5g5q, RHSA-2011:1196.

Is CVE-2011-2899 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free