Inefficient Regular Expression Complexity in moment
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.
- Yayın
- 6 Tem 2022
- Güncelleme
- 17 Haz 2026
- EPSS
- %5,6 · 93. yüzdelik
- CWE
- CWE-400
Takip etmek için giriş yap · Takip ettiğin kayıt KEV’e girer, istismarı çıkar ya da güncellenirse bildirim alırsın.
Rapor araçları
Aksiyon skoru
32
İzleyin
Şimdilik düşük öncelik.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 2 / 30 · %5,6
CISA SSVC kararı
- Sömürü
- kavram kanıtı
- Otomatikleştirilebilir
- evet
- Teknik etki
- kısmi
Vulnrichment: CISA'nın karar ağacı girdileri.
CNA ile NVD puanı
- NVD
- 7,5
- CNA · GitHub_M
- 7,5
- uyumlu
Kaydı açan otoritenin puanı ile NVD’nin bağımsız puanı. İki puan arasındaki fark ciddiyetin tartışmalı olduğunu gösterir.
Etkilenen sistemler
| Üretici | Ürün | 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 |
Etkilenen sürümler
NVD sürüm aralıkları (katalogdaki ürünler için). Stack’ine sürümle eklersen eşleşme bunlarla yapılır.
- debian debian linux10.0
- fedoraproject fedora35
- fedoraproject fedora36
- fedoraproject fedora37
- momentjs moment2.18.0 ve sonrası · 2.29.4 öncesi
Üreticinin bildirdiği sürümler
Kaydı açan otorite (GitHub_M) tarafından bildirilen etkilenen sürüm aralıkları. NVD'nin CPE analizinden bağımsızdır ve genellikle ondan önce gelir.
moment moment
- >= 2.18.0, < 2.29.4etkilenir
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| Debian:10 | node-moment | 2.24.0+ds-1+deb10u1 öncesi | 2.24.0+ds-1+deb10u1 |
| Debian:12 | node-moment | 2.29.4+ds-1 öncesi | 2.29.4+ds-1 |
| npm | moment | 2.18.0 itibarıyla · 2.29.4 öncesi | 2.29.4 |
| npm | moment | 2.18.0 itibarıyla · 2.29.4 öncesi | 2.29.4 |
| NuGet | Moment.js | 2.18.0 itibarıyla · 2.29.4 öncesi | 2.29.4 |
| Red Hat:ceph_storage:6.1::el9 | ansible-collection-ansible-posix | 0:1.2.0-1.3.el9ost öncesi | 0:1.2.0-1.3.el9ost |
| Red Hat:ceph_storage:6.1::el9 | ceph | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-base | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-base-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-common | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-common-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-debugsource | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-exporter-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-fuse | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-fuse-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-immutable-object-cache | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-immutable-object-cache-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mds-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mgr-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mib | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-mon-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-osd-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
| Red Hat:ceph_storage:6.1::el9 | ceph-radosgw-debuginfo | 2:17.2.6-70.el9cp öncesi | 2:17.2.6-70.el9cp |
+96
Aynı üründe
momentjs: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- CVE-2022-24785Path Traversal in Moment.js34İzleyin
- 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 vulner31İzleyin
- 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)29İzleyin
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| moment moment | 2.29.4 · description | Üretici (CNA) |
| debian:node-moment | 2.29.4+ds-1 · Debian:12 | Paket deposu (OSV) |
| npm:moment | 2.29.4 | Paket deposu (OSV) |
| NuGet:Moment.js | 2.29.4 | Paket deposu (OSV) |
| red hat:cockpit-ovirt | 0:0.16.2-1.el8ev · Red Hat:rhev_hypervisor:4.4::el8 | Paket deposu (OSV) |
| red hat:servicemesh | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-cni | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-operator | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-pilot-agent | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-pilot-discovery | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-prometheus | 0:2.14.0-18.el8.1 · Red Hat:service_mesh:2.0::el8 | Paket deposu (OSV) |
| red hat:servicemesh-proxy | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-proxy-debuginfo | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-proxy-debugsource | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-proxy-wasm | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| red hat:servicemesh-ratelimit | 0:2.1.5-1.el8 · Red Hat:service_mesh:2.1::el8 | Paket deposu (OSV) |
| suse:mgr-daemon | 4.2.10-150300.2.9.4 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:patterns-suse-manager | 4.2-150300.4.12.2 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:release-notes-susemanager | 4.2.9-150300.3.54.1 · SUSE:Manager Server 4.2 | Paket deposu (OSV) |
| suse:release-notes-susemanager-proxy | 4.2.9-150300.3.43.1 · SUSE:Manager Proxy 4.2 | Paket deposu (OSV) |
| suse:spacecmd | 4.2.19-150300.4.27.2 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:spacewalk-backend | 4.2.24-150300.4.29.5 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:spacewalk-certs-tools | 4.2.18-150300.3.24.3 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:spacewalk-client-tools | 4.2.20-150300.4.24.3 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:spacewalk-proxy | 4.2.12-150300.3.21.3 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:spacewalk-web | 4.2.29-150300.3.27.3 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:susemanager-tftpsync-recv | 4.2.5-150300.3.6.2 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
| suse:uyuni-common-libs | 4.2.7-150300.3.9.2 · SUSE:Manager Proxy Module 4.2 | Paket deposu (OSV) |
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
FIRST EPSS günlük puanı; yalnızca 0,01 ve üstü değişimler kaydedilir (adım grafiği).
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
Kredi
Tüm araştırmacılarCNA kaydında adı geçen bulan, bildiren ve analistler. Ada tıkla, aynı araştırmacının diğer kayıtlarını gör.
CNA kaydında kredi yok.
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
Gece hesaplanan ilişki yok.
Zincir adayları
Aynı üründe kimlik doğrulama atlatma ile yetki isteyen bir açık kısa aralıkla yayımlanmış: birlikte kimlik doğrulamasız bir yola dönüşebilir.
—
Bug bounty kapsamı
Bilinen herkese açık program yok.
Kaynak: bounty-targets-data (HackerOne, Bugcrowd, Intigriti, YesWeHack herkese açık listeleri).
Teknik detay
Saldırı koşulları
- İnternetten erişebilen herkes tetikleyebilir.
- Hesap ya da parola gerekmez.
- Kullanıcının bir şey yapması gerekmez.
- Özel bir koşul gerekmez; tekrarlanabilir.
Başarılı olursa
- Gizlilik
- yok
- Bütünlük
- yok
- Erişilebilirlik
- yüksek · hizmet durdurulabilir
- Saldırı vektörü
- Ağ
- Karmaşıklık
- Düşük
- Gereken yetki
- Yok
- Kullanıcı etkileşimi
- Gerekmez
- Kapsam
- Değişmez
- Gizlilik etkisi
- Yok
- Bütünlük etkisi
- Yok
- Erişilebilirlik etkisi
- Yüksek
Zayıflık sınıfı (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vektörü
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Kök neden
İç içe yapıları çözümleyen kod derinlik ya da boyut sınırı koymuyor. Küçük bir girdi orantısız işlem yüküne dönüşebilir.
Hatanın kod karşılığı
CWE-400 sınıfının tamamıBu zafiyet sınıfının temsili örneği. Üreticinin kaynak kodu değildir; hatalı kalıbı ve düzeltmesini gösterir.
Hatalı
function expand(node) { return node.children.map(expand);}Düzeltilmiş
const MAX_DEPTH = 32;function expand(node, depth = 0) { if (depth > MAX_DEPTH) throw new Error("çok derin"); return node.children.map((c) => expand(c, depth + 1));}Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Saldırı desenleri (CAPEC)
ATT&CK teknikleri
Noroxi analizi
Bu kayıt için henüz Noroxi analizi yok
385 binden fazla zafiyetin tamamına elle analiz yazmıyoruz; bu dürüst olmazdı. Öne çıkan ve sahada etkisi olan zafiyetler için mekanizma, tespit ve kapatma adımlarını ekibimiz yazıyor.
Bu ürünü kullanıyoruz, yardım isteyinDeğişiklik günlüğü
- Düzeltme✗ → ✓
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
- github.com/moment/moment/commit/9a3b5894f3d5d602948ac8a02e4ee528a49ca3a3
- 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/
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.