CVE-2022-31813 mod_proxy X-Forwarded-For dropped by hop-by-hop mechanism

Critical 9.8 Published Updated

Attackers can bypass IP-based authentication on origin servers by exploiting how Apache mod_proxy handles X-Forwarded-For headers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-31813?

CVE-2022-31813 is a critical authentication bypass vulnerability in Apache Http Server, published on 8 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Apache HTTP Server 2.4.53 and earlier may not send the X-Forwarded-* headers to the origin server based on client side Connection header hop-by-hop mechanism. This may be used to bypass IP based authentication on the origin server/application.

Weakness: CWE-345, CWE-348

Which versions are affected by CVE-2022-31813?

1 open source package ship an affected version, including apache. It affects 3 products.

PackageAffectedFixed in
apache BitnamiAll versions2.4.54

Products include Apache Http Server, Fedoraproject Fedora, Netapp Clustered Data Ontap.

How do I fix CVE-2022-31813?

Upgrade apache to 2.4.54 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2022-31813 being exploited?

There is no known exploitation of CVE-2022-31813 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All Apache Http Server vulnerabilities

Sources

Also known as ALPINE-CVE-2022-31813, BIT-apache-2022-31813, CLEANSTART-2026-LT25186, CLSA-2022-1656958687, CLSA-2022-1656958887, DEBIAN-CVE-2022-31813 and 1 more.

Is CVE-2022-31813 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free