CVE-2020-15366
An issue was discovered in ajv.validate() in Ajv (aka Another JSON Schema Validator) 6.12.2. A carefully crafted JSON schema could be provided that allows execution of other code by prototype pollution. (While untrusted schemas are recommended against, the worst case of an untrusted schema should be a denial of service, not execution of code.)
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | node-ajv | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-ajv | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | node-ajv | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | node-ajv | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | node-ajv | Fix pending | UBUNTU-CVE-2020-15366 | |
| Ubuntu 18.04 | node-ajv | Fix pending | UBUNTU-CVE-2020-15366 | |
| Debian 14 | node-ajv | Fixed | 6.12.4-1 | DEBIAN-CVE-2020-15366 |
| Debian 13 | node-ajv | Fixed | 6.12.4-1 | DEBIAN-CVE-2020-15366 |
| Debian 12 | node-ajv | Fixed | 6.12.4-1 | DEBIAN-CVE-2020-15366 |
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:10.23.1-1.module+el8.3.0+9502+012d8a97 | RHSA-2020:5499 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:12.19.1-1.module+el8.3.0+8851+b7b41ca0 | RHSA-2021:0548 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:14.15.4-2.module+el8.3.0+9635+ffdf8381 | RHSA-2021:0548 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:10.23.1-1.module+el8.3.0+9502+012d8a97 | RHSA-2021:0551 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:2.0.3-1.module+el8.3.0+6519+9f98ed83 | RHSA-2021:0548 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2021:0551 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:6.14.10-1.14.15.4.2.module+el8.3.0+9635+ffdf8381 | RHSA-2020:5499 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 1.18.3-1.module_el8.3.0+2047+b07ac28e | ALSA-2020:5499 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 17-3.module_el8.4.0+2224+b07ac28e | ALSA-2021:0548 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:2.0.3-1.module+el8.4.0+638+5344c6f7 | RLSA-2021:0548 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:23-3.module+el8.7.0+1071+4bdda2a8 | RLSA-2021:0551 |
| npm library | ajv | Fixed | 6.12.3 | GHSA-v88g-cgmw-v5xw |
References
- https://hackerone.com/bugs?subject=user&report_id=894259
- https://github.com/ajv-validator/ajv/tags
- https://github.com/ajv-validator/ajv/releases/tag/v6.12.3
- https://security.netapp.com/advisory/ntap-20240621-0007/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.