On this page (7 sections)

Ubuntu has published security notice USN-9062-1 for SNMPTT, a tool that handles SNMP traps. According to the Ubuntu notice, SNMPTT did not properly sanitize trap data passed to commands run through certain options, which could let a remote attacker execute arbitrary shell commands.

If you run network monitoring on Ubuntu and SNMPTT is part of it, this is worth a quick check. The notice is short, so this article separates what is confirmed from what the source does not say.

What happened

The notice describes one issue. SNMPTT can be configured to run external commands when a trap arrives, using the EXEC, PREEXEC and unknown_trap_exec options. Ubuntu says the trap data handed to those commands was not properly sanitized. The wording is cautious: an attacker "could possibly" run shell commands.

The research for this story contains only the Ubuntu notice. It gives no CVE identifier, no CVSS score, no list of affected or fixed package versions, and it does not state whether the issue is being exploited. We are not guessing at any of those. Check the full notice for the release-by-release package versions before you update.

Why this class of bug matters

This is a command injection weakness. A program takes text from an outside source, here the contents of an SNMP trap, and places it into a command line that a shell interprets. If characters with special meaning to the shell are not neutralized, data can turn into instructions.

SNMP traps are messages sent by network devices to a collector. Whoever can get a crafted trap delivered to your SNMPTT host may be able to influence what those configured commands receive. How easily that can be done depends on your network setup, SNMP version and community or credential settings, and the notice does not go into those details.

Who is realistically exposed

  • Hosts running SNMPTT where at least one of EXEC, PREEXEC or unknown_trap_exec is used in the configuration. The notice describes the problem in terms of those options.
  • Trap receivers reachable from untrusted or loosely controlled network segments.
  • Setups where SNMPTT runs with elevated privileges, since injected commands would run with the same rights as the service. This is a general consideration, not a detail from the notice.

Web servers are not directly implicated, but many sites rely on a monitoring server in the same environment. A compromised monitoring host is a useful foothold for further attacks, so it deserves the same attention as a public-facing system.

How to check your exposure

First, see whether SNMPTT is installed and which version you have. This read-only command lists the package on Debian and Ubuntu; a result line means it is installed.

Check whether the snmptt package is installed (Debian/Ubuntu)Shell
dpkg -l snmptt

Next, find where your SNMPTT configuration lives. The location depends on how it was installed, so we do not assume a path here. Once you have found your configuration files, this read-only search lists lines that mention the three option names. Replace the placeholder with your own path. Matches may include comments or example entries, so open each file and confirm which lines are active.

Search SNMPTT configuration for the three option names (replace the placeholder path)Shell
grep -rnE 'EXEC|PREEXEC|unknown_trap_exec' /path/to/your/snmptt/config

Review each active handler and note what command it runs and which trap fields it passes in.

What to do now

  1. Read USN-9062-1 and find the fixed SNMPTT package version for your Ubuntu release.
  2. Update the package with your normal package manager and confirm the new version afterwards.
  3. Restart the SNMPTT service or daemon after updating so the new code is running.
  4. Audit every EXEC, PREEXEC and unknown_trap_exec entry. Remove any you do not need.
  5. Restrict who can send traps to the host using firewall rules, allowing only known device addresses.
  6. Run the service under a low-privilege account where possible.
  7. Check logs and the monitoring host for unexpected commands, new users or outbound connections.

On Ubuntu, this updates only the SNMPTT package, assuming your package lists are current.

Update only the snmptt package (Debian/Ubuntu)Shell
sudo apt-get update && sudo apt-get install --only-upgrade snmptt
Caution. Restarting SNMPTT briefly interrupts trap processing, so traps arriving during the restart may be missed. Schedule it in a quiet period and confirm your devices resend or that a short gap is acceptable.
Tip. Even after patching, keep command handlers simple. Pass only the fields you need, avoid building shell command lines from trap text, and prefer a fixed script that validates its inputs.

Detection and monitoring

Because the research does not state whether this issue is being exploited, treat exploitation status as unconfirmed and look for signs yourself. Watch for traps from unfamiliar source addresses, handler scripts that start unexpected child processes, and changes to SNMPTT configuration files. Keep an eye on the monitoring host's outbound traffic, which should be predictable.

For the public side of your estate, regular outside checks help catch changes you did not make. Webforta Monitor can watch uptime, certificates, DNS and headers, and our guide on checking if a website is hacked covers what to look for if you suspect a compromise.

What we do not know yet

  • No CVE identifier or CVSS score is given in the source we reviewed.
  • The research does not state whether the issue is exploited in the wild, so exploitation status is unconfirmed.
  • Only one publisher, Ubuntu, covers this so far, so there is no independent confirmation or additional technical analysis.
  • Other Linux distributions may ship SNMPTT, but this story does not say whether they are affected.

We will treat the Ubuntu notice as the authority for fixed versions. If more details appear, check back against the notice itself.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. USN-9062-1: SNMPTT vulnerabilityubuntu.com ·
  • Ubuntu
  • SNMPTT
  • USN
  • command injection
  • monitoring