{"id":"UBUNTU-CVE-2021-42836","details":"GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.","modified":"2026-05-20T16:05:16.527727151Z","published":"2021-10-22T18:15:00Z","upstream":["CVE-2021-42836"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-42836"},{"type":"REPORT","url":"https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944"},{"type":"REPORT","url":"https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96"},{"type":"REPORT","url":"https://github.com/tidwall/gjson/issues/236"},{"type":"REPORT","url":"https://github.com/tidwall/gjson/issues/237"},{"type":"REPORT","url":"https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-42836"}],"affected":[{"package":{"name":"golang-github-tidwall-gjson","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/golang-github-tidwall-gjson?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.5-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.5-2","binary_name":"golang-github-tidwall-gjson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42836.json"}},{"package":{"name":"golang-github-tidwall-gjson","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-tidwall-gjson?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.7-1","binary_name":"golang-github-tidwall-gjson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42836.json"}},{"package":{"name":"golang-github-tidwall-gjson","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-tidwall-gjson?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.14.4-2","1.17.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.17.1-1","binary_name":"golang-github-tidwall-gjson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42836.json"}},{"package":{"name":"golang-github-tidwall-gjson","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-tidwall-gjson?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.17.1-1","binary_name":"golang-github-tidwall-gjson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42836.json"}},{"package":{"name":"golang-github-tidwall-gjson","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-tidwall-gjson?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.1-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.17.1-1","binary_name":"golang-github-tidwall-gjson-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42836.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}