In Eclipse BaSyx Go Components versions 1.0.12 to 1.1.5, ABAC-enabled deployments treat a comparison on a related table, such as Submodel Elements, as false when a cast of the stored value fails or when a $regex pattern taken from a stored value or claim is rejected by PostgreSQL. Under $not, such a comparison makes the rule allow the resource, although the AAS Query Language requires a failed cast to exclude the candidate. $hexCast of a field also compares the stored text without normalizing it, so 16#0a does not equal 16#0A.
A rule such as "every Submodel except those whose Code is 16#0A" therefore allows Submodels whose Code is stored as 16#0a, and a rule that excludes a numeric value allows Submodels whose value cannot be cast to a number. An authenticated caller can therefore read, and where the rule grants it modify, resources that the access rules are meant to deny.
The issue is fixed in Eclipse BaSyx Go Components v1.1.6.
Only deployments with ABAC enabled are affected.