Advisory

DEBIAN-CVE-2022-31129

Also known as: CVE-2022-31129

Summary

The record has no summary.

Details

moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. Affected versions of moment were found to use an inefficient parsing algorithm. Specifically using string-to-date parsing in moment (more specifically rfc2822 parsing, which is tried by default) has quadratic (N^2) complexity on specific inputs. Users may notice a noticeable slowdown is observed with inputs above 10k characters. Users who pass user-provided strings without sanity length checks to moment constructor are vulnerable to (Re)DoS attacks. The problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. Users are advised to upgrade. Users unable to upgrade should consider limiting date lengths accepted from user input.

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:N/A:H

Dates

Published
2022-07-06 18:15 UTC
Modified
2026-11-18 06:00 UTC

Affected packages and fixes

node-moment

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 2.29.4+ds-1 (ecosystem)

Fixed versions

2.29.4+ds-1

Fix

  • Fixed version 2.29.4+ds-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) · Debian 13

Affected

  • introduced 0, fixed 2.29.4+ds-1 (ecosystem)

Fixed versions

2.29.4+ds-1

Fix

  • Fixed version 2.29.4+ds-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) · Debian 14

Affected

  • introduced 0, fixed 2.29.4+ds-1 (ecosystem)

Fixed versions

2.29.4+ds-1

Fix

  • Fixed version 2.29.4+ds-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.

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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences