CVE-2022-24795
A public proof of concept exists; no exploitation attested.
- Published2022-04-05
- Fixed in1.4.3
- WeaknessCWE-122 · CWE-190
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2022-04-0516:15CVE publishedNVD
Versions per branch
OSV · NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.4 | < 1.4.3 | 1.4.3 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.4 | < 1.4.2 | 1.4.2 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- brianmario yajl-rubyAffected
- = <= 1.4.1no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2023-08-05
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- burpUbuntu:Pro:22.04:LTSall versions · fixed in 2.4.0-3ubuntu1+esm1
- burpUbuntu:Pro:20.04:LTSall versions · fixed in 2.2.18-2ubuntu0.1~esm1
- burpUbuntu:Pro:18.04:LTSall versions · fixed in 2.0.54-4ubuntu0.1~esm1
- burpUbuntu:25.10all versions · no fixed version listedand 7 other packages
- burpDebian:13all versions · fixed in 3.1.4-2
- burpDebian:12all versions · no fixed version listedand 1 other package
- burpDebian:10all versions · fixed in 2.1.32-2+deb10u1
- libbsonUbuntu:Pro:18.04:LTSall versions · no fixed version listed
55 more package ranges on OSV.dev
Vendor advisories
yajl: heap-based buffer overflow when handling large inputs due to an integer overflow
yajl-devel as a component of Red Hat Enterprise Linux 6 · yajl.src as a component of Red Hat Enterprise Linux 6 · yajl-devel as a component of Red Hat Enterprise Linux 7 · +10 more
Red Hat Security Advisory: yajl security update
Red Hat Security Advisory: yajl security update
Red Hat Security Advisory: yajl security update
Fix
- Update yajl-ruby to 1.4.3
- Vendor fix Red Hat Product Security RHSA-2024:2063 · 31 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Workaround from the vendor Red Hat Product Security RHSA-2024:2063 · 31 productsAvoid passing large inputs to the YAJL library.
- No fix available, says the vendor Red Hat Product Security CVE-2022-24795 · 3 productsAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2022-24795 · 7 productsOut of support scope
- No fix planned, says the vendor Red Hat Product Security CVE-2022-24795 · 3 productsWill not fix
Advisories and patches
- github.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-04-22
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-04-22
- CNACVSS 3.15.9known since 2026-10-23
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- CNAweakness (CWE)CWE-122, CWE-190known since 2026-10-23
- FIRST EPSSEPSS score3.4 %2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2022-04-05
Identifiers
- AZL-10552same flawAzure Linux · MIT
- AZL-35233same flawAzure Linux · MIT
- EUVD-2022-1773same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-jj47-x69x-mxrmsame flawGitHub Advisory Database · CC-BY-4.0
- ALSA-2022:7524advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:8252advisory covering several CVEsAlmaLinux · MIT
- DLA-3492-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3516-1advisory covering several CVEsDebian · LicenseRef-unstated
- OESA-2022-1752advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2022-1912advisory covering several CVEsopenEuler · LicenseRef-unstated
- RHSA-2022:7524advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:8252advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2024:2063advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:7524advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:8252advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:1746-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:1918-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:3162-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-6233-1advisory covering several CVEsUbuntu
- USN-6233-2advisory covering several CVEsUbuntu
- USN-9304-1advisory covering several CVEsUbuntu
- USN-9397-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2022-04-05
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-jj47-x69x-mxrm
Frequently asked questions
What is CVE-2022-24795?
Is CVE-2022-24795 actively exploited?
What is the CVSS score for CVE-2022-24795?
Running yajl-ruby? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-jj47-x69x-mxrm
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0