Known exploited
CVE-2021-40438 on Ubuntu 22.04 LTS: affected packages and fixed versions
8 packages on Ubuntu 22.04 LTS are affected by CVE-2021-40438 (Apache HTTP Server-Side Request Forgery (SSRF)). A host is fixed once the package is at the version below or newer.
This vulnerability is known to be exploited. CISA added it to its catalog on December 1, 2021, with a remediation date of December 15, 2021 for US federal agencies. It has been used in ransomware campaigns.
Affected packages
| Package | Fixed in | Severity | Advisory |
|---|---|---|---|
apache2 |
2.4.48-3.1ubuntu2 |
Medium | none listed |
apache2-bin |
2.4.48-3.1ubuntu2 |
Medium | none listed |
apache2-data |
2.4.48-3.1ubuntu2 |
Medium | none listed |
apache2-suexec-custom |
2.4.48-3.1ubuntu2 |
Medium | none listed |
apache2-suexec-pristine |
2.4.48-3.1ubuntu2 |
Medium | none listed |
apache2-utils |
2.4.48-3.1ubuntu2 |
Medium | none listed |
libapache2-mod-md |
2.4.48-3.1ubuntu2 |
Medium | none listed |
libapache2-mod-proxy-uwsgi |
2.4.48-3.1ubuntu2 |
Medium | none listed |
Check a host
Show the installed versions and compare with the table above:
dpkg-query -W -f='${Package} ${Version}\n' apache2 apache2-bin apache2-data apache2-suexec-custom
Update to the fixed build:
sudo apt-get update && sudo apt-get install --only-upgrade apache2 apache2-bin apache2-data apache2-suexec-custom
The fixed version may look older than the upstream release that fixed the bug. Ubuntu 22.04 LTS carries the fix in the version it already ships.
What it is
A Server-Side Request Forgery (SSRF) flaw was found in mod_proxy of httpd. This flaw allows a remote, unauthenticated attacker to make the httpd server forward requests to an arbitrary server. The attacker could get, modify, or delete resources on other services that may be behind a firewall and inaccessible otherwise. The impact of this flaw varies based on what services and resources are available on the httpd network. 2005117: CVE-2021-40438 httpd: mod_proxy: SSRF via a crafted request uri-path containing "unix:"
CVE-2021-40438 on other releases
- Ubuntu 20.04 LTS
- Debian 11
- Debian 12
- Debian 13
- RHEL 8
- Rocky Linux 8
- AlmaLinux 8
- Oracle Linux 8
- Amazon Linux 2
- SLES 15 SP7
- Arch Linux
Know which of your hosts are affected
SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.