CVE-2021-30219
samurai 1.2 has a NULL pointer dereference in printstatus() function in build.c via a crafted build file.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
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 |
|---|---|---|---|---|
| Alpine Linux 3.24 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.23 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.22 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.21 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.20 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.19 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.18 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.17 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.16 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.15 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.14 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
| Alpine Linux 3.13 | samurai | Fixed | 1.2-r1 | ALPINE-CVE-2021-30219 |
References
- https://github.com/michaelforney/samurai/issues/68
- https://github.com/michaelforney/samurai/commit/d2af3bc375e2a77139c3a28d6128c60cd8d08655
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.