Skip to content

🚨 [security] [src/api - 2.10] Update yajl-ruby 1.4.2 → 1.4.3 (patch)#19524

Open
depfu[bot] wants to merge 1 commit into2.10from
depfu/update/srcapi-2.10/yajl-ruby-1.4.3
Open

🚨 [security] [src/api - 2.10] Update yajl-ruby 1.4.2 → 1.4.3 (patch)#19524
depfu[bot] wants to merge 1 commit into2.10from
depfu/update/srcapi-2.10/yajl-ruby-1.4.3

Conversation

@depfu
Copy link
Copy Markdown
Contributor

@depfu depfu bot commented Apr 3, 2026


🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ yajl-ruby (1.4.2 → 1.4.3) · Repo · Changelog

Security Advisories 🚨

🚨 Buffer Overflow in yajl-ruby

NOTE: A previous patch, 1.4.2, fixed the heap memory issue, but could still lead to a DoS infinite loop. Please update to version 1.4.3

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.

Details

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.

Impact

We rate this as a moderate severity vulnerability which mostly impacts process availability as we believe exploitation for arbitrary code execution to be unlikely.

Patches

Patched in yajl-ruby 1.4.3

Workarounds

Avoid passing large inputs to YAJL

References

    <tbody>
while (want >= (need - buf->used)) need <<= 1;

For more information

If you have any questions or comments about this advisory:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added 2.10 depfu PRs from our dependency update bot or related to them security Pull requests that address a security vulnerability labels Apr 3, 2026
@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.10 depfu PRs from our dependency update bot or related to them Frontend Things related to the OBS RoR app security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants