ADVISORIES

Vulnerability

CVE-2022-24795

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.

27 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2-2023-2101

    Amazon Linux 2 2017.12 - ALAS2-2023-2101: medium priority package update for yajl

    Medium CVE-2022-24795 Amazon Linux Updated 29 June 2023
  • ALAS2023-2023-263

    Amazon Linux 2023 - ALAS2023-2023-263: Medium priority package update for yajl

    Medium CVE-2022-24795 Amazon Linux Updated 20 July 2023
  • ALSA-2022:7524

    Moderate: yajl security update

    CVE-2022-24795 AlmaLinux Updated 29 October 2026
  • ALSA-2022:8252

    Moderate: yajl security update

    CVE-2022-24795 AlmaLinux Updated 29 October 2026
  • AZL-10552

    CVE-2022-24795 affecting package rubygem-yajl-ruby for versions less than 1.3.1-2

    CVE-2022-24795 Azure Linux Updated 21 April 2026
  • AZL-35233

    CVE-2022-24795 affecting package rubygem-yajl-ruby for versions less than 1.4.3-1

    CVE-2022-24795 Azure Linux Updated 21 April 2026
  • DEBIAN-CVE-2022-24795

    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…

    CVE-2022-24795 Debian Updated 20 November 2026
  • DLA-3492-1

    yajl - security update

    CVE-2017-16516CVE-2022-24795CVE-2023-33460 Debian Updated 20 November 2026
  • DLA-3516-1

    burp - security update

    CVE-2017-16516CVE-2022-24795 Debian Updated 20 November 2026
  • ELSA-2022-7524

    ELSA-2022-7524: yajl security update (MODERATE)

    Moderate CVE-2022-24795 Oracle Linux Updated 15 November 2022
  • ELSA-2022-8252

    ELSA-2022-8252: yajl security update (MODERATE)

    Moderate CVE-2022-24795 Oracle Linux Updated 22 November 2022
  • GHSA-jj47-x69x-mxrm

    Buffer Overflow in yajl-ruby

    Moderate CVE-2022-24795 RubyGems Updated 16 February 2024
  • OESA-2022-1752

    rubygem-yajl-ruby security update

    High CVE-2022-24795 openEuler Updated 18 August 2026
  • OESA-2022-1912

    yajl security update

    High CVE-2022-24795 openEuler Updated 18 August 2026
  • RHSA-2022:7524

    Red Hat Security Advisory: yajl security update

    CVE-2022-24795 Red Hat Updated 23 November 2026
  • RHSA-2022:8252

    Red Hat Security Advisory: yajl security update

    CVE-2022-24795 Red Hat Updated 23 November 2026
  • RHSA-2024:2063

    Red Hat Security Advisory: yajl security update

    CVE-2022-24795CVE-2023-33460 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2022-24795

    yajl: heap-based buffer overflow when handling large inputs due to an integer overflow

    Moderate CVE-2022-24795 Red Hat Updated 23 November 2026
  • RLSA-2022:7524

    Moderate: yajl security update

    CVE-2022-24795 Rocky Linux Updated 5 February 2026
  • RLSA-2022:8252

    Moderate: yajl security update

    CVE-2022-24795 Rocky Linux Updated 4 February 2026
  • SUSE-SU-2022:1746-1

    Security update for libyajl

    CVE-2022-24795 SUSE Updated 4 February 2026
  • SUSE-SU-2022:1918-1

    Security update for rubygem-yajl-ruby

    CVE-2022-24795 SUSE Updated 4 February 2026
  • SUSE-SU-2022:3162-1

    Security update for libyajl

    CVE-2022-24795 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2022-24795

    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…

    Moderate CVE-2022-24795 SUSE Updated 17 October 2026
  • UBUNTU-CVE-2022-24795

    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…

    CVE-2022-24795 Ubuntu Updated 17 October 2026
  • USN-6233-1

    yajl vulnerabilities

    CVE-2017-16516CVE-2022-24795CVE-2023-33460 Ubuntu Updated 29 June 2026
  • USN-6233-2

    yajl vulnerabilities

    CVE-2017-16516CVE-2022-24795CVE-2023-33460 Ubuntu Updated 27 April 2026

References