CVE-2022-31129: Inefficient Regular Expression Complexity in moment
Noroxi assessment
Priority: Monitor (action score 32/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5.5% (FIRST EPSS); higher than 92.7% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: moment moment 2.29.4.
- Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to moment moment 2.29.4 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jul 6, 2022
- Updated
- Jun 17, 2026
- EPSS
- 5.5% · 92th percentile
- CWE
- CWE-400
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.5%
CISA SSVC decision
- Exploitation
- proof of concept
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.5
- CNA · GitHub_M
- 7.5
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| momentjs | moment | cpe:2.3:a:momentjs:moment |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Is the Moment.js on your site affected?
The free JavaScript library scanner reads the Moment.js version from the files your site loads, matches this record and other known vulnerabilities, and gives the safe version on the same branch. If the version can't be read, it says so. No account needed.
Scan JavaScript librariesAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- fedoraproject fedora35
- fedoraproject fedora36
- fedoraproject fedora37
- momentjs moment2.18.0 and later · before 2.29.4
Versions reported by the vendor
Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.
moment moment
- >= 2.18.0, < 2.29.4affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:10 | node-moment | before 2.24.0+ds-1+deb10u1 | 2.24.0+ds-1+deb10u1 |
| Debian:12 | node-moment | before 2.29.4+ds-1 | 2.29.4+ds-1 |
| npm | moment | from 2.18.0 · before 2.29.4 | 2.29.4 |
| NuGet | Moment.js | from 2.18.0 · before 2.29.4 | 2.29.4 |
| Red Hat:ceph_storage:6.1::el9 | ansible-collection-ansible-posix | before 0:1.2.0-1.3.el9ost | 0:1.2.0-1.3.el9ost |
| Red Hat:ceph_storage:6.1::el9 | ceph | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-base | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-base-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-common | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-common-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-debugsource | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-exporter-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-fuse | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-fuse-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-immutable-object-cache | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-immutable-object-cache-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mds-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mgr-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mib | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mon-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-osd-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-radosgw-debuginfo | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-resource-agents | before 2:17.2.6-70.el9cp | 2:17.2.6-70.el9cp |
+96
Same product
momentjs: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-24785Path Traversal in Moment.js34Monitor
- CVE-2017-18214The moment module before 2.19.3 for Node.js is prone to a regular expression denial of service via a crafted date string, a different vulner31Monitor
- CVE-2016-4055The duration function in the moment package before 2.11.2 for Node.js allows remote attackers to cause a denial of service (CPU consumption)29Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| moment moment | 2.29.4 · description | Vendor (CNA) |
| debian:node-moment | 2.29.4+ds-1 · Debian:12 | Package registry (OSV) |
| npm:moment | 2.29.4 | Package registry (OSV) |
| NuGet:Moment.js | 2.29.4 | Package registry (OSV) |
| red hat:cockpit-ovirt | 0:0.16.2-1.el8ev · Red Hat:rhev_hypervisor:4.4::el8 | Package registry (OSV) |
| red hat:servicemesh | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-cni | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-operator | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-pilot-agent | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-pilot-discovery | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-prometheus | 0:2.14.0-18.el8.1 · Red Hat:service_mesh:2.0::el8 | Package registry (OSV) |
| red hat:servicemesh-proxy | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-proxy-debuginfo | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-proxy-debugsource | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-proxy-wasm | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| red hat:servicemesh-ratelimit | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Package registry (OSV) |
| suse:mgr-daemon | 4.2.10-150300.2.9.4 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:patterns-suse-manager | 4.2-150300.4.12.2 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:release-notes-susemanager | 4.2.9-150300.3.54.1 · SUSE:Manager Server 4.2 | Package registry (OSV) |
| suse:release-notes-susemanager-proxy | 4.2.9-150300.3.43.1 · SUSE:Manager Proxy 4.2 | Package registry (OSV) |
| suse:spacecmd | 4.2.19-150300.4.27.2 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:spacewalk-backend | 4.2.24-150300.4.29.5 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:spacewalk-certs-tools | 4.2.18-150300.3.24.3 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:spacewalk-client-tools | 4.2.20-150300.4.24.3 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:spacewalk-proxy | 4.2.12-150300.3.21.3 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:spacewalk-web | 4.2.29-150300.3.27.3 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:susemanager-tftpsync-recv | 4.2.5-150300.3.6.2 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
| suse:uyuni-common-libs | 4.2.7-150300.3.9.2 · SUSE:Manager Proxy Module 4.2 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0544 · Aug 11, 2022(Ubuntu Güvenlik Güncellemesi)
- TR-22-0534 · Aug 9, 2022(RedHat Güvenlik Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) {
return node.children.map(expand);
}Fixed
const MAX_DEPTH = 32;
function expand(node, depth = 0) {
if (depth > MAX_DEPTH) throw new Error("too deep");
return node.children.map((c) => expand(c, depth + 1));
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (8 more)Show less
- github.com/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g
- lists.debian.org/debian-lts-announce/2023/01/msg00035.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6QIO6YNLTK2T7SPKDS4JEL45FANLNC2Q/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IWY24RJA3SBJGA5N4CU4VBPHJPPPJL5O/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ORJX2LF6KMPIHP6B2P6KZIVKMLE3LVJ5/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZMX5YHELQVCGKKQVFXIYOTBMN23YYSRO/
- security.netapp.com/advisory/ntap-20221014-0003/
- security.netapp.com/advisory/ntap-20241108-0002/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.