CVE-2022-24795
published medium CVSS 3.1 · 5.9Buffer Overflow and Integer Overflow in yajl-ruby
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| brianmario | — | yajl-ruby<= 1.4.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2101 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-263 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | yajl | Advisory build | 2.1.0-11.el8 | ALSA-2022:7524 |
| Debian | buster | burp | Advisory build | 2.1.32-2+deb10u1 | DLA-3516-1 |
| Oracle Linux | 8 | yajlaarch64 | Advisory build | 0:2.1.0-11.el8 | ELSA-2022-7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajlaarch64 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-develaarch64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 8 | yajl-devel | Advisory build | 2.1.0-11.el8 | ALSA-2022:7524 |
| AlmaLinux | 9 | yajl | Advisory build | 2.1.0-21.el9 | ALSA-2022:8252 |
| AlmaLinux | 9 | yajl-devel | Advisory build | 2.1.0-21.el9 | ALSA-2022:8252 |
| Debian | buster | yajl | Advisory build | 2.1.0-3+deb10u2 | DLA-3492-1 |
| Oracle Linux | 8 | yajlx86_64 | Advisory build | 0:2.1.0-11.el8 | ELSA-2022-7524 |
| Oracle Linux | 8 | yajl-develaarch64 | Advisory build | 0:2.1.0-11.el8 | ELSA-2022-7524 |
| Oracle Linux | 8 | yajl-develx86_64 | Advisory build | 0:2.1.0-11.el8 | ELSA-2022-7524 |
| Oracle Linux | 9 | yajlaarch64 | Advisory build | 0:2.1.0-21.el9 | ELSA-2022-8252 |
| Oracle Linux | 9 | yajlx86_64 | Advisory build | 0:2.1.0-21.el9 | ELSA-2022-8252 |
| Oracle Linux | 9 | yajl-develaarch64 | Advisory build | 0:2.1.0-21.el9 | ELSA-2022-8252 |
| Oracle Linux | 9 | yajl-develx86_64 | Advisory build | 0:2.1.0-21.el9 | ELSA-2022-8252 |
| Red Hat Enterprise Linux | RHEL-8 | yajlaarch64 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajli686 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajli686 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajlppc64le | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajlppc64le | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajls390x | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajls390x | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajlsrc | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajlsrc | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajlx86_64 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajlx86_64 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfoaarch64 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfoaarch64 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfoi686 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfoi686 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfoppc64le | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfoppc64le | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfos390x | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfos390x | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfox86_64 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debuginfox86_64 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourceaarch64 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourceaarch64 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourcei686 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourcei686 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourceppc64le | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourceppc64le | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsources390x | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsources390x | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourcex86_64 | Advisory build | 2.1.0-11.el8 | RHSA-2022:7524 |
| Red Hat Enterprise Linux | RHEL-8 | yajl-debugsourcex86_64 | Advisory build | 2.1.0-13.el8_6 | RHSA-2024:2063 |
| Red Hat Enterprise Linux | RHEL-9 | yajlaarch64 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajli686 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajlppc64le | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajls390x | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajlsrc | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajlx86_64 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debuginfoaarch64 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debuginfoi686 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debuginfoppc64le | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debuginfos390x | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debuginfox86_64 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debugsourceaarch64 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debugsourcei686 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debugsourceppc64le | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debugsources390x | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| Red Hat Enterprise Linux | RHEL-9 | yajl-debugsourcex86_64 | Advisory build | 2.1.0-21.el9 | RHSA-2022:8252 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-develppc64le | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-devels390x | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-develx86_64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-devel-staticaarch64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-devel-staticppc64le | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-devel-statics390x | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl-devel-staticx86_64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl2aarch64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl2ppc64le | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl2s390x | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl2x86_64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl2-32bits390x | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-12-SP5 | libyajl2-32bitx86_64 | Advisory build | 2.0.1-18.7.1 | SUSE-SU-2022:1746-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl-develaarch64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl-develppc64le | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl-devels390x | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl-develx86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl2aarch64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl2ppc64le | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl2s390x | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP3 | libyajl2x86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl-develaarch64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl-develppc64le | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl-devels390x | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl-develx86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl2aarch64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl2ppc64le | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl2s390x | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-15-SP4 | libyajl2x86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-5 | libyajl2aarch64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-5 | libyajl2s390x | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | SLE-5 | libyajl2x86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libyajl-develaarch64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libyajl-develppc64le | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libyajl-devels390x | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libyajl-develx86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | libyajl-devel-32bitx86_64 | Advisory build | 2.1.0-150000.4.3.1 | SUSE-SU-2022:3162-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
yajl-ruby is a C binding to the YAJL JSON parsing and generation library. The 1.x branch and the 2.x branch of `yajl` contain an integer overflow which leads to subsequent heap memory corruption when dealing with large (~2GB) inputs. The reallocation logic at `yajl_buf.c#L64` may result in the `need` 32bit integer wrapping to 0 when `need` approaches a value of 0x80000000 (i.e. ~2GB of data), which results in a reallocation of buf->alloc into a small heap chunk. These integers are declared as `size_t` in the 2.x branch of `yajl`, which practically prevents the issue from triggering on 64bit platforms, however this does not preclude this issue triggering on 32bit builds on which `size_t` is a 32bit integer. Subsequent population of this under-allocated heap chunk is based on the original buffer size, leading to heap memory corruption. This vulnerability mostly impacts process availability. Maintainers believe exploitation for arbitrary code execution is unlikely. A patch is available and anticipated to be part of yajl-ruby version 1.4.2. As a workaround, avoid passing large inputs to YAJL.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| brianmario | yajl-ruby | <= 1.4.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-122 CWE-122: Heap-based Buffer Overflow
- CWE-190 CWE-190: Integer Overflow or Wraparound
References
7- https://github.com/brianmario/yajl-ruby/blob/7168bd79b888900aa94523301126f968a93eb3a6/ext/yajl/yajl_buf.c#L64
- https://github.com/brianmario/yajl-ruby/commit/7168bd79b888900aa94523301126f968a93eb3a6
- https://github.com/brianmario/yajl-ruby/security/advisories/GHSA-jj47-x69x-mxrm
- [debian-lts-announce] 20230711 [SECURITY] [DLA 3492-1] yajl security update https://lists.debian.org/debian-lts-announce/2023/07/msg00013.html
- [debian-lts-announce] 20230805 [SECURITY] [DLA 3516-1] burp security update https://lists.debian.org/debian-lts-announce/2023/08/msg00003.html
- FEDORA-2023-00572178e1 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KLE3C4CECEJ4EUYI56KXI6OWACWXX7WN/
- FEDORA-2023-852b377773 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YO32YDJ74DADC7CMJNLSLBVWN5EXGF5J/
Provider assertions
3GitHub_M · cna
Buffer Overflow and Integer Overflow in yajl-ruby
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8a27c1ca53f2f6e73aa6ece795d47e59725ab7fa439927f2f66845f99d6c43b8
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record