Skip to content

Fix CVE's for caikit-nlp#439

Open
rpancham wants to merge 1 commit into
caikit:mainfrom
rpancham:caikit_cve
Open

Fix CVE's for caikit-nlp#439
rpancham wants to merge 1 commit into
caikit:mainfrom
rpancham:caikit_cve

Conversation

@rpancham
Copy link
Copy Markdown

Signed-off-by: rpancham <rpancham@redhat.com>
Copy link
Copy Markdown

@edwardquarm edwardquarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Copy Markdown
Contributor

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd like to keep support for older torch versions possible while also removing the upper bound. Assuming tests pass with the latest torch, this should be merge ready once we restore the known-working lower bound of 2.3.1.

Comment thread pyproject.toml
"sentence-transformers>=3.4.0,<3.5.0",
"tokenizers>=0.20.0",
"torch>=2.3.1,<2.9.0",
"torch>=2.8.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, we try to avoid requiring a lower bound like this since it disallows users that are stuck on older versions for one reason or another. I think the correct thing to do here is to simply remove the upper bound:

Suggested change
"torch>=2.8.0",
"torch>=2.3.1",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rpancham @gabe-l-hart is this change actually needed, or do we just need to explicitly build an image somewhere with torch 2.8?

I followed the CVEs, and it seems to be patched in 2.8+, but that should already be compatible with things as they are, right?
GHSA-887c-mr87-cxwp
GHSA-3749-ghw9-m3mg

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per my understanding, the CVE fix for PyTorch (GHSA-887c-mr87-cxwp) is included in torch 2.8.0+, so ensuring our image/tests use a patched version is sufficient from a security perspective. Because of that, we don’t need to keep the upper bound in pyproject.toml.

If the goal is to maintain compatibility with older torch versions, I can update the dependency to:

"torch>=2.3.1",

and remove the upper bound as suggested.
Please let me know if you'd like me to make this change — I can update the PR and sign off accordingly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let's go ahead and simply remove the upper bound. If CI passes, this will be a good additional piece of flexibility for users and will enable forward-compatible CVE fixes.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rpancham Have you had a chance to circle back on this change?

@rpancham rpancham closed this Nov 19, 2025
@rpancham rpancham reopened this Nov 19, 2025
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.

6 participants