{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-42964","id":"CVE-2022-42964","title":"Exponential ReDoS in pymatgen leads to denial of service","description":"An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the pymatgen PyPI package, when an attacker is able to supply arbitrary input to the GaussianInput.from_string method","descriptionLong":"An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the pymatgen PyPI package, when an attacker is able to supply arbitrary input to the GaussianInput.from_string method","published":"2022-11-09T00:00:00.000Z","updated":"2026-07-07T11:56:39.677240055Z","reserved":"2022-10-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"JFROG","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"JFROG"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"JFROG"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"jfrog.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["pymatgen"],"affectedProducts":[{"vendor":"pymatgen","product":"pymatgen","defaultStatus":null,"versions":[{"version":"0","status":"affected","lessThan":"*","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pymatgen","purl":"pkg:pypi/pymatgen","ranges":["<=2022.9.21","<2025.10.7"],"fixed":["2025.10.7"],"advisory":"GHSA-5jqp-885w-xj32"}],"cwes":["CWE-1333"],"aliases":["GHSA-5jqp-885w-xj32","PYSEC-2026-909"],"references":[{"url":"https://research.jfrog.com/vulnerabilities/pymatgen-redos-xray-257184/","tags":["x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42964","tags":["advisory"]},{"url":"https://github.com/materialsproject/pymatgen/issues/2755","tags":["web"]},{"url":"https://github.com/materialsproject/pymatgen","tags":["package"]},{"url":"https://research.jfrog.com/vulnerabilities/pymatgen-redos-xray-257184","tags":["web"]},{"url":"https://pypi.org/project/pymatgen","tags":["package"]},{"url":"https://github.com/advisories/GHSA-5jqp-885w-xj32","tags":["advisory"]},{"url":"https://github.com/materialsproject/pymatgen/pull/4476","tags":["fix"]},{"url":"https://github.com/materialsproject/pymatgen/commit/8d2ca2296109f9e5a4ac1c751eee650ab4303108","tags":["fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00956,"epssPercentile":0.62099,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-42964","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42964","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-42964","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5jqp-885w-xj32","ok":true,"note":"GHSA-5jqp-885w-xj32"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-42964","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}