Description
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.
Severity (CVSS)
| Base score | 5.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-639 — Authorization Bypass Through User-Controlled Key
Affected products
| Vendor | Product | Versions |
|---|---|---|
| carlnewton | Habitat | 0 to <=1.7.1 [affected] |
References
- https://github.com/carlnewton/habitat/issues/164 (issue-tracking)
- https://github.com/carlnewton/habitat/blob/1.7.1/src/Repository/PostAttachmentRepository.php#L24-L35 (technical-description)
- https://github.com/carlnewton/habitat/blob/1.7.1/src/Controller/Post/CreatePostController.php#L143-L168 (technical-description)
- https://www.vulncheck.com/advisories/habitat-through-1.7.1-idor-via-post-creation-attachment-ids (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 18 Nov 2026 08:08 UTC.