CVE-2022-25760: Code injection in accesslog
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62115%
CWE
Published
3/18/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
accesslog | npm | <= 0.0.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe usage of the Function
constructor in the format handling logic. References explicitly point to line 6 of lib/compile.js
where code generation occurs. The PoC demonstrates that attacker-controlled format strings get evaluated as code through this mechanism. As this is the core code generation point for log formatting, and there's direct evidence of vulnerable pattern matching the CWE-94 description, this function
is conclusively vulnerable.