UBUNTU-CVE-2022-24785

Source
https://ubuntu.com/security/CVE-2022-24785
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-24785.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-24785
Related
Published
2022-04-04T17:15:00Z
Modified
2024-10-15T14:09:48Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / nikola

Package

Name
nikola
Purl
pkg:deb/ubuntu/nikola?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

7.*

7.6.0-3
7.6.4-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / node-moment

Package

Name
node-moment
Purl
pkg:deb/ubuntu/node-moment?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.10.6+dfsg-1
2.11.0+ds-1
2.11.0+ds-1ubuntu0.1~esm1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:18.04:LTS / node-moment

Package

Name
node-moment
Purl
pkg:deb/ubuntu/node-moment?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.20.1+ds-1ubuntu0.1

Affected versions

2.*

2.18.1+ds-1
2.19.1+ds-1
2.19.2+ds-1
2.19.3+ds-1
2.19.4+ds-1
2.20.1+ds-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.20.1+ds-1ubuntu0.1",
            "binary_name": "libjs-moment"
        },
        {
            "binary_version": "2.20.1+ds-1ubuntu0.1",
            "binary_name": "node-moment"
        }
    ]
}

Ubuntu:20.04:LTS / node-moment

Package

Name
node-moment
Purl
pkg:deb/ubuntu/node-moment?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.24.0+ds-2ubuntu0.1

Affected versions

2.*

2.24.0+ds-1
2.24.0+ds-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.24.0+ds-2ubuntu0.1",
            "binary_name": "libjs-moment"
        },
        {
            "binary_version": "2.24.0+ds-2ubuntu0.1",
            "binary_name": "node-moment"
        }
    ]
}

Ubuntu:22.04:LTS / node-moment

Package

Name
node-moment
Purl
pkg:deb/ubuntu/node-moment?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.29.1+ds-3ubuntu0.2

Affected versions

2.*

2.29.1+ds-2
2.29.1+ds-3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.29.1+ds-3ubuntu0.2",
            "binary_name": "libjs-moment"
        },
        {
            "binary_version": "2.29.1+ds-3ubuntu0.2",
            "binary_name": "node-moment"
        }
    ]
}