CVE-2011-2899 Command injection in n/a
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::as | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-debuginfo Red Hat:enterprise_linux:4::as | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-gui Red Hat:enterprise_linux:4::as | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer Red Hat:enterprise_linux:4::desktop | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-debuginfo Red Hat:enterprise_linux:4::desktop | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-gui Red Hat:enterprise_linux:4::desktop | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer Red Hat:enterprise_linux:4::es | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-debuginfo Red Hat:enterprise_linux:4::es | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-gui Red Hat:enterprise_linux:4::es | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer Red Hat:enterprise_linux:4::ws | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-debuginfo Red Hat:enterprise_linux:4::ws | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer-gui Red Hat:enterprise_linux:4::ws | All versions | 0:0.6.116.10-1.6.el4 |
system-config-printer Red Hat:enterprise_linux:5::client | All versions | 0:0.7.32.10-1.el5_7.1 |
system-config-printer-debuginfo Red Hat:enterprise_linux:5::client | All versions | 0:0.7.32.10-1.el5_7.1 |
system-config-printer-libs Red Hat:enterprise_linux:5::client | All versions | 0:0.7.32.10-1.el5_7.1 |
system-config-printer Red Hat:enterprise_linux:5::server | All versions | 0:0.7.32.10-1.el5_7.1 |
system-config-printer-debuginfo Red Hat:enterprise_linux:5::server | All versions | 0:0.7.32.10-1.el5_7.1 |
system-config-printer-libs Red Hat:enterprise_linux:5::server | All versions | 0: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.