Vulnerability Database
Blog
FAQ
Docs
CVE-2021-30218
See a problem?
Please try reporting it
to the source
first.
Source
https://nvd.nist.gov/vuln/detail/CVE-2021-30218
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-30218.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-30218
Related
CGA-q26r-64p7-h73q
Published
2021-04-29T15:15:11Z
Modified
2024-12-05T15:30:57.136164Z
Severity
5.5 (Medium)
CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS Calculator
Summary
[none]
Details
samurai 1.2 has a NULL pointer dereference in writefile() in util.c via a crafted build file.
References
https://github.com/michaelforney/samurai/issues/67
https://github.com/michaelforney/samurai/commit/e84b6d99c85043fa1ba54851ee500540ec206918
https://security.alpinelinux.org/vuln/CVE-2021-30218
Affected packages
Alpine:v3.13
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.14
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.15
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.16
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.17
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.18
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.19
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.20
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Alpine:v3.21
/
samurai
Package
Name
samurai
Purl
pkg:apk/alpine/samurai?arch=source
Affected ranges
Type
ECOSYSTEM
Events
Introduced
0
Unknown introduced version / All previous versions are affected
Fixed
1.2-r1
Affected versions
0.*
0.4-r0
0.5-r0
0.6-r0
0.6-r1
0.7-r0
1.*
1.0-r0
1.0-r1
1.0-r2
1.0-r3
1.0-r4
1.1-r0
1.1-r1
1.2-r0
Git
/
github.com/michaelforney/samurai
Affected ranges
Type
GIT
Repo
https://github.com/michaelforney/samurai
Events
Introduced
0
Unknown introduced commit / All previous commits are affected
Fixed
e84b6d99c85043fa1ba54851ee500540ec206918
Affected versions
0.*
0.1
0.2
0.3
0.4
0.5
0.6
0.7
1.*
1.0
1.1
1.2
CVE-2021-30218 - OSV