Skip to content
Heist/ feed
Back to feed
Medium

Arbitrary File Overwrite

Type: advisorySources: OSV

The application implements an up- and downvote function which alters a value within a JSON file. The POST parameters are not filtered properly and therefore an arbitrary file can be overwritten. The file can be controlled by an authenticated attacker, the content cannot be controlled. It is possible to overwrite all files for which the webserver has write access. It is required to supply a relative path (path traversal).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-25975
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 22:14 UTC · Revision 1

Source evidence

Arbitrary File Overwrite

core-osv · Original source

Published 29 May 2024, 13:13 UTC

The application implements an up- and downvote function which alters a value within a JSON file. The POST parameters are not filtered properly and therefore an arbitrary file can be overwritten. The file can be controlled by an authenticated attacker, the content cannot be controlled. It is possible to overwrite all files for which the webserver has write access. It is required to supply a relative path (path traversal).

osv:CVE-2024-25975
Complete source record
{
  "id": "d44d9d9dd0c476e4b3ae47b748152514da08e044f0564824c775f5a3678ec129",
  "url": "https://osv.dev/vulnerability/CVE-2024-25975",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Arbitrary File Overwrite",
    "summary": "The application implements an up- and downvote function which alters a value within a JSON file. The POST parameters are not filtered properly and therefore an arbitrary file can be overwritten. The file can be controlled by an authenticated attacker, the content cannot be controlled. It is possible to overwrite all files for which the webserver has write access. It is required to supply a relative path (path traversal).",
    "evidence": "osv:CVE-2024-25975",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-25975",
      "aliases": [
        "CVE-2024-25975"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/hawk-digital-environments/hawki",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "146967f"
                },
                {
                  "fixed": "146967f3148e92d1640ffebc21d8914e2d7fb3f1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "146967f"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "VersionTextExtraction"
                  },
                  {
                    "range": [
                      {
                        "fixed": "146967f3148e92d1640ffebc21d8914e2d7fb3f1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.0.0-beta.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-25975.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.923903353Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25975.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-25975",
        "https://r.sec-consult.com/hawki",
        "https://github.com/HAWK-Digital-Environments/HAWKI/commit/146967f3148e92d1640ffebc21d8914e2d7fb3f1",
        "https://github.com/HAWK-Digital-Environments/HAWKI"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-73"
        ],
        "cna_assigner": "SEC-VLab",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25975.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-25975",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507521,
  "published_at": "2024-05-29T13:13:14.625+00:00"
}