CVE-2026-63222 CodeIgniter: Path traversal in UploadedFile::move() when using client-provided filenames

High 7.5 Published Updated

Remote attackers can write files outside intended directories via path traversal in CodeIgniter's file upload handling.

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

What is CVE-2026-63222?

CVE-2026-63222 is a high-severity path traversal vulnerability in CodeIgniter4, published on 31 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

CodeIgniter is a PHP full-stack web framework. Prior to 4.7.4, calling UploadedFile::move() without a second argument uses the client-provided filename without sanitization, allowing a remote attacker to use path traversal sequences to write uploaded content outside the intended directory when the application exposes an upload path. This issue is fixed in version 4.7.4.

Weakness: CWE-22

Which versions are affected by CVE-2026-63222?

2 open source packages ship an affected version, including codeigniter4/framework.

PackageAffectedFixed in
codeigniter4/framework PackagistAll versions4.7.4
codeigniter4/framework PackagistAll versions4.7.4

How do I fix CVE-2026-63222?

Upgrade codeigniter4/framework to 4.7.4 or later.

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

Is CVE-2026-63222 being exploited?

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

Sources

Also known as GHSA-hhmc-q9hp-r662, UBUNTU-CVE-2026-63222.

Is CVE-2026-63222 in your software?

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

Check your SBOMs for free