중간취약점
Open WebUI Vulnerable to Unauthenticated RAG Configuration Disclosure
GHSA-65pg-qhhw-mxwg · CVE-2026-45397 · PYSEC-2026-2706 · 갱신 2026. 7. 14.
영향 받는 패키지
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | open-webui | 0.9.5 |
GHSA-65pg-qhhw-mxwg · CVE-2026-45397 · PYSEC-2026-2706 · 갱신 2026. 7. 14.
| 생태계 | 패키지 | 수정 버전 |
|---|---|---|
| PyPI | open-webui | 0.9.5 |
Compare with every adjacent endpoint on the same router:
@router.get('/embedding')
async def get_embedding_config(request: Request, user=Depends(get_admin_user)): # ✅
@router.get('/config')
async def get_rag_config(request: Request, user=Depends(get_admin_user)): # ✅
curl -s http://TARGET/api/v1/retrieval/
{
"status": true,
"CHUNK_SIZE": 1000,
"CHUNK_OVERLAP": 100,
"RAG_TEMPLATE": "### Task:\nRespond to the user query using the provided context...\n<context>\n{{CONTEXT}}\n</context>",
"RAG_EMBEDDING_ENGINE": "",
"RAG_EMBEDDING_MODEL": "sentence-transformers/all-MiniLM-L6-v2",
"RAG_RERANKING_MODEL": "",
"RAG_EMBEDDING_BATCH_SIZE": 1,
"ENABLE_ASYNC_EMBEDDING": true,
"RAG_EMBEDDING_CONCURRENT_REQUESTS": 0
}
| Field | What it reveals |
|---|---|
RAG_EMBEDDING_ENGINE | Backend type (OpenAI, Ollama, Azure, etc.) |
RAG_EMBEDDING_MODEL | Exact model name — reveals embedding model |
RAG_RERANKING_MODEL | Reranker in use — reveals reranker |
RAG_TEMPLATE | RAG template — exposes the RAG template |
CHUNK_SIZE / CHUNK_OVERLAP | Chunking parameters — enables exact reconstruction of how documents are split and retrieved |
/api/v1/retrieval/.Add get_verified_user dependency (or get_admin_user for stricter control):
# BEFORE (vulnerable)
@router.get('/')
async def get_status(request: Request):
# AFTER
@router.get('/')
async def get_status(request: Request, user=Depends(get_verified_user)):