Skip to main content

Habitat EUVDEUVD-2026-127242

| CVE-2026-130859 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-11-17 VulnCheck GHSA-2955-456r-p77r
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as email-verified user
  2. Exploit
    Enumerate sequential attachmentIds
  3. Execution
    Attach victim's pending image to own post
  4. Impact
    Expose image publicly and strip it from uploader

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires an authenticated account on the target Habitat instance that has completed email verification (PR:L). The attacker exploits the flaw by submitting another user's attachmentId in the post-creation request handled by CreatePostController::addAttachmentsToPost(), which fails to check attachment ownership. Exploitation is practical because attachmentIds are sequential and therefore guessable/enumerable, and the targeted image must currently be in a pending/unposted state belonging to another user. Limiting factors: no anonymous access (email verification required), impact confined to a single victim's pending upload per attempt, and a timing window in which the victim's image is uploaded but not yet posted.

Impact

This is a genuine but modest-severity access-control flaw, not a high-urgency emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N, score 5.3 Medium) is internally consistent with the description: network-reachable, low complexity, requires a low-privilege (email-verified, PR:L) account, no user interaction, and only low confidentiality and integrity impact with no availability impact. The vuln.today decision label is 'this_month' (routine remediation), which aligns with the mid-range score. No EPSS probability was provided, the CVE is NOT on CISA KEV, and no public exploit code was identified - so there is no evidence of active or automatable mass exploitation. The limiting factor is meaningful: an attacker needs a valid authenticated, email-verified account on the specific Habitat instance, and the impact is scoped to hijacking a victim's single unposted image. Signals are consistent rather than conflicting; the main gap is the absence of EPSS/KEV/POC data, which (as absence, not error) points toward low real-world exploitation pressure. Net: a real authorization bug worth patching on a normal cycle, not a drop-everything priority.

Exploit ScenarioDerived

An authenticated, email-verified attacker begins creating a post and submits sequential attachmentIds that belong to another user's not-yet-posted image upload. Because CreatePostController::addAttachmentsToPost() does not verify that the attachment belongs to the requester, the victim's pending image is attached to the attacker's post, exposed publicly, and removed from the legitimate uploader's post. No public exploit code was identified; the vulnerable logic is documented in the VulnCheck advisory and the linked source lines.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 18, 2026

An insecure direct object reference in Habitat through 1.7.1 lets authenticated, email-verified users seize other users' pending image uploads by supplying someone else's attachmentId during post creation, which both publishes the victim's unpublished image and strips it from their draft post. Because attachment IDs are sequential and guessable, enumeration is practical, though each attempt affects only a single victim's unposted upload and requires the victim's image to be in a pending state. No public exploit has been identified at time of analysis and there is no KEV listing; the flaw is a genuine but modest-severity access-control weakness (CVSS 3.1 5.3, AV:N/AC:L/PR:L/UI:N/C:L/I:L/A:N).

RemediationAI

No vendor-released patch or fixed version is identified at time of analysis: the supplied references point to the vulnerable 1.7.1 source and an upstream GitHub issue (#164), not to a patched release, and no vendor advisory mitigation is described. Where the code can be changed, the effective fix is to scope the attachment lookup in PostAttachmentRepository (lines 24-35) to the acting user and to reject any attachmentId in CreatePostController::addAttachmentsToPost() (lines 143-168) that is not owned by the requester and still pending; because the identifiers are sequential, ownership must be enforced server-side rather than inferred from possession of an ID. Until such a change is deployed, the practical compensating controls are to restrict or moderate who can create posts and upload attachments on the instance (trade-off: reduced self-service for new or untrusted registrations), to gate registration behind manual approval or stronger vetting in place of email verification alone (trade-off: administrative overhead and slower onboarding), and to rate-limit or log post-creation requests carrying attachment IDs so that sequential enumeration stands out in monitoring (trade-off: detection only, not prevention, and the owner check remains absent).

Affected VersionsENISA

Habitat 0 ≤1.7.1

Affected Packages

euvd habitat no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

Habitat is a PHP web application (carlnewton/habitat, CPE cpe:2.3:a:carlnewton:habitat) whose post-creation flow separates image upload from post publication: uploaded images are persisted as pending post attachments and later bound to a post. The vulnerable path spans src/Repository/PostAttachmentRepository.php (lines 24-35), where an attachment is fetched by its identifier, and src/Controller/Post/CreatePostController.php (lines 143-168), where addAttachmentsToPost() binds the supplied attachment IDs to the new post. That lookup is keyed solely on the user-controlled attachment ID rather than being scoped to the session owner, which is the classic CWE-639 Authorization Bypass Through User-Controlled Key pattern; the identifiers are auto-incremented, so an attacker can walk sequential values. The trigger is the submission of another user's attachmentId in the post-creation request; the referenced source lines and the upstream GitHub issue #164 are the only technical evidence supplied, and no additional exploitation mechanics are described in the available sources.

Know when Habitat gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

Network REST action needing a logged-in email-verified account (PR:L), no user interaction; low confidentiality and integrity impact from exposing and reassigning one pending image, no availability loss.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Habitat through 1.7.1 contains an insecure direct object reference vulnerability in CreatePostController::addAttachmentsToPost() that allows authenticated users to claim other users' unposted image uploads. Email-verified attackers can submit sequential attachmentIds when creating a post to attach another user's pending image, exposing it publicly and removing it from the uploader's post.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Rare
obscure self-hosted open-source hobby project, negligible enterprise footprint
Data Quality
5 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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