Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-24795

published medium CVSS 3.1 · 5.9

Buffer Overflow and Integer Overflow in yajl-ruby

Published
05 Apr 2022, 00:00:00 UTC
Updated
22 Apr 2025, 18:17:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

26

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.

Affected vendor and product assertions
VendorProductVersion statusSource
brianmario yajl-ruby <= 1.4.1 (affected) GitHub_M · cna

Weaknesses

2
  • CWE-122 CWE-122: Heap-based Buffer Overflow (GitHub_M · cna)
  • CWE-190 CWE-190: Integer Overflow or Wraparound (GitHub_M · cna)

References

7

Provider assertions

3

GitHub_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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected