Skip to content

Conversation

npt-1707
Copy link

Hi Development Team,

I identified a potential integer overflow in clone functions in files in extern/libtommath sourced from libtom/libtommath. This issue, originally reported in CVE-2023-36328, was resolved in the repository via this commit libtom/libtommath@beba892.

This PR applies the corresponding patch to fix the vulnerability in this codebase.

Please review at your convenience. Thank you!

@AlexPeshkoff AlexPeshkoff self-assigned this May 22, 2025
@dyemanov
Copy link
Member

dyemanov commented Oct 6, 2025

@AlexPeshkoff should it be merged or were there any reasons to postpone it?

@AlexPeshkoff
Copy link
Member

@AlexPeshkoff should it be merged or were there any reasons to postpone it?

The only reason not to merge - our code never calls tommath functions in wrong way like negative number of digits. On the other hand - changes are absolutely safe. What do you think - do we need such fix, or may be just switch to fresh tommath version?

@dyemanov
Copy link
Member

dyemanov commented Oct 7, 2025

For v6, I suppose we may just update our libtom-imported sources. If this needs to be backported, the suggested patch is preferred -- although I doubt this is necessary given that our usage of the library is not affected by this CVE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants