原始 OSV JSON
{
"id": "GHSA-xfhp-gmh8-r8v2",
"aliases": [
"CVE-2021-23354"
],
"details": "The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string \n```regex\n/\\%(?:\\(([\\w_.]+)\\)|([1-9]\\d*)\\$)?([0 +\\-\\]*)(\\*|\\d+)?(\\.)?(\\*|\\d+)?[hlL]?([\\%bscdeEfFgGioOuxX])/g\n```\n in `lib/printf.js`. The vulnerable regular expression has cubic worst-case time complexity.",
"summary": "printf vulnerable to Regular Expression Denial of Service (ReDoS)",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.6.1"
}
]
}
],
"package": {
"name": "printf",
"ecosystem": "npm"
}
}
],
"modified": "2023-09-08T20:24:11Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"published": "2021-03-19T21:22:10Z",
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-23354",
"type": "ADVISORY"
},
{
"url": "https://github.com/adaltas/node-printf/issues/31",
"type": "WEB"
},
{
"url": "https://github.com/adaltas/node-printf/pull/32",
"type": "WEB"
},
{
"url": "https://github.com/adaltas/node-printf/commit/a8502e7c9b0b22555696a2d8ef67722086413a68",
"type": "WEB"
},
{
"url": "https://snyk.io/vuln/SNYK-JS-PRINTF-1072096",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-03-12T15:15:00Z",
"github_reviewed_at": "2021-03-15T18:59:14Z"
}
}