In False Version Reporting in Ubuntu 16.04, I used OpenSSL to show why a program’s version banner can be misleading on its own. An Ubuntu build can retain the upstream base version and still contain fixes from later work. To find out what is installed, start with the binary and the package, then check the relevant security notice.
Verifying Ubuntu’s Version of OpenSSL
These commands answer different questions:
command -v openssl
openssl version
openssl version -a
dpkg-query -W -f='${Package}\t${Version}\n' openssl
apt-cache policy openssl
command -v shows what your shell would run. The short version string identifies the OpenSSL build’s upstream version label. In the historical banner OpenSSL 1.0.2g 1 Mar 2016, the date belongs to the upstream release label; it is not the date the Ubuntu binary was built. The version command documentation distinguishes that output from the build-date option (-b), which is included in the more detailed -a output.
The package query shows the installed Debian/Ubuntu package revision; APT policy shows which version is installed and which is the candidate from APT’s local metadata. If the binary comes from a manually installed build or an application bundles its own OpenSSL, the system package version may not describe it.
OpenSSL Versions (TLS/SSL Support)
The table is a historical snapshot of package revisions, not a current support or TLS capability matrix. These revisions are documented in Canonical’s June 2022 security notice.
| Ubuntu release | Example package revision in June 2022 |
|---|---|
| 22.04 LTS (Jammy) | 3.0.2-0ubuntu1.5 |
| 21.10 (Impish) | 1.1.1l-1ubuntu1.5 |
| 20.04 LTS (Focal) | 1.1.1f-1ubuntu2.15 |
| 18.04 LTS (Bionic) | 1.1.1-1ubuntu2.1~18.04.19 |
These are examples, not first or final release versions. Ubuntu can also provide compatibility packages separately, so a distribution release does not by itself identify every installed OpenSSL library. OpenSSL 1.1.1 introduced TLS 1.3 upstream, but a version string alone does not tell you what a particular application’s build and configuration will negotiate.
Ubuntu’s Quirky Package System
Two version numbers are in play: the upstream version associated with the built program and the release-specific package version maintained by Canonical.
Package Versions
In 1.0.2g-1ubuntu4.15, 1.0.2g is the upstream base and 1ubuntu4.15 is the distribution packaging revision. Canonical’s Xenial release notice identifies the exact fixed library package for CVE-2019-1559. The higher packaging revision reflects the Ubuntu maintenance history, not a move to another upstream letter release.
Program Versions
If you are using the Ubuntu-packaged CLI, the short banner may still say 1.0.2g after upgrading the package. A package changelog shows what Canonical changed. On a system where the changelog is available through APT, use:
apt-get changelog openssl
For older releases, consult the exact package revision’s Launchpad changelog and Canonical’s security notices rather than relying on the current Ubuntu Packages Search menu. The following screenshots show the original historical workflow; the current interface and available releases may differ.
These Version Numbers Do Not Make Sense
The version label and the package changelog describe different things. Canonical backports security fixes to supported distribution packages. Finding a patch in both a Canonical package and a newer upstream release does not make the releases equivalent. To check a particular issue, use the full installed package revision, Ubuntu release, and Canonical’s applicable security notice. To check a feature, verify it in the actual binary or library your application uses.
What to Do: Ubuntu 16.04.x or 18.04.x
Upstream public support for OpenSSL 1.0.2 ended in December 2019, and for 1.1.1 in September 2023. Those are upstream dates, not guarantees about Canonical’s separate coverage. Ubuntu support also depends on the release, package, and active entitlement. Check Canonical’s current maintenance policy; if your system does not have applicable updates, plan to move to a supported release rather than replacing the operating system’s OpenSSL by hand.