CVE-2026-141362

MEDIUMCVSS 5.3/10EPSS 0.56%

Last modified

CVE-2026-141362 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915) in CourseWriteSerializer (backend/apps/classroom/serializers.py) of The Hackers Labs Academy allows a user holding the instructor role who owns a course to reassign that course to any other account, through a PATCH to /api/classroom/courses/<id>/edit/ carrying an instructor value. The serializer lists instructor in Meta.fields while Meta.read_only_fields holds only id and slug, so the field is writable. EPSS estimates a 0.56% chance of exploitation in the next 30 days.

Description

Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915) in CourseWriteSerializer (backend/apps/classroom/serializers.py) of The Hackers Labs Academy allows a user holding the instructor role who owns a course to reassign that course to any other account, through a PATCH to /api/classroom/courses/<id>/edit/ carrying an instructor value. The serializer lists instructor in Meta.fields while Meta.read_only_fields holds only id and slug, so the field is writable. IsAdminOrOwnerInstructor authorises who may issue the request, the owning instructor or an admin, and it runs before the update, but it does not restrict which attributes of the object an authorised request may change. The Course.instructor foreign key carries no limit_choices_to, so the target may be any user id, including an account that does not hold the instructor role, and the receiving account takes no part in the change. Once the value has changed, IsAdminOrOwnerInstructor resolves ownership from the new value on the next request, so the original owner is refused edit access to the course. This results in the ownership attribute of a course being set to a value the requester is not authorised to set, without the consent of the account it is set to.

Metrics

Weakness Enumeration

Affected Software

Source: CNA advisory (CVE.org). NVD analysis pending.

VendorProductVersions
Manuel Martínez CasasolaThe Hackers Labs Academy>= fa3cf76e064bdf090a9f8dfc1e4f2c0059f2677b, < 7166a28b1b0c2c3755563d1e7099a8a4760d1b8b

References

Timeline

Published
Last Modified
Status
Received

Frequently Asked Questions

What is CVE-2026-141362?
Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915) in CourseWriteSerializer (backend/apps/classroom/serializers.py) of The Hackers Labs Academy allows a user holding the instructor role who owns a course to reassign that course to any other account, through a PATCH to /api/classroom/courses/<id>/edit/ carrying an instructor value. The serializer lists instructor in Meta.fields while Meta.read_only_fields holds only id and slug, so the field is writable. IsAdminOrOwnerInstructor authorises who may issue the request, the owning instructor or an admin, and it runs before the update, but it does not restrict which attributes of the object an authorised request may change. The Course.instructor foreign key carries no limit_choices_to, so the target may be any user id, including an account that does not hold the instructor role, and the receiving account takes no part in the change. Once the value has changed, IsAdminOrOwnerInstructor resolves ownership from the new value on the next request, so the original owner is refused edit access to the course. This results in the ownership attribute of a course being set to a value the requester is not authorised to set, without the consent of the account it is set to.
How severe is CVE-2026-141362?
CVE-2026-141362 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 0.56% probability of exploitation in the next 30 days.
How do I fix CVE-2026-141362?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

How Strix Helps

Related CVEs from 2026

Are you affected by CVE-2026-141362?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST