Skip to content

Known exploited

CVE-2024-38475 on Ubuntu 22.04 LTS: affected packages and fixed versions

8 packages on Ubuntu 22.04 LTS are affected by CVE-2024-38475 (Apache HTTP Server Improper Escaping of Output Vulnerability). 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 May 1, 2025, with a remediation date of May 22, 2025 for US federal agencies.

Affected packages

PackageFixed inSeverityAdvisory
apache2 2.4.52-1ubuntu4.10 High USN-6885-1
apache2-bin 2.4.52-1ubuntu4.10 High USN-6885-1
apache2-data 2.4.52-1ubuntu4.10 High USN-6885-1
apache2-suexec-custom 2.4.52-1ubuntu4.10 High USN-6885-1
apache2-suexec-pristine 2.4.52-1ubuntu4.10 High USN-6885-1
apache2-utils 2.4.52-1ubuntu4.10 High USN-6885-1
libapache2-mod-md 2.4.52-1ubuntu4.10 High USN-6885-1
libapache2-mod-proxy-uwsgi 2.4.52-1ubuntu4.10 High USN-6885-1

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

Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected. Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.

CVE-2024-38475 on other releases

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.

Get started free Check one server now, no signup