CVE-2022-24785

Publication date 4 April 2022

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

7.5 · High

Score breakdown

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.

Status

Package Ubuntu Release Status
nikola 16.04 LTS xenial
Vulnerable
14.04 LTS trusty Ignored end of standard support
node-moment 25.04 plucky
Not affected
24.10 oracular
Not affected
24.04 LTS noble
Not affected
23.10 mantic
Not affected
23.04 lunar
Not affected
22.10 kinetic
Not affected
22.04 LTS jammy
Fixed 2.29.1+ds-3ubuntu0.2
21.10 impish Ignored end of life
20.04 LTS focal
Fixed 2.24.0+ds-2ubuntu0.1
18.04 LTS bionic
Fixed 2.20.1+ds-1ubuntu0.1
16.04 LTS xenial
Vulnerable
14.04 LTS trusty Ignored end of standard support

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
node-moment

Severity score breakdown

Parameter Value
Base score 7.5 · High
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact High
Availability impact None
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

References

Related Ubuntu Security Notices (USN)

    • USN-5559-1
    • Moment.js vulnerabilities
    • 10 August 2022

Other references