needrestart 0.8 through 3.5 before 3.6 is prone to local privilege escalation. Regexes to detect the Perl, Python, and Ruby interpreters are not anchored, allowing a local user to escalate privileges when needrestart tries to detect if interpreters are using old source files.
{
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/30xxx/CVE-2022-30688.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:needrestart_project:needrestart:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.8"
},
{
"fixed": "3.6"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "e6e58136e1e3c92296e2e810cb8372a5fe0dbd30"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v3.6",
"range": [
{
"fixed": "baf5e5480f6dc30b7f4bcb7030677e63dbbfd0a9"
}
],
"source": "REFERENCES_TAG"
}
]
}