Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
Python->Rust: Bedrock transcription temperature inserted verbatim into inferenceConfig with no boundary validation
Low-severity issue, currently open.
How well is this finding proven?
- 1.Reported / candidate
Complete
- 2.Reproducer written
Complete
View reproducer - 3.Reproduces (recorded run)
Not yet established
- 4.Independently re-run
Not yet established
- 5.Meets quality standard
Not assessed
- 6.Validated for submission
Not assessed
Recorded runs show whether the issue reproduces. Independent re-runs are shown separately. A later review does not fill in a missing earlier step.
Description
The issue as recorded.
crates/core/src/providers/bedrock/audio_transcription.rs transform_transcription_request (lines 130-132) inserts the caller temperature verbatim into inferenceConfig via inference_config.insert("temperature", temperature.clone()) with NO validation at the transform boundary: any JSON type (string, bool, array, object) and any out-of-range number passes straight through into the Bedrock converse request body. There is no numeric/range coercion or type check the way a validated boundary would apply. Same untested-branch class as the sibling bedrock findings (the only request test exercises temperature=0). AUDIT-ONLY: no code changed.
Evidence disposition: this documents behavior in the Rust target (litellm-rust/crates/, outside the Python verification_scope in proof.yaml), established by the static read recorded in reproducer_command. Per the AUDIT-ONLY task scope (KI-files only) no Rust test was added, so there is no bound in-repo tripwire and no runnable evidence row; recorded as honest tracked debt below the runnable-reproducer floor. Fabricating an evidence hash would be dishonest.
Affected requirements
The requirement(s) this issue violates — click through to the spec.
Severity, explained
Why this is rated the way it is — and the scoring signals behind the rating (each ⓘ explains the term).
- why this rating
- Risk-rated
- risk area
- Correctness
- CVE surface
- None
Where it is
The code the issue lives in — peek the affected function inline to see it in context.
- BedrockAudioTranscriptionConfig::transform_transcription_request (Rust)
Reproduction steps
Technical steps for your engineers to confirm the issue by hand.
read crates/core/src/providers/bedrock/audio_transcription.rs:130-132 (temperature.clone() inserted into inferenceConfig with no type/range validation)
What protects you, and the fix
What limits your exposure today, and the planned remediation.
What protects you now
Bedrock upstream ultimately rejects grossly-malformed inferenceConfig, but the transform boundary performs no local validation.
The fix
Validate/coerce temperature (numeric + range) at the transform boundary before inserting into inferenceConfig. AUDIT finding only, no code changed here.
Blast radius
If you touch this issue, what else may need re-checking — the requirements it affects and the code and tests that hang off them. Historical view: authored trace links only — automatically derived links aren't reconstructible for past runs.
No authoredcode links reach these requirements in this historical reconstruction. Automatically derived code links aren't reconstructible for past runs, so implementing code may have existed without an authored trace.
Change history
Every recorded revision of this finding's source file — when it was added, edited, or re-classified, with the diff for each change.
Discussions
Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.