Advisory

UBUNTU-CVE-2022-24785

Also known as: CVE-2022-24785

Summary

The record has no summary.

Details

Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Dates

Published
2022-04-04 17:15 UTC
Modified
2026-11-18 00:57 UTC

Affected packages and fixes

nikola

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

node-moment

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.20.1+ds-1ubuntu0.1 (ecosystem)

Fixed versions

2.20.1+ds-1ubuntu0.1

Fix

  • Fixed version 2.20.1+ds-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-moment

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.24.0+ds-2ubuntu0.1 (ecosystem)

Fixed versions

2.24.0+ds-2ubuntu0.1

Fix

  • Fixed version 2.24.0+ds-2ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

node-moment

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.29.1+ds-3ubuntu0.2 (ecosystem)

Fixed versions

2.29.1+ds-3ubuntu0.2

Fix

  • Fixed version 2.29.1+ds-3ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences