Skip to main content

sharewarez CVE-2025-61136

HIGH
Code Injection (CWE-94)
2025-10-23 cve@mitre.org
7.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit password reset with spoofed Host header
  2. Delivery
    Server builds reset link from attacker host
  3. Exploit
    Victim clicks poisoned link in email
  4. Execution
    Reset token delivered to attacker
  5. Impact
    Attacker resets password and takes over account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a sharewarez v2.4.3 deployment whose Flask configuration does NOT set a fixed SERVER_NAME, so that the password-reset route's url_for(_external=True) call derives the link host from the incoming request's Host header - this is the default-vulnerable condition described. The attacker must be able to initiate a password reset for a target account (knowing the victim's registered identifier/email) and must control or spoof the Host header reaching the application. The principal limiting factor is victim interaction: the attack only succeeds if the targeted user opens the reset email and clicks the poisoned link so the token is transmitted to the attacker-controlled host; it is further limited where a reverse proxy or the deployment pins SERVER_NAME / validates the Host header, which neutralizes the link-rewriting.

Impact

Signals point to a genuine but non-urgent, low-exposure issue. The input CVSS of 7.1 (High) is internally inconsistent with the described flaw: the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H asserts no confidentiality impact (C:N) and high availability impact (A:H), yet the described outcome is password-reset poisoning leading to account takeover - which is fundamentally a confidentiality/integrity compromise with no plausible availability effect. This mismatch suggests the published metrics were not derived from the actual mechanism (see assessed_cvss_vector for an independent scoring). EPSS is low at 0.45% (39th percentile), the CVE is NOT in CISA KEV, and the vuln.today decision label is 'this_week' rather than act_now/emergency - all consistent with a real-but-not-actively-exploited finding. The deciding factor against treating this as a top priority is deployment footprint: axewater/sharewarez is an obscure open-source project, so real-world risk is limited regardless of the High label. The mitigating practical constraint is that classic password-reset poisoning requires the victim to click the attacker-poisoned link, which the published PR:L/UI:N vector does not capture.

Exploit ScenarioDerived

An attacker submits a password-reset request for a victim's account while supplying a malicious Host header; because sharewarez calls Flask's url_for(_external=True) with no fixed SERVER_NAME, the generated reset link embeds the attacker-controlled host. The victim receives the reset email and, on clicking the link, sends the valid reset token to the attacker's server, enabling the attacker to complete the reset and take over the account. A public PoC reference exists (a GitHub gist and a Google Drive write-up); it is not verified as working exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 05, 2026

Password reset poisoning in axewater sharewarez v2.4.3 allows a remote attacker to rewrite the host used in emailed reset links, so a victim's reset token is delivered to an attacker-controlled domain and can then be redeemed for account takeover. The flaw is reachable unauthenticated in the assessed vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N), but success depends on the victim opening the email and clicking the poisoned link, and only manifests on deployments that leave Flask's SERVER_NAME unset - the default described in the advisory. Exposure signal is modest: EPSS is 0.45% (39th percentile), there is no CISA KEV listing, and the supplied references - a gist and a hosted file - appear to be proof-of-concept/write-up material that is not verified as working exploit code; the upstream project has not published a fixed version in the provided data.

RemediationAI

No vendor-released patch or fixed version is identified in the available data, so remediation is configuration-based. Set a fixed SERVER_NAME in the Flask configuration (or otherwise generate reset links from a hardcoded, trusted base URL instead of url_for(_external=True)) - the trade-off is that SERVER_NAME pins a single canonical host and will break URL generation for any legitimate multi-domain, multi-tenant or alternate-port deployment, which then needs per-environment overrides. In parallel, enforce a Host header allowlist at the reverse proxy and reject or normalize requests bearing unknown Host values before they reach the app; this closes the injection path even on unpatched code, but requires maintenance of the allowlist as hostnames change and can break health checks or internal service-to-service calls that use IP-based Host values. Validate the Host header within the application as defense in depth, and consider binding reset tokens to the requesting session or requiring re-authentication on redemption, which reduces but does not eliminate the value of a leaked token. Until a fix is published, monitor reset-email logs for links whose host does not match the canonical domain, and advise users to verify the link host before clicking. Track the vendor project at https://github.com/axewater/sharewarez for a patched release; the code references at https://github.com/axewater/sharewarez/blob/d04c90b7dc3fbae1596f731d1b168d3fb9fdd2df/modules/routes_login.py#L188-L217 and https://github.com/axewater/sharewarez/blob/d04c90b7dc3fbae1596f731d1b168d3fb9fdd2df/modules/utils_smtp.py#L191-L206 identify the exact functions to amend, and the exploitation pattern is described at https://portswigger.net/web-security/host-header/exploiting/password-reset-poisoning.

Affected ProductsAI

axewater sharewarez v2.4.3 is the affected release; the vulnerable logic is in modules/routes_login.py lines 188-217 (password reset route) and modules/utils_smtp.py lines 191-206 (mail/token delivery), referenced at commit d04c90b7dc3fbae1596f731d1b168d3fb9fdd2df. The condition is deployment-dependent: instances are exposed when Flask configuration leaves SERVER_NAME unset and no front-end proxy validates or rewrites the Host header; deployments pinning SERVER_NAME or enforcing a Host allowlist at the proxy are not affected by the link-rewriting. No CPE identifiers were supplied with this record, and no fixed release version is listed in the available data. Background on the exploitation pattern is at https://portswigger.net/web-security/host-header/exploiting/password-reset-poisoning, with the code references at https://github.com/axewater/sharewarez/blob/d04c90b7dc3fbae1596f731d1b168d3fb9fdd2df/modules/routes_login.py#L188-L217 and https://github.com/axewater/sharewarez/blob/d04c90b7dc3fbae1596f731d1b168d3fb9fdd2df/modules/utils_smtp.py#L191-L206.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

sharewarez is a Python/Flask web application, and the reset flow is implemented in modules/routes_login.py (lines 188-217) with mail delivery in modules/utils_smtp.py (lines 191-206). When Flask's SERVER_NAME configuration value is not set, url_for(..., _external=True) builds absolute URLs from the Host header of the incoming request rather than from a trusted, configured hostname. An attacker who submits a password-reset request for a victim's account while supplying or spoofing a Host header (directly, or via a proxy that forwards it unvalidated) causes the generated reset link to point at the attacker's domain; when the victim clicks it, the reset token is transmitted to the attacker, who can then use it against the genuine application. Note a classification discrepancy worth flagging: the record carries CWE-94 (code injection) and tags of RCE/code injection, but nothing in the description or the referenced source lines supports code execution - the mechanism maps instead to Host header injection leading to weak password-recovery design (CWE-644/CWE-640 class). Likewise, the published CVSS vector lists PR:L while the assessed vector uses PR:N/UI:R; the practical prerequisites are unauthenticated initiation of a reset for a known account plus victim click-through, bounded by any reverse proxy or configuration that pins SERVER_NAME or validates the Host header.

Severity by source

Vendor (mitre) PRIMARY 7.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
vuln.today AI 8.1 HIGH

Reset can be triggered unauthenticated (PR:N) but token theft needs the victim to click the poisoned link (UI:R); successful takeover fully compromises the account (C:H/I:H) with no availability impact (A:N).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

DescriptionCVE.org

A Host Header Injection vulnerability in the password reset component in axewater sharewarez v2.4.3 allows remote attackers to conduct password reset poisoning and account takeover via manipulation of the Host header when Flask's url_for(_external=True) generates reset links without a fixed SERVER_NAME.

Executive ViewAI

Why It Matters

CVE-2025-61136 is a high-severity vulnerability in the axewater sharewarez platform (v2.4.3) that enables remote, unauthenticated attackers to poison password reset links and take over user accounts. The risk is concentrated on deployments that have not configured Flask's SERVER_NAME, which the advisory describes as the default. Leadership should care because successful exploitation can lead to unauthorized access to sensitive data and administrative functions, eroding customer trust and potentially causing regulatory issues.

Business Impact: Medium
Compensating Controls

Configure Flask's SERVER_NAME environment variable to a fixed, trusted domain; implement host header validation at the application or reverse proxy level; enforce strict validation of the Host header in password reset requests; monitor for anomalous reset link generation or redemption patterns.

Threat Intelligence Overview

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Rare
obscure open-source hobby project, negligible enterprise footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Flask

View all
CVE-2026-27641 CRITICAL POC
9.8 Feb 25

Path traversal and extension bypass in Flask-Reuploaded file upload library. Allows uploading files with arbitrary exten

CVE-2026-29038 MEDIUM POC
6.1 Mar 06

Reflected XSS in changedetection.io versions prior to 0.54.4 allows unauthenticated remote attackers to inject malicious

CVE-2026-27645 MEDIUM POC
6.1 Feb 25

changedetection.io versions before 0.54.1 are vulnerable to reflected cross-site scripting (XSS) via the RSS endpoint, w

CVE-2026-25527 MEDIUM POC
5.3 Feb 19

Changedetection.io versions before 0.53.2 allow unauthenticated attackers to read arbitrary files from the application d

CVE-2023-30861 HIGH
7.5 May 02

Flask is a lightweight WSGI web application framework. Rated high severity (CVSS 7.5), this vulnerability is remotely ex

CVE-2019-1010083 HIGH
7.5 Jul 17

The Pallets Project Flask before 1.0 is affected by: unexpected memory usage. Rated high severity (CVSS 7.5), this vulne

CVE-2018-1000656 HIGH
7.5 Aug 20

The Pallets Project flask version Before 0.12.3 contains a CWE-20: Improper Input Validation vulnerability in flask that

CVE-2025-61132 HIGH
7.1 Oct 23

Password-reset poisoning in levlaz braindump 0.4.14 lets a remote attacker influence the host used in outgoing password-

CVE-2026-107337 HIGH
7.1 Oct 08

Cross-site request forgery in the CISA Malcolm network traffic analysis platform lets a remote attacker who lures the op

CVE-2026-28352 MEDIUM
6.5 Feb 27

Missing authentication checks on Indico's event series management API endpoint allows unauthenticated attackers to view

CVE-2026-1827 MEDIUM
6.4 Feb 11

The Flask Micro code-editor plugin for WordPress through version 1.0.0 contains a stored cross-site scripting vulnerabil

CVE-2026-25739 MEDIUM
5.4 Feb 19

Cross-site scripting in Indico prior to version 3.3.10 allows authenticated users to inject malicious scripts through ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy