CVE-2022-24795
CVE-2022-24795 · Buffer Overflow and Integer Overflow in yajl-ruby
Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.
Diese Seite zeigt ausgewählte Angaben aus den Quellen. Die vollständige Beschreibung und betroffene Versionen finden Sie in den verlinkten Sicherheitshinweisen.
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.
CVSS 5.9 · Mittel · EPSS 3,5% · Korrektur verfügbar
- Veröffentlicht
- Aktualisiert
Technologie-Stack: system
Betroffene Produkte und Versionen
yajl-ruby
- Softwareversionen
- <= 1.4.1: Betroffen
Keine Korrektur veröffentlicht
burp Debian:12
- Softwareversionen
- 3.1.4-1
- 3.1.4-3
- 3.1.4-3.1
- 3.1.4-4
- 3.1.4-5
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
burp Debian:13
- Betroffene Versionsbereiche
- ECOSYSTEM: < 3.1.4-2
Auf 3.1.4-2 aktualisieren
r-cran-jsonlite Debian:12
- Softwareversionen
- 1.8.4+dfsg-1
- 1.8.5+dfsg-1
- 1.8.7+dfsg-1
- 1.8.8+dfsg-1
- 1.8.9+dfsg-1
- 1.9.1+dfsg-1
- 2.0.0+dfsg-1
- 2.0.0+dfsg-2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
r-cran-jsonlite Debian:13
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.8.8+dfsg-1
Auf 1.8.8+dfsg-1 aktualisieren
r-cran-jsonlite Debian:14
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.8.8+dfsg-1
Auf 1.8.8+dfsg-1 aktualisieren
ruby-yajl Debian:12
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.4.3-1
Auf 1.4.3-1 aktualisieren
ruby-yajl Debian:13
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.4.3-1
Auf 1.4.3-1 aktualisieren
ruby-yajl Debian:14
- Betroffene Versionsbereiche
- ECOSYSTEM: < 1.4.3-1
Auf 1.4.3-1 aktualisieren
yajl Debian:12
- Softwareversionen
- 2.1.0-3
- 2.1.0-3+deb12u1
- Betroffene Versionsbereiche
- ECOSYSTEM: < 2.1.0-3+deb12u2
Auf 2.1.0-3+deb12u2 aktualisieren
yajl Debian:13
- Betroffene Versionsbereiche
- ECOSYSTEM: < 2.1.0-4
Auf 2.1.0-4 aktualisieren
yajl Debian:14
- Betroffene Versionsbereiche
- ECOSYSTEM: < 2.1.0-4
Auf 2.1.0-4 aktualisieren
yajl Ubuntu:Pro:14.04:LTS
- Softwareversionen
- 2.0.4-4
- Betroffene Versionsbereiche
- ECOSYSTEM: < 2.0.4-4ubuntu0.1~esm1
Auf 2.0.4-4ubuntu0.1~esm1 aktualisieren
yajl Ubuntu:Pro:16.04:LTS
- Softwareversionen
- 2.1.0-2
- Betroffene Versionsbereiche
- ECOSYSTEM: < 2.1.0-2ubuntu0.16.04.1~esm1
Auf 2.1.0-2ubuntu0.16.04.1~esm1 aktualisieren
argyll Ubuntu:16.04:LTS
- Softwareversionen
- 1.7.0+repack-4
- 1.8.2+repack-1
- 1.8.3+repack-1
- 1.8.3+repack-2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
burp Ubuntu:16.04:LTS
- Softwareversionen
- 1.3.48-4.1
- 1.3.48-4.1build1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
collada2gltf Ubuntu:16.04:LTS
- Softwareversionen
- 20140924-3
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
icinga2 Ubuntu:16.04:LTS
- Softwareversionen
- 2.3.8-1build1
- 2.3.11-1
- 2.4.0-1
- 2.4.1-1
- 2.4.1-2
- 2.4.1-2ubuntu1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
libbson Ubuntu:Pro:16.04:LTS
- Softwareversionen
- 1.3.1-1
- 1.3.1-1ubuntu0.1~esm1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
lnav Ubuntu:16.04:LTS
- Softwareversionen
- 0.7.0-3build1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
php-mongodb Ubuntu:16.04:LTS
- Softwareversionen
- 1.1.2-2~ubuntu1
- 1.1.5-1~build1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
r-cran-jsonlite Ubuntu:16.04:LTS
- Softwareversionen
- 0.9.19-1
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
ruby-yajl Ubuntu:16.04:LTS
- Softwareversionen
- 1.2.0-3build1
- 1.2.0-3build2
- 1.2.0-3build3
- 1.2.0-3build4
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
tulip Ubuntu:16.04:LTS
- Softwareversionen
- 4.7.0dfsg-1ubuntu1
- 4.7.0dfsg-1ubuntu2
- 4.7.0dfsg-2ubuntu1
- 4.7.0dfsg-2ubuntu2
- 4.8.0dfsg-1
- 4.8.0dfsg-1build1
- 4.8.0dfsg-2
- 4.8.0dfsg-2build1
- 4.8.0dfsg-2build2
- Betroffene Versionsbereiche
- ECOSYSTEM: (−∞, +∞)
Keine Korrektur veröffentlicht
Originalquellen
- https://github.com/brianmario/yajl-ruby/security/advisories/GHSA-jj47-x69x-mxrm
- https://github.com/brianmario/yajl-ruby/commit/7168bd79b888900aa94523301126f968a93eb3a6
- https://github.com/brianmario/yajl-ruby/blob/7168bd79b888900aa94523301126f968a93eb3a6/ext/yajl/yajl_buf.c#L64
- https://lists.debian.org/debian-lts-announce/2023/07/msg00013.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KLE3C4CECEJ4EUYI56KXI6OWACWXX7WN/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YO32YDJ74DADC7CMJNLSLBVWN5EXGF5J/
- https://lists.debian.org/debian-lts-announce/2023/08/msg00003.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-24795