Outdated Software and Version Evidence
Most network intrusions don't use new tricks. They use published vulnerabilities in software that had a fix available for months: VPN appliances, mail servers, file-transfer products, web frameworks, the SSH daemon on a forgotten box. Outdated software is the fourth common weakness, and the assessor's difficulty with it is not finding version numbers (scanners print plenty) but deciding which version evidence is reliable. A banner can be wrong in both directions: it can claim an old version on a fully patched system, and a new-looking appliance can run an ancient library inside.
Kinds of version evidence
| Evidence | Example | Reliability |
|---|---|---|
| Banner or header | OpenSSH 8.2p1 Ubuntu 4ubuntu0.5, Server: nginx/1.18.0 |
low to medium: editable, and distributions backport fixes without changing the upstream number |
| Protocol fingerprint | -sV matching behaviour, TLS library quirks |
medium |
| Distribution package version | openssh-server 1:9.6p1-3ubuntu13.5 from dpkg -l |
high: maps directly to the distribution's security advisories |
| Vendor build / firmware version | appliance "About" page, show version |
high, if the vendor publishes advisories per build |
| End-of-life status | PostgreSQL 12, Ubuntu 20.04 standard support | high and simple: no more fixes, whatever the version |
The distribution detail in a banner (Ubuntu 4ubuntu0.5) tells you more than the upstream number, because it identifies the package build. The upstream part (8.2p1) alone can't tell a vulnerable build from one with the backported fix.
Checking versions in code
The program takes the version strings from the lab inventory scan (Nmap Inventories), compares them with two kinds of reference data an assessor maintains (synthetic here, see the note below), and keeps the evidence level with every result.
import re
from datetime import date
TODAY = date(2026, 2, 3) # the assessment date
observed = [
("fw.lab.test", 22, "OpenSSH 9.6p1 Ubuntu 3ubuntu13.14"),
("db.lab.test", 22, "OpenSSH 8.2p1 Ubuntu 4ubuntu0.5"),
("db.lab.test", 5432, "PostgreSQL DB 12.0 - 12.9"),
("files.lab.test", 445, "Samba smbd 4.6.2"),
("www.lab.test", 443, "nginx 1.24.0 (Ubuntu)"),
("10.10.0.77", 80, "lighttpd 1.4.69"),
]
# End-of-life dates (product line -> last day of security support). Check vendors' pages before reporting.
EOL = {("PostgreSQL", "12"): date(2024, 11, 21), ("Ubuntu", "20.04"): date(2025, 5, 31)}
UBUNTU_SSH = {"4ubuntu0": "20.04", "3ubuntu13": "24.04"}
# Minimum fixed versions from the assessor's advisory notes (illustrative values for this lab).
MIN_FIXED = {"Samba smbd": (4, 21, 0), "lighttpd": (1, 4, 76)}
def vtuple(s):
return tuple(int(x) for x in re.findall(r"\d+", s)[:3])
for host, port, banner in observed:
verdict, evidence = "no finding from the banner", "banner"
m = re.match(r"OpenSSH (\S+) Ubuntu (\d+ubuntu\d+)", banner)
if m:
release = UBUNTU_SSH.get(m.group(2))
eol = EOL.get(("Ubuntu", release))
if eol and TODAY > eol:
verdict = f"OS is Ubuntu {release}: standard support ended {eol}"
else:
verdict = f"Ubuntu {release} package build: confirm the exact package version"
evidence = "banner (distribution build)"
elif banner.startswith("PostgreSQL"):
major = re.search(r"\b(\d+)\.", banner).group(1)
verdict = f"PostgreSQL {major} end of life since {EOL[('PostgreSQL', major)]}"
evidence = "fingerprint (version range)"
else:
for product, fixed in MIN_FIXED.items():
if banner.startswith(product) and vtuple(banner) < fixed:
verdict = f"older than {'.'.join(map(str, fixed))}: check advisories"
print(f"{host:15} {port:>5} {banner:34} {verdict} [{evidence}]")fw.lab.test 22 OpenSSH 9.6p1 Ubuntu 3ubuntu13.14 Ubuntu 24.04 package build: confirm the exact package version [banner (distribution build)]
db.lab.test 22 OpenSSH 8.2p1 Ubuntu 4ubuntu0.5 OS is Ubuntu 20.04: standard support ended 2025-05-31 [banner (distribution build)]
db.lab.test 5432 PostgreSQL DB 12.0 - 12.9 PostgreSQL 12 end of life since 2024-11-21 [fingerprint (version range)]
files.lab.test 445 Samba smbd 4.6.2 older than 4.21.0: check advisories [banner]
www.lab.test 443 nginx 1.24.0 (Ubuntu) no finding from the banner [banner]
10.10.0.77 80 lighttpd 1.4.69 older than 1.4.76: check advisories [banner]
Note how differently the results should be read:
- PostgreSQL 12 is end-of-life: no version within it is fixed for anything published after November 2024. That finding stands without knowing the minor version.
- OpenSSH on the database server is the Ubuntu 20.04 build, an OS whose standard support has ended. The fix is an OS upgrade (or paid extended support), not a single package.
- Samba 4.6.2 and lighttpd 1.4.69 are older than the reference versions, but these are banner findings; the report says "the service reports version X" and recommends verification with an authenticated check before anyone treats them as proven.
- nginx 1.24.0 (Ubuntu) produces no finding from the banner alone: the Ubuntu package receives backported fixes, so the package version decides.
The reference values in MIN_FIXED are illustrative for this lab. In a real assessment they come from the vendor's or distribution's security advisories (Ubuntu USN, Debian DSA, Red Hat RHSA, vendor PSIRT pages) and the CVE records they cite, checked on the day (CVE, CVSS and Patch Prioritisation).
Confirming with an authenticated check
With credentials in scope, the assessor or the vulnerability scanner logs in and reads the package database, which settles the backport question. A lab session on db.lab.test (read-only account audit, scope: 10.10.0.30, package listing only):
audit@db:~$ lsb_release -ds
Ubuntu 20.04.6 LTS
audit@db:~$ dpkg-query -W -f '${Package} ${Version}\n' openssh-server postgresql-12
openssh-server 1:8.2p1-4ubuntu0.5
postgresql-12 12.9-0ubuntu0.20.04.1
audit@db:~$ apt list --upgradable 2>/dev/null | wc -l
143Three facts for the report: an unsupported OS release, an end-of-life database, and 143 pending updates, which shows that patching stopped long ago (a process finding, not only a technical one).
How outdated software is detected continuously
- Authenticated vulnerability scans on a schedule (Vulnerability Scanners), and agents that report installed packages.
- SBOMs and software inventories matched against advisories (see Supply-Chain Security for SBOM tooling).
- EOL tracking in the asset inventory: every product with its support end date, reviewed quarterly.
- Exposure-first monitoring for Internet-facing systems: those get patched first and checked daily against new advisories and CISA's Known Exploited Vulnerabilities catalog.
How it is fixed
- A patch process with deadlines by severity and exposure (for example critical and Internet-facing within days, others within a month), automatic security updates where safe (
unattended-upgrades, Updates), and maintenance windows for the rest. - Planned upgrades before EOL, not after; a decommission date for every system.
- Compensating controls while waiting: restrict reachability, add IPS signatures for the specific vulnerability, increase monitoring, and record the exception with an owner and an end date.
Pitfalls
- Reporting CVEs from banners alone as confirmed vulnerabilities: the classic false positive (Vulnerability Scanners shows how to handle them).
- Missing embedded components: an appliance's web UI with an old OpenSSL or Java inside; firmware counts as software.
- Treating "no banner" as "up to date".
- Ignoring EOL because "no known vulnerability yet": new ones will not be fixed.
Practice
1. A banner says Apache/2.4.29 (Ubuntu). What do you write in the report?
"The server reports Apache httpd 2.4.29 on Ubuntu, the version shipped with Ubuntu 18.04, whose standard support ended in 2023. Confirm the OS release and package version with an authenticated check; if confirmed, upgrade the OS." Don't list Apache 2.4.29 CVEs as proven: Ubuntu backported many fixes.
2. Add ("mail.lab.test", 143, "Dovecot imapd 2.3.7") and a MIN_FIXED entry "Dovecot imapd": (2, 3, 21). What does the program print?
older than 2.3.21: check advisories [banner], a lead to verify, not a confirmed vulnerability.
3. The database can't be upgraded for six months. What do you recommend meanwhile?
Restrict 5432 to the web server only (firewall and pg_hba.conf), require TLS, monitor authentication and query logs, take tested backups, record a risk acceptance with an owner and end date, and schedule the upgrade.
Test yourself
Why is an upstream version number in a banner weak evidence on a Linux distribution?
- Banners are encrypted
- Distributions backport security fixes without changing the upstream version
- Banners are always fake
- Versions are random
Which finding stands without knowing the exact minor version?
- A Samba banner older than a reference
- End-of-life software such as PostgreSQL 12
- nginx 1.24.0 (Ubuntu)
- None
What settles whether a banner finding is real?
- A second banner grab
- An authenticated check of the installed package or build version
- A faster scan
- Hiding the banner
What does 143 pending updates on a server indicate besides individual vulnerabilities?
- Nothing
- A broken or missing patch process
- A full disk
- That the server is new