GHSA-v78c-4p63-2j6c Cleartext Transmission of Sensitive Information in moment-timezone

Not scored Published

An attacker can intercept unencrypted FTP requests during custom builds to inject malicious timezone data, potentially leading to code execution.

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

What is GHSA-v78c-4p63-2j6c?

GHSA-v78c-4p63-2j6c is a vulnerability in moment-timezone, published on 30 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Impact

  • if Alice uses grunt data (or grunt release) to prepare a custom-build, moment-timezone with the latest tzdata from IANA's website
  • and Mallory intercepts the request to IANA's unencrypted ftp server, Mallory can serve data which might exploit further stages of the moment-timezone tzdata pipeline, or potentially produce a tainted version of moment-timezone (practicality of such attacks is not proved)

Patches

Problem has been patched in version 0.5.35, patch should be applicable with minor modifications to all affected versions. The patch includes changing the FTP endpoint with an HTTPS endpoint.

Workarounds

Specify the exact version of tzdata (like 2014d, full command being grunt data:2014d, then run the rest of the release tasks by hand), or just apply the patch before issuing the grunt command.

Which versions are affected by GHSA-v78c-4p63-2j6c?

2 open source packages ship an affected version, including moment-timezone.

PackageAffectedFixed in
moment-timezone npmFrom 0.1.00.5.35
moment-timezone npmFrom 0.1.00.5.35

How do I fix GHSA-v78c-4p63-2j6c?

Upgrade moment-timezone to 0.5.35 or later.

Is GHSA-v78c-4p63-2j6c being exploited?

There is no known exploitation of GHSA-v78c-4p63-2j6c in the wild and no public exploit code.

Sources

Is GHSA-v78c-4p63-2j6c in your software?

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

Check your SBOMs for free