CVE-2022-48476 Path traversal in Ktor

High 7.5 Published Updated

An attacker can exploit a path traversal vulnerability in the resolveResource method to read arbitrary files from the server.

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

What is CVE-2022-48476?

CVE-2022-48476 is a high-severity path traversal vulnerability in JetBrains Ktor, published on 24 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In JetBrains Ktor before 2.3.0 path traversal in the `resolveResource` method was possible

Weakness: CWE-22, CWE-35

Which versions are affected by CVE-2022-48476?

It affects 1 product.

Products include Jetbrains Ktor.

How do I fix CVE-2022-48476?

No fix has been published for CVE-2022-48476 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-48476 being exploited?

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

Sources

Also known as GHSA-pw38-42w8-qm8m.

Is CVE-2022-48476 in your software?

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

Check your SBOMs for free