CVE-2019-3556 Path traversal in HHVM

High 8.1 Published Updated

An attacker with access to the HHVM admin server can overwrite arbitrary files via an unvalidated path parameter in the dump-pcre-cache handler.

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

What is CVE-2019-3556?

CVE-2019-3556 is a high-severity path traversal vulnerability in Facebook HHVM, published on 26 Oct 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

HHVM supports the use of an "admin" server which accepts administrative requests over HTTP. One of those request handlers, dump-pcre-cache, can be used to output cached regular expressions from the current execution context into a file. The handler takes a parameter which specifies where on the filesystem to write this data. The parameter is not validated, allowing a malicious user to overwrite arbitrary files where the user running HHVM has write access. This issue affects HHVM versions prior to 4.56.2, all versions between 4.57.0 and 4.78.0, as well as 4.79.0, 4.80.0, 4.81.0, 4.82.0, and 4.83.0.

Weakness: CWE-22

Which versions are affected by CVE-2019-3556?

It affects 1 product.

Products include Facebook Hhvm.

How do I fix CVE-2019-3556?

No fix has been published for CVE-2019-3556 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-2019-3556 being exploited?

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

Sources

Also known as GHSA-36h6-q98c-7j6j, UBUNTU-CVE-2019-3556.

Is CVE-2019-3556 in your software?

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

Check your SBOMs for free