Skip to main content

Sakai Profile2 EUVDEUVD-2026-78875

| CVE-2026-54050 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-08-24 https://github.com/sakaiproject/sakai GHSA-9284-fjc3-fmmj
6.5
CVSS 3.1 · Vendor: https://github.com/sakaiproject/sakai
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Sakai as any low-privilege user
  2. Delivery
    Identify target userId via user directory or known username
  3. Exploit
    Send DELETE /api/users/{target_userId}/profile/image with attacker session cookie
  4. Execution
    Controller validates session but skips ownership comparison
  5. Persist
    Service layer calls DAO with attacker-supplied userId
  6. Impact
    Database row deleted from profile_images_t unconditionally

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

The profile image delete endpoint requires only a valid authenticated Sakai session - any role qualifies, including student and guest accounts. No special configuration, feature flag, or non-default deployment mode is needed; the vulnerable code path is active in any standard Sakai installation with the profile2 module deployed. Knowing the target's userId is a precondition, but userId values in Sakai are typically the login username (e.g., 'admin', 'jsmith') and are often discoverable through the user directory or autocomplete features. The pronunciation recording delete endpoint (DELETE /api/users/{userId}/profile/pronunciation) imposes no authentication requirement at all, reducing the precondition to network access alone. Limiting factors: the integrity impact is confined to profile image and pronunciation data; no credentials, grades, or course content are accessible through this flaw. Exploitation does not escalate the attacker's session privileges.

Impact

The NVD-assigned CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) accurately represents the threat profile: network-reachable, low complexity, requiring only a valid authenticated session. No EPSS score was provided in the input data, so exploitation probability cannot be quantified numerically. No KEV listing exists, and no public exploit code has been identified at time of analysis. Despite the moderate CVSS score, the practical risk is meaningful in academic environments: any student or guest account can bulk-delete profile images for all users on the platform in a single scripted loop, and the attack requires no credential escalation or special tooling. The secondary flaw - unauthenticated deletion of pronunciation recordings - is actually more severe from an access-control standpoint, though its impact scope is narrower. The integrity impact is permanent (database row deleted), but no confidentiality or system availability impact exists. Overall, this is a genuine medium-priority issue that warrants prompt patching in any institution where profile photos are used for identity workflows such as proctored exams or student directories, not merely a paper vulnerability inflated by a high CVSS base score.

Exploit ScenarioDerived

A student with a valid Sakai session identifies the admin account's userId (commonly a predictable value such as 'admin' or discoverable via the user directory). The student sends a single HTTP DELETE request to /api/users/admin/profile/image with their own SAKAIID session cookie; the server validates the session but passes 'admin' unmodified to the service layer, which deletes the database row. The entire attack requires no elevated privileges, no special tooling, and no exploit code beyond a standard HTTP client - and can be iterated over a list of user IDs to bulk-delete images platform-wide.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 24, 2026

Insecure Direct Object Reference in Sakai's profile2 REST API allows any authenticated user to permanently delete the profile image of any other user - including administrators - by supplying an arbitrary userId in the DELETE /api/users/{userId}/profile/image path parameter. The controller validates session existence but performs no ownership comparison, and the service layer passes the attacker-controlled userId directly to the DAO, which deletes the profile_images_t database row unconditionally. A related gap in the pronunciation recording delete endpoint (DELETE /api/users/{userId}/profile/pronunciation) omits session validation entirely, enabling unauthenticated deletion. No public exploit or CISA KEV listing exists at time of analysis, though the attack is trivially scriptable.

RemediationAI

For installations on the 23.x branch, upgrade profile2-api and profile2-impl to version 23.5, which contains the fix introduced in commit a092dbf3dc6bf343131f50007c207a9abd95e852 (https://github.com/sakaiproject/sakai/commit/a092dbf3dc6bf343131f50007c207a9abd95e852). The full advisory is at https://github.com/sakaiproject/sakai/security/advisories/GHSA-9284-fjc3-fmmj. For the 25.x branch (>= 25.0, <= 25.2), no patched release version is confirmed - administrators should monitor the upstream repository for a 25.x fix release. As a compensating control before patching, configure a reverse proxy or WAF rule to restrict DELETE requests to /api/users/{userId}/profile/image and /api/users/{userId}/profile/pronunciation so that only the resource owner's session token is permitted to reach those endpoints (matched by userId in the path against a session attribute). This carries the trade-off of requiring session-aware proxy logic. Alternatively, temporarily disable the profile image delete feature at the network layer if the functionality is not operationally required.

Affected VersionsENISA

sakai 23.0, < 23.5
sakai 25.0, ≤ 25.2

Affected Packages

maven org.sakaiproject.profile2:profile2-api fix: 23.5
maven org.sakaiproject.profile2:profile2-impl fix: 23.5
euvd sakai_23_0 fix: 23.5
euvd sakai_25_0 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in maven, euvd

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

Technical ContextAI · show details

The vulnerability is classified as CWE-639 (Authorization Bypass Through User-Controlled Key), a subclass of broken object-level authorization (BOLA/IDOR). The affected packages are org.sakaiproject.profile2:profile2-api and org.sakaiproject.profile2:profile2-impl, both Java Maven artifacts in the Sakai open-source LMS. The Spring MVC @DeleteMapping handler in ProfileController extracts the userId path variable and confirms only that a session token is present (checkSakaiSession() returns a non-null user ID), never verifying that the session owner matches the target resource owner. The service implementation (ProfileServiceImpl.removeProfileImage) delegates to a JPA repository (profileImageUploadedRepository.deleteById) without any pre-authorization logic, and the subsequent Content Hosting Service cleanup is wrapped in a security advisor that bypasses all CHS permission checks. The asymmetry is documented in the code: the upload endpoint (setProfileImage) explicitly checks isSuperUser() or UUID equality before proceeding, but this guard was not replicated in the delete path.

Know when Java 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 (https://github.com/sakaiproject/sakai) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 6.5 MEDIUM

Network-accessible REST endpoint requiring only a valid session (PR:L, AV:N, AC:L); no confidentiality or availability impact; integrity is high as any authenticated user can permanently delete another user's profile data.

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

Primary rating from Vendor (https://github.com/sakaiproject/sakai).

CVSS VectorVendor: https://github.com/sakaiproject/sakai

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

DescriptionCVE.org

Summary

The Sakai REST API endpoint DELETE /api/users/{userId}/profile/image does not verify that the requesting user is authorized to modify the target user's profile. Any authenticated user can delete the profile image of any other user, including administrators, by supplying a different userId in the path. The service layer has no authorization check, and the delete cascades through Content Hosting Service (CHS) with a security advisor that bypasses all CHS permission checks.

Details

ProfileController.removeProfileImage() in the webapi module retrieves the current user's session but performs no comparison between the authenticated user and the target userId path parameter:

java
@DeleteMapping(value = "/users/{userId}/profile/image")
public ResponseEntity<String> removeProfileImage(@PathVariable String userId) {
    String currentUserId = checkSakaiSession().getUserId();
    if (currentUserId == null) {
        return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
    }
    profileService.removeProfileImage(userId);  // userId is attacker-controlled
    return ResponseEntity.ok().build();
}

ProfileServiceImpl.removeProfileImage() delegates directly to dao.removeProfileImage(userUuid) with no authorization check. The DAO calls profileImageUploadedRepository.deleteById(userId), removing the profile_images_t row unconditionally.

For contrast, the upload endpoint setProfileImage() correctly verifies ownership:

java
if (!sakaiProxy.isSuperUser() && !StringUtils.equals(currentUserUuid, userUuid)) {
    throw new SecurityException("Not allowed to save.");
}

This asymmetry means any authenticated user can delete but not upload over another user's profile image.

Additionally, the pronunciation recording delete endpoint (DELETE /api/users/{userId}/profile/pronunciation) has no checkSakaiSession() call at all, making it accessible without any authentication.

Setup:

  • Admin user: admin, with a custom profile image uploaded
  • Attacker: student2 (unprivileged user, SAKAIID cookie from authenticated session)

Step 1 - Admin uploads profile image (confirm non-default state):

POST /api/users/admin/profile/image HTTP/1.1
Cookie: SAKAIID=<admin-session>
Content-Type: application/x-www-form-urlencoded

base64=<base64-encoded-png>

Response: {"status":"SUCCESS"}

Step 2 - Verify image exists in database:

sql
SELECT USER_UUID, RESOURCE_MAIN FROM profile_images_t WHERE USER_UUID='admin';
-- Result: admin | /private/profileImages/admin/1/eb92b129-9b00-4978-aec3-be840455d8e9

Step 3 - Attacker (student2) deletes admin's profile image:

DELETE /api/users/admin/profile/image HTTP/1.1
Host: localhost:9107
Cookie: SAKAIID=974996f4-e9c1-441c-9ab9-d3646aa5c754.9799861f31fb

Response: HTTP/1.1 200

Step 4 - Verify image is gone from database:

sql
SELECT USER_UUID, RESOURCE_MAIN FROM profile_images_t WHERE USER_UUID='admin';
-- Result: (empty - row deleted)

The attack succeeds. Student2's session is accepted by checkSakaiSession() (non-blank userId), and the target userId (admin) is passed directly to the service without any ownership check.

Impact

Any authenticated user (student, guest) can:

  • Permanently delete the profile image of any other user, including administrators and instructors
  • Repeatedly trigger deletion to prevent a target user from maintaining a profile picture
  • In a university context where profile photos are used for identity verification in proctored exams or student directories, this could disrupt identity management workflows

The attack is trivially scriptable and can target all users on the platform in bulk.

Suggested Remediation

In ProfileController.removeProfileImage(), add an ownership check before calling the service:

java
@DeleteMapping(value = "/users/{userId}/profile/image")
public ResponseEntity<String> removeProfileImage(@PathVariable String userId) {
    Session session = checkSakaiSession();
    String currentUserId = session.getUserId();
    if (currentUserId == null) {
        return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
    }
    // Add this check:
    if (!sakaiProxy.isSuperUser() && !currentUserId.equals(userId)) {
        return ResponseEntity.status(HttpStatus.FORBIDDEN).build();
    }
    profileService.removeProfileImage(userId);
    return ResponseEntity.ok().build();
}

Apply the same ownership check in ProfileServiceImpl.removeProfileImage() for defense-in-depth, mirroring the pattern in setProfileImage().

For the pronunciation endpoint, add checkSakaiSession() and the same ownership check.

Status / timeline:

  • 2026-06-02: Fix committed to master (a092dbf3dc6bf343131f50007c207a9abd95e852)
  • Release pending.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 3 maven packages depend on org.sakaiproject.profile2:profile2-api (3 direct, 0 indirect)

Ecosystem-wide dependent count for version 23.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Low
academic LMS with adoption concentrated in higher education institutions
Threat Intel
1
1 source
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 Yes
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

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

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